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:
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
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
plugin
artifactIdmaven-jar-plugin/artifactId
can i use the
'dependency:copy-dependencieshttp://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:
build
plugins
plugin
Dont be shy, just try it.
2009/11/17 eyal edri eyal.e...@gmail.com
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
i will, once i get to work tomorrow :)
thanks for the help.
On Tue, Nov 17, 2009 at 8:05 PM, Alexander the.malk...@gmail.com wrote:
Dont be shy, just try it.
2009/11/17 eyal edri eyal.e...@gmail.com
can i use the 'dependency:copy-dependencies
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 eyal.e...@gmail.com wrote:
i will, once i get to work tomorrow :)
thanks for the help.
On Tue, Nov 17, 2009 at 8:05 PM, Alexander the.malk...@gmail.com wrote:
Dont be
Question was how make executable jar without including all dependencies in
application jar but in separate folder.
2009/11/18 Brian Fox bri...@infinity.nu
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