Hi  Yuri,

You can add the main class in the manifest by configuring the maven-jar-plugin

see http://docs.codehaus.org/display/MAVENUSER/FAQs
and look for the question "How to add main class in the manifest of the generated jar?"

regards,
-allan


Olivier Lamy wrote:

Use plugin assembly
http://maven.apache.org/plugins/maven-assembly-plugin/

Note the manifest file with the main class can't be added to final jar.
Just run with : java -classpath fulljar mainclass.

- Olivier


-----Message d'origine-----
De : Yuriy Ivanov [mailto:[EMAIL PROTECTED] Envoyé : vendredi 2 décembre 2005 10:45
À : [email protected]
Objet : [m2] run target jar


Hello,



I have compiled jar, and dependencies in my pom.xml. How can I run my
jar? with classpath equals to all dependencies.



Best Regards,

Yuri Ivanov

E-Mail:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]

MSN:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]

ICQ: 147038971




This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). If 
you have received this message in error please send it back to the sender and delete it. 
Unauthorized publication, use, dissemination or disclosure of this message, either in 
whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues 
dans ce message ( ci après "le message" ), sont confidentiels et destinés 
exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu 
ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes 
diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit 
non expressément autorisées de ce message, sont interdites.
-------------------------------------------------------------------------------------------------------------


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




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

Reply via email to