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>
<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>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
@@ -311,6 +341,21 @@
<ignore />
</action>
</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>
</lifecycleMappingMetadata>
</configuration>

View File

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

View File

@@ -19,6 +19,7 @@
<resources>
<resource>
<directory>config</directory>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
@@ -32,6 +33,19 @@
<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-source</id>
<goals>
@@ -154,7 +168,7 @@
<goal>run</goal>
</goals>
<configuration>
<tasks>
<tasks>
<delete file="${project.build.outputDirectory}/alfresco/extension/dev-context.xml"/>
<move todir="${project.build.directory}/${project.build.finalName}/config/alfresco">
<fileset dir="${project.build.outputDirectory}/alfresco"/>