Parent:
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
**<inherited>false</inherited>**
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<format>${project.version}-b{0,number}</format>
<items>
<item>buildNumber0</item>
</items>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
</configuration>
</plugin>
</plugins>
<modules>
<module>module1</module>
<module>module2</module>
</modules>
During 'mvn buildnumber:create' each module generate buildnumber. Is it possible to turn it off for submodules? In other word, during 'mvn buildnumber:create' build number should be generated only once in parent module.
I tryed set <phase>none</phase>
and <skip>true</skip>
in submodules but without any changes.
Suggestions?
This: Execute Maven plugin goal on parent module, but not on children
You can add
<inherited>false</inherited>
to the plugin configuration to avoid inheritance in children POMs: