I believe you should try the war:exploded, this should do what you want...
On 04.04.2011 11:13, Nguyen Tien Luong wrote: > In fact when I have all files I need in target, I will copy directly to > Application Server for testing. > > Sometime I modified only some JSP files, and if for testing I have to > generate a > new WAR file, it's painful T_T > > So there is no solution for my problem then ? > > Luong > > > > ________________________________ > From: "Asmann, Roland" <[email protected]> > To: "[email protected]" <[email protected]> > Sent: Mon, 4 April, 2011 11:06:07 > Subject: Re: Assembling webapp only, but not make WAR file > > Multi-module might be a problem. Because that way the other modules will > not get installed either! If you do have them in your repository, Maven > *should* copy them into the target-dir though, but they will be older > versions. > > A question: why don't you want the WAR to be packaged? > > > On 04.04.2011 10:54, Nguyen Tien Luong wrote: > > Thanks for your reply :x > > > > Is prepare-package that you want to mention ? > > > > I have multi-module project, and that the webapp depends on for example > > project-a that has its .java files and also depends on another artifact > > (jar) > > > > What I want is after execute an maven'lifecycle, I have in target of > > webapp (or > > somewhere else) the dependency of project-a, .class files of projects-a > > and also > > files of webapp > > > > When I do mvn prepare-package for the webapp, I did not copy the files of > > project-a in the webapp target's folder. > > > > I did somethings wrong or it is the way maven doing? > > > > Luong > > > > > > > > ________________________________ > > From: "Asmann, Roland" <[email protected]> > > To: "[email protected]" <[email protected]> > > Sent: Mon, 4 April, 2011 10:32:35 > > Subject: Re: Assembling webapp only, but not make WAR file > > > > Check the life-cycle phases and choose one that is just *before* > 'package'. > > > > > > On 04.04.2011 10:26, Nguyen Tien Luong wrote: > > > Here is the backtrace of MVN INSTALL > > > > > > > > > > > > [INFO] [war:war] > > > [INFO] Packaging webapp > > > [INFO] Assembling webapp[webapp] in [C:\Documents and > > > Settings\webapp\target\webapp] > > > [INFO] Dependency[Dependency {groupId=javax.servlet, artifactId=jstl, > > > version=1.2, type=jar}] has changed (was Dependency > > {groupId=javax.servlet, > > > artifactId=jstl, version=1.2, type=jar}). > > > [INFO] Dependency[Dependency {groupId=com.jcp.ui.framework, > > > artifactId=ui-modules-api-jcp-mock, version=14.0-194, type=jar}] has > > changed > > > (was Dependency {groupId=com.jcp.ui.framework, > > > artifactId=ui-modules-api-jcp-mock, ve > > > [INFO] Dependency[Dependency {groupId=com.jcp.ui.framework, > > > artifactId=jcp-logger, version=0.3, type=jar}] has changed (was > > Dependency > > > {groupId=com.jcp.ui.framework, artifactId=jcp-logger, version=0.3, > > > type=jar}). > > > [INFO] Processing war project > > > [INFO] Copying webapp resources[C:\Documents and > > > Settings\webapp\target\webapp] > > > [INFO] Webapp assembled in[45999 msecs] > > > [INFO] Building war: C:\Documents and > > > Settings\webapp\target\webapp\target\baseline-webapp.war > > > [INFO] [install:install] > > > [INFO] Installing C:\Documents and > > > Settings\webapp\target\webapp\target\webapp.war to > > > D:\m2repo\com\webapp\0.0.1\webapp-0.0.1.war > > > > > > > > > > > > > > > For some reason, I want just that maven do the Assembling (copy .class > > > files, > > > jar files .... to TARGET ) but not making the WAR file. > > > > > > Is that possbile ? > > > > > > Thanks > > > > > > Luong > > > > > > > > > > > > > -- > > Roland Asmann > > Senior Software Engineer > > > > adesso Austria GmbH > > Floridotower 26. Stock T +43 1 2198790-27 > > Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 > > A-1210 Wien M +43 664 88657566 > > E [email protected] > > W www.adesso.at > > > > ------------------------------------------------------------- > > >>> business. people. technology. <<< > > ------------------------------------------------------------- > > > > > > > > -- > Roland Asmann > Senior Software Engineer > > adesso Austria GmbH > Floridotower 26. Stock T +43 1 2198790-27 > Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 > A-1210 Wien M +43 664 88657566 > E [email protected] > W www.adesso.at > > ------------------------------------------------------------- > >>> business. people. technology. <<< > ------------------------------------------------------------- > > > -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E [email protected] W www.adesso.at ------------------------------------------------------------- >>> business. people. technology. <<< -------------------------------------------------------------
