Below is the project hierarchy I have: LEVEL 1: GENRIC_PROJ: has app server deploy goal LEVEL 1: PROJ_PARENT : inherits GENRIC_PROJ and should inherit the deploy goal LEVEL 2: PROJ_CHILD : inherits PROJ_PARENT and should not inherit the deploy goal
I added <inherited>false</inherited> in my GENERIC pom.xml's <build> ... <plugins> <plugin>... <executions> <execution> ... <inherited>false</inherited> Is this correct? As it didn't work and both PROJ_PARENT and PROJ_CHILD called the app server deploy. Thanks, Sandeep -----Original Message----- From: Scokart Gilles [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 9:45 AM To: Maven Users List Subject: RE: Overwriting a goal in subproject Look at http://maven.apache.org/maven-model/maven.html , you should find a tag 'inherited'. Set it to false for your install plugin and you should have what you search. Gilles > -----Original Message----- > From: Dixit, Sandeep (ProSource Solutions) > [mailto:[EMAIL PROTECTED] > Sent: 09 January 2006 15:40 > To: Maven Users List > Subject: Overwriting a goal in subproject > > Is there a way I can overwrite a phase:goal, for example - > install:install in a child project? Let me explain:- > > I have a parent project that during install phase deploys an EAR to an > app server. Since its child project, let's say package an EJB jar, > inherits everything from its parent, also inherits the install to app > server functionality and tries to deploy the EJB jar to the app server. > I don't want this to happen. I would like to overwrite the > install:install of the child project with nothing or a simple text > message. Is this possible? How do I achieve this? > > Thanks, > Sandeep > > -----Original Message----- > From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] > Sent: Monday, January 09, 2006 9:12 AM > To: Maven Users List > Subject: Re: [M1] Resetting Properties > > You can use a Jelly variable > <j:set var="..." value="..."/> > <j:unset var="..." value="..."/> > > Arnaud > > On 1/9/06, Afkham Azeez <[EMAIL PROTECTED]> wrote: > > > > It seems that ant properties are immutable. Is there an alternative? > > > > On 1/9/06, Afkham Azeez <[EMAIL PROTECTED]> wrote: > > > Hi Folks, > > > I'n my maven XML i set a property with a particular name(modules > say), > > > and then elsewhere in the XML, I try to reset it to another value. > But > > > I found that the new value is not getting set and the property > retains > > > its old value. Is this a bug, or do I have to do something > different? > > > -- > > > Thanks > > > Afkham Azeez > > > > > > > > > -- > > Thanks > > Afkham Azeez > > > > --------------------------------------------------------------------- > > 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] --------------------------------------------------------------------- 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]