mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
REPO-2815 Populate version.properties with maven version
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>acs-community-packaging</artifactId>
|
||||
<name>Alfresco Content Services Community Packaging</name>
|
||||
<version>6.0-SNAPSHOT</version>
|
||||
<version>6.0.a-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<parent>
|
||||
|
21
war/pom.xml
21
war/pom.xml
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>acs-community-packaging</artifactId>
|
||||
<version>6.0-SNAPSHOT</version>
|
||||
<version>6.0.a-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
@@ -215,6 +215,25 @@
|
||||
<shortRevisionLength>8</shortRevisionLength>
|
||||
</configuration>
|
||||
</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>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
|
@@ -4,9 +4,9 @@
|
||||
|
||||
# Version label
|
||||
|
||||
version.major=5
|
||||
version.minor=3
|
||||
version.revision=0
|
||||
version.major=@parsedVersion.majorVersion@
|
||||
version.minor=@parsedVersion.minorVersion@
|
||||
version.revision=@parsedVersion.qualifier@
|
||||
version.label=
|
||||
|
||||
# Edition label
|
||||
|
@@ -8,7 +8,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>acs-community-packaging</artifactId>
|
||||
<version>6.0-SNAPSHOT</version>
|
||||
<version>6.0.a-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
Reference in New Issue
Block a user