summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Hansen <tony@att.com>2017-10-27 12:33:14 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-27 12:33:14 +0000
commitf12d063eba60eb85f6109fac8e488604ec85825d (patch)
tree0c22a3f2fdcea8b8be76f62ad10240a12dc096ed
parent6d689539cc3c3d6f7b5d8564e268047f29c24007 (diff)
parentef5da9b0c7ad76ae4295323c7f40dbca25c927d6 (diff)
Merge "TCA:Included git information in tca jars"v2.0.01.0.0-ONAP1.0.0-Amsterdam
-rw-r--r--pom.xml47
1 files changed, 43 insertions, 4 deletions
diff --git a/pom.xml b/pom.xml
index 7521682..f6ef4c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -103,6 +103,7 @@
<jar.plugin.version>2.4</jar.plugin.version>
<lombok.plugin.version>1.16.10.0</lombok.plugin.version>
<jgitflow.plugin.version>1.0-m5.1</jgitflow.plugin.version>
+ <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
<maven.site.plugin>3.5.1</maven.site.plugin>
<jxr.plugin.version>2.5</jxr.plugin.version>
<project.info.reports.plugin.version>2.7</project.info.reports.plugin.version>
@@ -121,9 +122,11 @@
<checkstyle.suppression.file.name>suppressions.xml</checkstyle.suppression.file.name>
<dependency.locations.enabled>false</dependency.locations.enabled>
<nexusproxy>https://nexus.onap.org</nexusproxy>
- <snapshots.path>content/repositories/snapshots/</snapshots.path>
- <releases.path>content/repositories/releases/</releases.path>
- <site.path>content/sites/site/org/onap/dcaegen2/analytics/tca/${project.artifactId}/${project.version}</site.path>
+ <snapshots.path>content/repositories/snapshots/</snapshots.path>
+ <releases.path>content/repositories/releases/</releases.path>
+ <site.path>
+ content/sites/site/org/onap/dcaegen2/analytics/tca/${project.artifactId}/${project.version}
+ </site.path>
</properties>
<dependencyManagement>
@@ -543,6 +546,15 @@
<build>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/src/main/resources</directory>
+ </resource>
+ <resource>
+ <directory>${project.build.directory}/git</directory>
+ </resource>
+ </resources>
+
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
@@ -838,6 +850,28 @@
</executions>
</plugin>
+ <!-- GIT COMMIT ID PLUGIN -->
+ <plugin>
+ <groupId>pl.project13.maven</groupId>
+ <artifactId>git-commit-id-plugin</artifactId>
+ <version>${gitcommitid.plugin.version}</version>
+ <executions>
+ <execution>
+ <id>generate-git-properties</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>revision</goal>
+ </goals>
+ <configuration>
+ <failOnNoGitDirectory>false</failOnNoGitDirectory>
+ <generateGitPropertiesFile>true</generateGitPropertiesFile>
+ <generateGitPropertiesFilename>
+ ${project.build.directory}/git/git.properties
+ </generateGitPropertiesFilename>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<!-- JGIT FLOW PLUGIN -->
<plugin>
@@ -981,6 +1015,11 @@
<artifactId>jgitflow-maven-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>pl.project13.maven</groupId>
+ <artifactId>git-commit-id-plugin</artifactId>
+ </plugin>
+
</plugins>
</build>
@@ -1050,4 +1089,4 @@
<module>dcae-analytics-aai</module>
</modules>
-</project>
+</project>