summaryrefslogtreecommitdiffstats
path: root/veslibrary/ves_javalibrary/evel_javalib2
diff options
context:
space:
mode:
authorGokul Singaraju <goksing@gmail.com>2017-11-10 14:09:32 -0500
committerGokul Singaraju <goksing@gmail.com>2017-11-10 14:11:39 -0500
commit100d161e901876bddf1c3bfafebd8f1e6b1d5b99 (patch)
tree555e9d4bbb76d6d000918c271919b160aac15984 /veslibrary/ves_javalibrary/evel_javalib2
parent9b3bff3a86a9c32a849640efa8d99d219cc7ba68 (diff)
Changes for nexus repo jar
Issue-Id: VNFSDK-122 Change-Id: I398a31647dcdd79e119c0bfda4835e7f611258e5 Signed-Off-by: Gokul Singaraju <goksing@gmail.com>
Diffstat (limited to 'veslibrary/ves_javalibrary/evel_javalib2')
-rw-r--r--veslibrary/ves_javalibrary/evel_javalib2/pom.xml47
1 files changed, 37 insertions, 10 deletions
diff --git a/veslibrary/ves_javalibrary/evel_javalib2/pom.xml b/veslibrary/ves_javalibrary/evel_javalib2/pom.xml
index 9acaacb..fc4f209 100644
--- a/veslibrary/ves_javalibrary/evel_javalib2/pom.xml
+++ b/veslibrary/ves_javalibrary/evel_javalib2/pom.xml
@@ -1,10 +1,16 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>evel_javalib2</groupId>
+ <groupId>org.onap.vnfsdk.compliance</groupId>
<artifactId>evel_javalib2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>VESJavaLibrary</name>
+ <properties>
+ <!-- If the maven profile "docker" is specified the parameter -Dves.git.url=<MsoGitRepo> must be provided
+ i.e: mvn clean install -P docker -Dves.git.url=https://gerrit.onap.org/r-->
+ <ves.git.url>${env.GIT_NO_PROJECT}</ves.git.url>
+ <ves.project.version>${project.version}</ves.project.version>
+ </properties>
<repositories>
<repository>
@@ -18,14 +24,35 @@
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.5.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
+ <plugin>
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <source>
+ println project.properties['ves.project.version'];
+ def versionArray;
+ if ( project.properties['ves.project.version'] != null ) {
+ versionArray = project.properties['ves.project.version'].split('\\.');
+ }
+
+ if ( project.properties['ves.project.version'].endsWith("-SNAPSHOT") ) {
+ project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest";
+ } else {
+ project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
+ }
+
+ println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
@@ -85,4 +112,4 @@
<version>1.0.4</version>
</dependency>
</dependencies>
-</project> \ No newline at end of file
+</project>