You would have to build that logic into your plugin. You could do this with a skip parameter which would be set to true in a-maven-proj2 or by adding some code which determines that a-maven-proj2 isn't an appropriate target for the plugin.
Justin -----Original Message----- From: ksachdeva [mailto:[email protected]] Sent: Monday, June 29, 2009 11:09 AM To: [email protected] Subject: How to run a goal only for a particular project in a multimodule project ? Hi, I have a project structure such as this parent-dir a-maven-proj1 a-maven-proj2 pom.xml pom.xml in parent-dir is a parent pom.xml which include a-maven-proj1 and a-maven-proj2 as modules. If I run "mvn test" in parent-dir this goal is executed for both the modules and I am happy. Now the situation is that a-maven-proj2 uses a custom plugin which has created a specific goal, let's say customplugin:run-app. When I run "mvn customplugin:run-app" in the parent-dir the goal is executed for the both the modules. Since customplugin does not understand a-maven-proj1 the execution fails. That said, I was looking for a way such that I can specify on a command line or in the configuration that customplugin:run-app should only be run for a-maven-proj2. Many thanks for the help Regards Kapil -- View this message in context: http://www.nabble.com/How-to-run-a-goal-only-for-a-particular-project-in -a-multimodule-project---tp24255722p24255722.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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
