mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Gaetan Boismal
03.44.2016 c1d2126ea3537969d74c829ca0156cef310ea697
OPENDJ-2582 Factor out buildnumber plugin in poms

As we were using the buildnumber-maven-plugin in few places of the sdk
and server, factor out the 'generate-buildnumber' execution in opendj-
sdk-parent pom:

* Use the 1.4 version
* Use buildRevision as property name for build number
* Keep the useLastCommittedRevision property to false (default value)
2 files modified
31 ■■■■■ changed files
opendj-sdk/opendj-core/pom.xml 12 ●●●● patch | view | raw | blame | history
opendj-sdk/opendj-sdk-parent/pom.xml 19 ●●●●● patch | view | raw | blame | history
opendj-sdk/opendj-core/pom.xml
@@ -96,18 +96,10 @@
                </executions>
            </plugin>
            <!-- Retrieve the SCM revision number and store it into the ${buildRevision} property -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>buildnumber-maven-plugin</artifactId>
                <version>1.4</version>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>create</goal>
                        </goals>
                     </execution>
                </executions>
            </plugin>
            <!-- Creates opendj-core bundle -->
@@ -123,7 +115,7 @@
                            org.forgerock.opendj.ldif
                        </Export-Package>
                        <Build-Maven>Apache Maven ${maven.version}</Build-Maven>
                        <SCM-Revision>${buildNumber}</SCM-Revision>
                        <SCM-Revision>${buildRevision}</SCM-Revision>
                        <SCM-Branch>${scmBranch}</SCM-Branch>
                        <Build-Time>${maven.build.timestamp}</Build-Time>
                        <Build-Java>${java.version}</Build-Java>
opendj-sdk/opendj-sdk-parent/pom.xml
@@ -181,6 +181,25 @@
                    </configuration>
                </plugin>
                <!-- Retrieve the SCM revision number -->
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>buildnumber-maven-plugin</artifactId>
                    <version>1.4</version>
                    <executions>
                        <execution>
                            <id>generate-buildnumber</id>
                            <goals>
                                <goal>create</goal>
                            </goals>
                            <configuration>
                                <buildNumberPropertyName>buildRevision</buildNumberPropertyName>
                                <revisionOnScmFailure>-1</revisionOnScmFailure>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-bundle-plugin</artifactId>