fix module.version
This commit is contained in:
parent
f19e1ce7a7
commit
974d46775f
@ -30,6 +30,23 @@
|
|||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<version>3.2.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>module-snapshot-timestamp</id>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals><goal>timestamp-property</goal></goals>
|
||||||
|
<configuration>
|
||||||
|
<name>module.timestamp</name>
|
||||||
|
<timeSource>build</timeSource>
|
||||||
|
<pattern>yyyyMMddHHmmss</pattern>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.inteligr8</groupId>
|
<groupId>com.inteligr8</groupId>
|
||||||
<artifactId>regex-maven-plugin</artifactId>
|
<artifactId>regex-maven-plugin</artifactId>
|
||||||
@ -41,12 +58,12 @@
|
|||||||
<goals><goal>replace-text</goal></goals>
|
<goals><goal>replace-text</goal></goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<text>${project.version}</text>
|
<text>${project.version}</text>
|
||||||
<newProperty>project.moduleVersion</newProperty>
|
<newProperty>module.version</newProperty>
|
||||||
<regexes>
|
<regexes>
|
||||||
<!-- turn -SNAPSHOT into A0 -->
|
<!-- turn -SNAPSHOT into ATIMESTAMP -->
|
||||||
<regex>
|
<regex>
|
||||||
<pattern>^(.*)-SNAPSHOT$</pattern>
|
<pattern>^(.*)-SNAPSHOT$</pattern>
|
||||||
<replacement>$1-A0</replacement>
|
<replacement>$1-A${module.timestamp}</replacement>
|
||||||
</regex>
|
</regex>
|
||||||
<!-- all others are just a copy -->
|
<!-- all others are just a copy -->
|
||||||
<regex>
|
<regex>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user