Re: Create one jar including all dependencies

2008-02-29 Thread krishnan.1000

Hi,

Thanks for all your help. I used maven assembly plugin for my needs. I
wanted to know if there is a way to add time stamp to the package that is
generated.

Thanks,

Karthik Krishnan

krishnan.1000 wrote:
 
 Thanks for the help. We used the maven assembly plugin to create a
 executable jar. Is it possible to create two executable jars for the same
 package. I could have have another plugin node for maven assembly
 
 krishnan.1000 wrote:
 
 Hi,
 
 I am a Maven newbie. So please forgive my ignorance. I am using Maven 2x
 for project  and dependency management. I am creating a jar package. My
 project requires that the jar be deployed on a remote server. I can
 create a jar of all the classes. I would like to create a mega jar with
 all the expanded dependent jars in the generated jars. Is there a command
 for this or do I have to create a customized goal for this?
 
 Thanks,
 
 Karthik
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Create-one-jar-including-all-dependencies-tp15622033s177p15772003.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create one jar including all dependencies

2008-02-27 Thread krishnan.1000

Thanks for the help. We used the maven assembly plugin to create a executable
jar. Is it possible to create two executable jars for the same package. I
could have have another plugin node for maven assembly

krishnan.1000 wrote:
 
 Hi,
 
 I am a Maven newbie. So please forgive my ignorance. I am using Maven 2x
 for project  and dependency management. I am creating a jar package. My
 project requires that the jar be deployed on a remote server. I can create
 a jar of all the classes. I would like to create a mega jar with all the
 expanded dependent jars in the generated jars. Is there a command for this
 or do I have to create a customized goal for this?
 
 Thanks,
 
 Karthik
 

-- 
View this message in context: 
http://www.nabble.com/Create-one-jar-including-all-dependencies-tp15622033s177p15723152.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create one jar including all dependencies

2008-02-22 Thread [EMAIL PROTECTED]
krishnan.1000 schrieb:
 Hi,

 I am a Maven newbie. So please forgive my ignorance. I am using Maven 2x for
 project  and dependency management. I am creating a jar package. My project
 requires that the jar be deployed on a remote server. I can create a jar of
 all the classes. I would like to create a mega jar with all the expanded
 dependent jars in the generated jars. Is there a command for this or do I
 have to create a customized goal for this?
   

You might like to look at this plugin:
   http://maven.apache.org/plugins/maven-shade-plugin/

Regards,
Simon


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create one jar including all dependencies

2008-02-21 Thread Reto Bachmann-Gmür
did you see 
http://maven.apache.org/plugins/maven-assembly-plugin/index.html , the 
pre-defined descriptor jar-with-dependencies 
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies 
- can be used for general assembly of a binary package with all the 
dependency libraries included unpacked inside the archive.


Cheers,
reto

krishnan.1000 wrote:

Hi,

I am a Maven newbie. So please forgive my ignorance. I am using Maven 2x for
project  and dependency management. I am creating a jar package. My project
requires that the jar be deployed on a remote server. I can create a jar of
all the classes. I would like to create a mega jar with all the expanded
dependent jars in the generated jars. Is there a command for this or do I
have to create a customized goal for this?

Thanks,

Karthik
  





signature.asc
Description: OpenPGP digital signature


Re: Create one jar including all dependencies

2008-02-21 Thread Russ Tremain
At 2:51 PM -0800 2/21/08, krishnan.1000 wrote:
Hi,

I am a Maven newbie. So please forgive my ignorance. I am using Maven 2x for
project  and dependency management. I am creating a jar package. My project
requires that the jar be deployed on a remote server. I can create a jar of
all the classes. I would like to create a mega jar with all the expanded
dependent jars in the generated jars. Is there a command for this or do I
have to create a customized goal for this?


we tend to use the dependency plugin to fetch the jars, and then just package up
the result.

you need a separate pom for each package (so you can list the dependencies).

there are several example poms in the following directories with various levels
of complexity in the final package requirements.  listed from simplest to more 
complex:


https://open-jbi-components.dev.java.net/source/browse/open-jbi-components/ojc-core/filebc/packaging

https://open-jbi-components.dev.java.net/source/browse/open-jbi-components/packaging/
https://open-esb.dev.java.net/source/browse/open-esb/esb-packages/

If you need something even more complex, then the assembly plugin may be the 
way to go.

-Russ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]