Dixit, Sandeep (ProSource Solutions) wrote:
I apologize. Error on my part... <inherited>false</inherited> did work.
I have one more question:
Project structure:
------------------
LEVEL 1: GENRIC_PROJ: has app server deploy goal
LEVEL 1: PROJ_PARENT: inherits GENRIC_PROJ and SHOULD NOT inherit the
deploy goal
LEVEL 2: PROJ_CHILD: inherits PROJ_PARENT and SHOULD NOT inherit
the deploy goal
LEVEL 2: PROJ_CHILD_2: inherits PROJ_PARENT and SHOULD inherit
the deploy goal
Can I achieve the above - selective on and off?
Thanks,
Sandeep
You can try using properties. In your pom.xml, add the ff:
<properties>
<inheritGoal>false</inheritGoal> <!-- this will serve as the default value
-->
</properties>
In your plugin configuration, do this:
<configuration>
...
<inherited>${inheritGoal}</inherited>
</properties>
Then, when you want the goal to be inherited, you invoke maven by
passing a value to the property:
mvn -DinheritGoal=true install
Let me know if this works. Regards,
Henry
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]