How do I execute maven plugin for parent module only? -


so created small maven plugin, connect database server , create tables need project. thing is, project consists of multiple modules , want plugin defined in parent one. yet needs executed once, not separately each module. thought adding "<inherited>false</inherited>" plugin configuration enough, apparently it's not. here's pom of parent project:

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">     <modelversion>4.0.0</modelversion>     <groupid>rpg</groupid>     <artifactid>rpg-build</artifactid>     <version>0.0.1-snapshot</version>     <packaging>pom</packaging>     <name>rpg-build</name>      <modules>         <module>../rpg-web</module>     <module>../rpg-service</module>     <module>../rpg-commons</module>     <module>../rpg-maven-plugin</module>     </modules>      <dependencies>         <dependency>             <groupid>junit</groupid>             <artifactid>junit</artifactid>             <version>4.8.1</version>             <scope>test</scope>         </dependency>          <dependency>             <groupid>org.hsqldb</groupid>             <artifactid>hsqldb</artifactid>             <version>2.2.9</version>             <scope>test</scope>         </dependency>     </dependencies>      <build>         <plugins>             <plugin>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>3.0</version>                 <configuration>                     <source>1.6</source>                     <target>1.6</target>                 </configuration>             </plugin>              <plugin>                 <groupid>rpg.maven.plugin</groupid>                 <artifactid>rpg-maven-plugin</artifactid>                 <version>0.0.1-snapshot</version>                 <inherited>false</inherited>             </plugin>         </plugins>         <finalname>${artifactid}</finalname>     </build> </project> 

answered in comments:

you should add @aggregator annotation plugin's mojo. – andrew logvinov apr 1 '13 @ 12:40


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -