You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ts...@apache.org on 2017/07/09 19:18:00 UTC
[09/12] logging-log4cxx git commit: Tried to get versionWoSuffix
using Groovy,
doesn't work as wlel. The keyword is model interpolation in maven and that
seems to happen to soon in case of my site-deploy-target dir from
distirbutionManagement..
Tried to get versionWoSuffix using Groovy, doesn't work as wlel. The keyword is model interpolation in maven and that seems to happen to soon in case of my site-deploy-target dir from distirbutionManagement..
Project: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/commit/69998e14
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/tree/69998e14
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/diff/69998e14
Branch: refs/heads/master
Commit: 69998e146277f9e9ac91cbe0515c6e915cc1d992
Parents: 2558085
Author: Thorsten Schöning <ts...@am-soft.de>
Authored: Sun Jul 9 11:39:51 2017 +0200
Committer: Thorsten Schöning <ts...@am-soft.de>
Committed: Sun Jul 9 11:39:51 2017 +0200
----------------------------------------------------------------------
pom.xml | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4cxx/blob/69998e14/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 03b9e10..dcefd73 100644
--- a/pom.xml
+++ b/pom.xml
@@ -324,6 +324,28 @@
</plugin>
<plugin>
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <version>1.0</version>
+
+ <executions>
+ <execution>
+ <id>regex-property</id>
+ <phase>site-deploy</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+
+ <configuration>
+ <source>
+ System.setProperty("versionWoSuffix", "${project.version}".replace('-SNAPSHOT', ''))
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<configuration>
@@ -392,7 +414,7 @@
</repository>
<site>
<id>logging.site</id>
- <url>file:///${user.dir}/target/site-deploy/${project.version}</url>
+ <url>file:///${user.dir}/target/site-deploy/${project.versionWoSuffix}</url>
</site>
</distributionManagement>
</project>