I believe you should/could happily achieve what you need by attaching another WAR to your build using the maven-build-helper-plugin as described here:
http://mojo.codehaus.org/build-helper-maven-plugin/usage.html Just configure: 1. maven-war-plugin execution (id=release) for the main WAR . This is the main artifact of your build and gets deployed with no classifier (only mywebapp.war) 2. maven-war-plugin execution (id=test) for the test WAR 3. Configure the build number plugin (order in POM *is* important, so after the war execution 'test') to pick up the WAR produced by the 2nd execution and attach it to the deployed artifacts (configure classifier = 'test' ) Hope this helps, Gab 2008/11/25 Raffaele <[EMAIL PROTECTED]> > > Hi all, > I'm looking for a maven solution to do the following: > > I have a web-app, and so a war, containing some resource files, like > repository.xml, hibernate.cfg etc... > I've done two profiles, one for release and one for test which respectively > put inside final war release resources and test resources.... > > Now, I would like to deploy my app, in two different folder, accordingly > the > executed profile, example: > > [url my repository]/my-webapp/release/my-webapp-release.war > AND > [url my repository]/my-webapp/test/my-webapp-test.war > > I have looked into documentation but I wasn't able to find any solution... > > Thanks in advance and best regards > Raffaele Gambelli > > -- > View this message in context: > http://www.nabble.com/Release-and-Test-version-of-same-artifact...-tp20678109p20678109.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source
