summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorSingla, Rajiv (rs153v) <rs153v@att.com>2017-10-26 16:56:21 -0400
committerSingla, Rajiv (rs153v) <rs153v@att.com>2017-10-26 16:56:58 -0400
commitef5da9b0c7ad76ae4295323c7f40dbca25c927d6 (patch)
treee5a9ed9f274bfd58fd17f2a2046d5dda4ab2a1e2 /pom.xml
parent3e591a4f3df0b73664d41b12ff57ed5f75c330f9 (diff)
TCA:Included git information in tca jars
Change-Id: I3e45d6ccdd10a526f0eb78fb228b8d02c528fcc3 Signed-off-by: Singla, Rajiv (rs153v) <rs153v@att.com> Issue-Id: DCAEGEN2-182
Diffstat (limited to 'pom.xml')
-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>