Hi,
Having a look in the assembly plugin documentation:
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
Then Advanced Config/Creating an Executable Jar, wouldn't it help?
Excerpt:
plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
[...]
archive
manifest
mainClassorg.sample.App/mainClass
/manifest
/archive
/configuration
[...]
/plugin
Cheers
-Message d'origine-
De : Mark Derricutt [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 9 avril 2008 07:14
À : Maven Users List
Objet : Adding a Main-Class to a jar-with-dependencies jar?
Hey all,
http://docs.codehaus.org/pages/viewpage.action?pageId=72602
shows how to set the Main-Class for a .jar file using the
maven-jar-plugin and thats fine, but I was wondering if this
could also be applied to the jar being made from the assembly
plugin somehow?
Do I need to make a custom assembly descriptor for this?
Thanks,
Mark
--
It is easier to optimize correct code than to correct
optimized code. -- Bill Harlan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]