REPO-2815 Populate version.properties with maven version

This commit is contained in:
Alex Mukha
2017-09-13 09:08:22 +01:00
parent 2af872dfab
commit 30afb2ad0c
4 changed files with 25 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>acs-community-packaging</artifactId> <artifactId>acs-community-packaging</artifactId>
<name>Alfresco Content Services Community Packaging</name> <name>Alfresco Content Services Community Packaging</name>
<version>6.0-SNAPSHOT</version> <version>6.0.a-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<parent> <parent>

View File

@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId> <artifactId>acs-community-packaging</artifactId>
<version>6.0-SNAPSHOT</version> <version>6.0.a-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@@ -215,6 +215,25 @@
<shortRevisionLength>8</shortRevisionLength> <shortRevisionLength>8</shortRevisionLength>
</configuration> </configuration>
</plugin> </plugin>
<!-- populate version.properties with the correct version -->
<!-- Creates the following variables:
parsedVersion.majorVersion
parsedVersion.minorVersion
parsedVersion.incrementalVersion
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<executions> <executions>

View File

@@ -4,9 +4,9 @@
# Version label # Version label
version.major=5 version.major=@parsedVersion.majorVersion@
version.minor=3 version.minor=@parsedVersion.minorVersion@
version.revision=0 version.revision=@parsedVersion.qualifier@
version.label= version.label=
# Edition label # Edition label

View File

@@ -8,7 +8,7 @@
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId> <artifactId>acs-community-packaging</artifactId>
<version>6.0-SNAPSHOT</version> <version>6.0.a-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>