RE: mvn 2: create jar in war
Vote for http://jira.codehaus.org/browse/MPWAR-30 Cheers, Martin -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Montag, 21. August 2006 22:42 To: Maven Users List Subject: Re: mvn 2: create jar in war On 8/21/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: How can I create a jar from the classes compiled into the war? (for tomcat) Currently if I run the war package it leaves my sources in the web-inf/classes dir as compiled classes. I would like to put them in a jar and have it included in the web-inf/lib dir. Is that possible? I would put those classes in a separate module that builds a jar, and have the webapp depend on that jar. This also frees up the src/test/ directory hierarchy for tests that exercise the webapp itself, such as HttpUnit or HtmlUnit-based tests. Maven isn't currently very easy to configure for both unit and integration/functional tests in the same module. -- Wendy - 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]
RE: mvn 2: create jar in war
Zeltner Martin wrote on Tuesday, August 22, 2006 9:26 AM: Vote for http://jira.codehaus.org/browse/MPWAR-30 This will hardly help, since MPWAR refers the Maven 1 plugin, but the OP searches a solution for M2 ... - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mvn 2: create jar in war
Sorry. I've yust created a new issue for M2 http://jira.codehaus.org/browse/MWAR-70 BTW, I didn't recognize that the MPWAR is for Maven1. Cheers, Martin -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Dienstag, 22. August 2006 09:30 To: Maven Users List Subject: RE: mvn 2: create jar in war Zeltner Martin wrote on Tuesday, August 22, 2006 9:26 AM: Vote for http://jira.codehaus.org/browse/MPWAR-30 This will hardly help, since MPWAR refers the Maven 1 plugin, but the OP searches a solution for M2 ... - Jörg - 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]
Re: mvn 2: create jar in war
I've done this off and on simply by doing mvn jar:jar. It'll create the jar in the target directory. I haven't integrated this into an automated build... I only have a need for this once in a rare while. ~ David Smiley Attila Mezei-Horvati wrote: How can I create a jar from the classes compiled into the war? (for tomcat) Currently if I run the war package it leaves my sources in the web-inf/classes dir as compiled classes. I would like to put them in a jar and have it included in the web-inf/lib dir. Is that possible? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Investigating-a-checksum-failure-tf2142454.html#a5925012 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn 2: create jar in war
Hi, (Maven2) if you need the WAR classes in JAR coz you want it to include in a WAR/lib, the logical path would be to separate your WAR into two Maven modules: one for Java sources only, which is packaging JAR and for WAR with packaging war for resources, jsps, etc which reference the previous as dependency. Remember: do not try to create two artifacts from one POM, it is possible but not in M2 spirit. ~t~ On 8/21/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: How can I create a jar from the classes compiled into the war? (for tomcat) Currently if I run the war package it leaves my sources in the web-inf/classes dir as compiled classes. I would like to put them in a jar and have it included in the web-inf/lib dir. Is that possible? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn 2: create jar in war
On 8/21/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: How can I create a jar from the classes compiled into the war? (for tomcat) Currently if I run the war package it leaves my sources in the web-inf/classes dir as compiled classes. I would like to put them in a jar and have it included in the web-inf/lib dir. Is that possible? I think you should try 'archiveClasses' config element in configuration element for maven-war-plugin but Ive never used it myself... More here: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#archiveClasses HTH, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn 2: create jar in war
On 8/21/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: How can I create a jar from the classes compiled into the war? (for tomcat) Currently if I run the war package it leaves my sources in the web-inf/classes dir as compiled classes. I would like to put them in a jar and have it included in the web-inf/lib dir. Is that possible? I would put those classes in a separate module that builds a jar, and have the webapp depend on that jar. This also frees up the src/test/ directory hierarchy for tests that exercise the webapp itself, such as HttpUnit or HtmlUnit-based tests. Maven isn't currently very easy to configure for both unit and integration/functional tests in the same module. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]