How would that allow selective on and off? Wouldn't it set one value for all (parent and child projects)?
Thanks, Sandeep -----Original Message----- From: Henry Isidro [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 7:00 PM To: Maven Users List Subject: Re: Overwriting a goal in subproject 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] ------------------------------------------------------------------------------------------- ***National City made the following annotations ------------------------------------------------------------------------------------------- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. =========================================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
