You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2006/02/24 22:05:27 UTC

Overriding parent plugin configuration in a module

I have a parent POM that includes the following plugin

           <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-assembly-plugin</artifactId>
               <executions>
                   <execution>
                       <phase>package</phase>
                       <configuration>
                           <descriptorId>src</descriptorId>
                       </configuration>
                       <goals>
                           <goal>assembly</goal>
                       </goals>
                   </execution>
               </executions>
           </plugin>


... and this works fine in my modules.

However, I have one module that wants to package a little differently:

           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-assembly-plugin</artifactId>
               <executions>
                   <execution>
                       <phase>package</phase>
                       <configuration>
                           <descriptors>

<descriptor>src/assembly/src-with-ppt.xml</descriptor>
                           </descriptors>
                        </configuration>
                       <goals>
                           <goal>assembly</goal>
                       </goals>
                   </execution>
               </executions>
           </plugin>


This works too ... or should I say, "two", because I get a -src and a
-src-with-ppt distro set.

Is there a way to "turn off" a plugin from a parent POM?

Also, I really want my custom assembly, which includes some additional
files beyond the built-in src assembly, to create assemblies labeled
"src".  With the parent POM stuff, I get a conflict on the name.
Assuming we overcome that, can I put <id>src</id> in my
src-with-ppt.xml?  Will that work, and is it legit?

Thanks,

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: RE : Overriding parent plugin configuration in a module

Posted by Howard Lewis Ship <hl...@gmail.com>.
Nope; I generally want the behavior to be inherited (that's why I put
it in the parent pom), but I want specific poms to override the
default.

On 2/24/06, Olivier Lamy <ol...@accor.com> wrote:
> Have you try : <inherited>false</inherited> in the parent pom ?
>
> - Olivier
>
> -----Message d'origine-----
> De : Howard Lewis Ship [mailto:hlship@gmail.com]
> Envoyé : vendredi 24 février 2006 22:05
> À : users@maven.apache.org
> Objet : Overriding parent plugin configuration in a module
>
>
> I have a parent POM that includes the following plugin
>
>            <plugin>
>                   <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-assembly-plugin</artifactId>
>                <executions>
>                    <execution>
>                        <phase>package</phase>
>                        <configuration>
>                            <descriptorId>src</descriptorId>
>                        </configuration>
>                        <goals>
>                            <goal>assembly</goal>
>                        </goals>
>                    </execution>
>                </executions>
>            </plugin>
>
>
> ... and this works fine in my modules.
>
> However, I have one module that wants to package a little differently:
>
>            <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-assembly-plugin</artifactId>
>                <executions>
>                    <execution>
>                        <phase>package</phase>
>                        <configuration>
>                            <descriptors>
>
> <descriptor>src/assembly/src-with-ppt.xml</descriptor>
>                            </descriptors>
>                         </configuration>
>                        <goals>
>                            <goal>assembly</goal>
>                        </goals>
>                    </execution>
>                </executions>
>            </plugin>
>
>
> This works too ... or should I say, "two", because I get a -src and a
> -src-with-ppt distro set.
>
> Is there a way to "turn off" a plugin from a parent POM?
>
> Also, I really want my custom assembly, which includes some additional
> files beyond the built-in src assembly, to create assemblies labeled
> "src".  With the parent POM stuff, I get a conflict on the name.
> Assuming we overcome that, can I put <id>src</id> in my
> src-with-ppt.xml?  Will that work, and is it legit?
>
> Thanks,
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
> --------------------------------------------------------------------------------------------------------------
> Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
> -------------------------------------------------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE : Overriding parent plugin configuration in a module

Posted by Olivier Lamy <ol...@accor.com>.
Have you try : <inherited>false</inherited> in the parent pom ?

- Olivier

-----Message d'origine-----
De : Howard Lewis Ship [mailto:hlship@gmail.com] 
Envoyé : vendredi 24 février 2006 22:05
À : users@maven.apache.org
Objet : Overriding parent plugin configuration in a module


I have a parent POM that includes the following plugin

           <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-assembly-plugin</artifactId>
               <executions>
                   <execution>
                       <phase>package</phase>
                       <configuration>
                           <descriptorId>src</descriptorId>
                       </configuration>
                       <goals>
                           <goal>assembly</goal>
                       </goals>
                   </execution>
               </executions>
           </plugin>


... and this works fine in my modules.

However, I have one module that wants to package a little differently:

           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-assembly-plugin</artifactId>
               <executions>
                   <execution>
                       <phase>package</phase>
                       <configuration>
                           <descriptors>

<descriptor>src/assembly/src-with-ppt.xml</descriptor>
                           </descriptors>
                        </configuration>
                       <goals>
                           <goal>assembly</goal>
                       </goals>
                   </execution>
               </executions>
           </plugin>


This works too ... or should I say, "two", because I get a -src and a
-src-with-ppt distro set.

Is there a way to "turn off" a plugin from a parent POM?

Also, I really want my custom assembly, which includes some additional
files beyond the built-in src assembly, to create assemblies labeled
"src".  With the parent POM stuff, I get a conflict on the name.
Assuming we overcome that, can I put <id>src</id> in my
src-with-ppt.xml?  Will that work, and is it legit?

Thanks,

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
-------------------------------------------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org