Code cleanup
Factor out build-helper-maven-plugin:version and parse-version execution
declaration.
| | |
| | | <plugin> |
| | | <groupId>org.codehaus.mojo</groupId> |
| | | <artifactId>build-helper-maven-plugin</artifactId> |
| | | <version>1.8</version> |
| | | <executions> |
| | | <execution> |
| | | <id>parse-version</id> |
| | | <goals> |
| | | <goal>parse-version</goal> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | |
| | | <plugin> |
| | |
| | | <plugin> |
| | | <groupId>org.codehaus.mojo</groupId> |
| | | <artifactId>build-helper-maven-plugin</artifactId> |
| | | <version>1.8</version> |
| | | <executions> |
| | | <!-- Run inherited 'parse-version' execution to generate properties (major.version, minor.version, ...) --> |
| | | |
| | | <!-- Take into account several sources directories for the build --> |
| | | <execution> |
| | | <id>main-java-sources</id> |
| | |
| | | </sources> |
| | | </configuration> |
| | | </execution> |
| | | <!-- Parse version to generate properties (major.version, minor.version, ...) --> |
| | | <execution> |
| | | <id>parse-version</id> |
| | | <goals> |
| | | <goal>parse-version</goal> |
| | | </goals> |
| | | </execution> |
| | | |
| | | <!-- Attach localized jars to this module --> |
| | | <execution> |
| | |
| | | <plugin> |
| | | <groupId>org.codehaus.mojo</groupId> |
| | | <artifactId>build-helper-maven-plugin</artifactId> |
| | | <version>1.7</version> |
| | | <executions> |
| | | <!-- Add snmp source directory and snmp generated directory as sources --> |
| | | <execution> |
| | |
| | | Header, with the fields enclosed by brackets [] replaced by your own identifying |
| | | information: "Portions Copyright [year] [name of copyright owner]". |
| | | |
| | | Copyright 2013-2015 ForgeRock AS. |
| | | Copyright 2013-2016 ForgeRock AS. |
| | | --> |
| | | <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> |
| | |
| | | <filtering>true</filtering> |
| | | </resource> |
| | | </resources> |
| | | |
| | | <plugins> |
| | | <!-- Parse version to generate properties (major.version, minor.version, ...) --> |
| | | <plugin> |
| | | <groupId>org.codehaus.mojo</groupId> |
| | | <artifactId>build-helper-maven-plugin</artifactId> |
| | | <version>1.8</version> |
| | | <executions> |
| | | <execution> |
| | | <id>parse-version</id> |
| | | <goals> |
| | | <goal>parse-version</goal> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | |
| | | <!-- Retrieve the SVN revision number and the build timestamp --> |
| | | <plugin> |
| | | <groupId>org.codehaus.mojo</groupId> |
| | |
| | | <version>${project.version}</version> |
| | | </plugin> |
| | | |
| | | <plugin> |
| | | <groupId>org.codehaus.mojo</groupId> |
| | | <artifactId>build-helper-maven-plugin</artifactId> |
| | | <version>1.8</version> |
| | | <executions> |
| | | <!-- Parse version to generate properties (major.version, minor.version, ...) --> |
| | | <execution> |
| | | <id>parse-version</id> |
| | | <goals> |
| | | <goal>parse-version</goal> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | |
| | | <!-- |
| | | | This plugin's configuration is used to store Eclipse m2e settings only. |
| | | | It has no influence on the Maven build itself. |