You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wendy Smoak <ws...@gmail.com> on 2006/04/21 07:18:53 UTC
Consolidated jar?
Is there a plugin that can create a consolidated jar? This would be
like the spring.jar, which they distribute in addition to spring-core,
spring-jdbc, etc.
Thanks,
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Consolidated jar?
Posted by Wayne Fay <wa...@gmail.com>.
Yes you want to use Assembly plugin. Here's an example:
<build><plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<!--descriptorId>jar-with-dependencies</descriptorId-->
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>ggg.MainApp</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
Btw regarding that commented out descriptorId thing... apparently it
just recently got changed to descriptorRefs, but I haven't used it
since it changed so I'm just going on what I've seen reported here on
the user list...
HTH.
Wayne
On 4/21/06, Subhash Chandran <su...@gmail.com> wrote:
> I don't know about Spring... but uf u meant bundle of all dependencies
> packaged as a single Jar, u may look at the Maven Assembly plugin:
>
> http://maven.apache.org/plugins/maven-assembly-plugin/
>
> Regards,
> Subhash.
>
> On 4/21/06, Wendy Smoak <ws...@gmail.com> wrote:
> >
> > Is there a plugin that can create a consolidated jar? This would be
> > like the spring.jar, which they distribute in addition to spring-core,
> > spring-jdbc, etc.
> >
> > Thanks,
> > --
> > Wendy
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Regards,
> Subhash Chandran S
>
> Cross platform OpenSource Java based file encryption software:
> http://www.WizTools.org/project/WizCrypt/
>
>
Re: Consolidated jar?
Posted by Subhash Chandran <su...@gmail.com>.
I don't know about Spring... but uf u meant bundle of all dependencies
packaged as a single Jar, u may look at the Maven Assembly plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/
Regards,
Subhash.
On 4/21/06, Wendy Smoak <ws...@gmail.com> wrote:
>
> Is there a plugin that can create a consolidated jar? This would be
> like the spring.jar, which they distribute in addition to spring-core,
> spring-jdbc, etc.
>
> Thanks,
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Regards,
Subhash Chandran S
Cross platform OpenSource Java based file encryption software:
http://www.WizTools.org/project/WizCrypt/