RM-4245_update_module_version

This commit is contained in:
Mihai Cozma
2016-10-13 15:37:54 +03:00
parent 9ed29822ee
commit cc2046f31a
3 changed files with 61 additions and 2 deletions

45
pom.xml
View File

@@ -85,6 +85,36 @@
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>regex-property</id>
<goals>
<goal>regex-property</goal>
</goals>
<configuration>
<name>rm.module.version</name>
<value>${project.version}</value>
<regex>(\d+)\.(\d+).(\d+).*</regex>
<replacement>$1.$2.$3</replacement>
<failIfNoMatch>true</failIfNoMatch>
</configuration>
</execution>
<execution>
<id>add-test-source</id>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>unit-test/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
@@ -311,6 +341,21 @@
<ignore /> <ignore />
</action> </action>
</pluginExecution> </pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>
build-helper-maven-plugin
</artifactId>
<versionRange>[1.8,)</versionRange>
<goals>
<goal>regex-property</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions> </pluginExecutions>
</lifecycleMappingMetadata> </lifecycleMappingMetadata>
</configuration> </configuration>

View File

@@ -6,6 +6,6 @@ module.aliases=org_alfresco_module_dod5015
module.title=Records Management module.title=Records Management
module.description=Alfresco Record Management Extension module.description=Alfresco Record Management Extension
module.version=2.3 module.version=${rm.module.version}
module.repo.version.min=4.2.2 module.repo.version.min=4.2.2

View File

@@ -19,6 +19,7 @@
<resources> <resources>
<resource> <resource>
<directory>config</directory> <directory>config</directory>
<filtering>true</filtering>
</resource> </resource>
</resources> </resources>
<testResources> <testResources>
@@ -32,6 +33,19 @@
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId> <artifactId>build-helper-maven-plugin</artifactId>
<executions> <executions>
<execution>
<id>regex-property</id>
<goals>
<goal>regex-property</goal>
</goals>
<configuration>
<name>rm.module.version</name>
<value>${project.version}</value>
<regex>(\d+)\.(\d+).(\d+).*</regex>
<replacement>$1.$2.$3</replacement>
<failIfNoMatch>true</failIfNoMatch>
</configuration>
</execution>
<execution> <execution>
<id>add-source</id> <id>add-source</id>
<goals> <goals>