added project.moduleVersion
This commit is contained in:
parent
0807afbcf9
commit
8f3d1e4a04
@ -30,6 +30,34 @@
|
|||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.inteligr8</groupId>
|
||||||
|
<artifactId>regex-maven-plugin</artifactId>
|
||||||
|
<version>1.0.5</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>acs-module-version</id>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals><goal>match-text</goal></goals>
|
||||||
|
<configuration>
|
||||||
|
<text>${project.version}</text>
|
||||||
|
<newProperty>project.moduleVersion</newProperty>
|
||||||
|
<regexes>
|
||||||
|
<!-- turn -SNAPSHOT into A0 -->
|
||||||
|
<regex>
|
||||||
|
<pattern>^(.*)-SNAPSHOT$</pattern>
|
||||||
|
<replacement>$1-A0</replacement>
|
||||||
|
</regex>
|
||||||
|
<!-- all others are just a copy -->
|
||||||
|
<regex>
|
||||||
|
<pattern>^(.*)$</pattern>
|
||||||
|
<replacement>$1</replacement>
|
||||||
|
</regex>
|
||||||
|
</regexes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user