Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-18 Thread eyal edri
Finally it worked ! :) (thanks Alexander!) Summarizing: in order to create an executable JAR file that will depend on other libraries/jars from other internal project or external without including them inside the JAR's project: 1. use maven jar plugin to define the mail class in the manifest: 2.

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Alexander
Question was how make executable jar without including all dependencies in application jar but in separate folder. 2009/11/18 Brian Fox > > http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ > > On Tue, Nov 17, 2009 at 1:12 PM, eyal edri wrote: > > i will, once i get

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Brian Fox
http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ On Tue, Nov 17, 2009 at 1:12 PM, eyal edri wrote: > i will, once i get to work tomorrow :) > > thanks for the help. > > On Tue, Nov 17, 2009 at 8:05 PM, Alexander wrote: > >> Dont be shy, just try it. >> >> 2009/11/17

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread eyal edri
i will, once i get to work tomorrow :) thanks for the help. On Tue, Nov 17, 2009 at 8:05 PM, Alexander wrote: > Dont be shy, just try it. > > 2009/11/17 eyal edri > > > can i use the 'dependency:copy-dependencies< > > > http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Alexander
Dont be shy, just try it. 2009/11/17 eyal edri > can i use the 'dependency:copy-dependencies< > http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html > >' > goal in this project to tell it to copy all it's > dependencies to the "lib" dir? > like shown in here: > > >

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread eyal edri
can i use the 'dependency:copy-dependencies' goal in this project to tell it to copy all it's dependencies to the "lib" dir? like shown in here: org.apache.maven.plugins maven-depend

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Alexander
You could do this without assembly plugin. Just copy all dependencies with maven-dependency-plugin to some folder and than add this folder as classpath prefix in maven-jar-plugin. example for second part maven-jar-plugin

maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread eyal edri
Hi, i'm trying to figure out how can i create a working executable JAR that has dependencies (in-house maven projects plus external lib such as Log4J). I tried using the assembly plugin by creating a "jar-with-dependencies". but this creates a big JAR with all the dependencies included. I want