RE: Adding a Main-Class to a jar-with-dependencies jar?

2008-04-09 Thread MATHUS Baptiste
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]



Re: Adding a Main-Class to a jar-with-dependencies jar?

2008-04-09 Thread Mark Derricutt
Correct - not sure how I missed that earlier.

Thanks,
Mark

On Wed, Apr 9, 2008 at 8:23 PM, MATHUS Baptiste [EMAIL PROTECTED] wrote:

 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?



-- 
It is easier to optimize correct code than to correct optimized code. --
Bill Harlan


Adding a Main-Class to a jar-with-dependencies jar?

2008-04-08 Thread Mark Derricutt
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