Hi For running multiple times a same plugin with various parameters , you can use profiles .
http://maven.apache.org/guides/introduction/introduction-to-profiles.html this will give you an intro to build profiles . You can use different profiles in pom.xml , with the same plugin having different arguments . And u can list the active Profiles in settings.xml or u can specify the profiles to be executed in the command line separated by comma . find an eg of using 2 different profiles in pom.xml with maven-exec-plugin . <profiles> <profile> <activation> <property> <name>testProfile1</name> </property> </activation> <build> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <executable>java</executable> <arguments> <argument>-classpath</argument> <classpath /> <argument> com.test.example </argument> </arguments> </configuration> </plugin> </build> </profile> <profile> <activation> <property> <name>testProfile2</name> </property> </activation> <build> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <executable>java</executable> <arguments> <argument>-classpath</argument> <classpath /> <argument> com.testProfile.example2 </argument> </arguments> </configuration> </plugin> </build> </profile> </profiles in command line you can run the profile by mvn exec:exec -P testProfile1, testProfile2 or in settings it can be like : <settings> ... <activeProfiles> <activeProfile>testProfile1</activeProfile> <activeProfile>testProfile2</activeProfile> </activeProfiles> ... </settings> Thanks Saritha On 11/2/07, Julien CARSIQUE <[EMAIL PROTECTED]> wrote: > > Hi, > > I would like to zip our generated ear and attach it but only when > deploying to our archiva (for snapshot deployment and release). > I actually use build-helper-maven-plugin to attach the zip file but had > to associate it to a specific profile so it isn't done by default. How > to run this profile only when using maven-deploy-plugin ? Is there a > property set by this plugin ? > > Then, I would like to run multiple times a same plugin with various > parameters, all this in a single call to mvn install; how can I do that ? > > Thanks, > Julien C. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
