aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-09-06 00:06:30 +0000
committerLusheng Ji <lji@research.att.com>2017-09-06 00:07:25 +0000
commitc2a234c0bb0064091d4374e68bf07cf117379263 (patch)
tree04855cbf7059ca111294eb6a48b46b46df392ffe /pom.xml
parentbad9c3e070330ec6353b53213b320e7d67d9827c (diff)
Edit mvn-phase-script for test and deploy
Issues-Id: DCAEGEN2-60 Change-Id: I251e092c36fc59ab48793235854c252884200d71 Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml98
1 files changed, 27 insertions, 71 deletions
diff --git a/pom.xml b/pom.xml
index 60ac581..c4b40ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -33,7 +33,6 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <!-- skipping sonar until LF upgrades its sonarqube with Python support -->
<sonar.skip>true</sonar.skip>
<sonar.sources>.</sonar.sources>
<!-- customize the SONARQUBE URL -->
@@ -132,6 +131,26 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<skipTests>true</skipTests>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <configuration>
+ <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
+ <environmentVariables>
+ <!-- make mvn properties as env for our script -->
+ <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
+ <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
+ <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
+ <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
+ <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
+ <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
+ <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
+ <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
+ <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
+ </environmentVariables>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -166,19 +185,10 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<goal>exec</goal>
</goals>
<configuration>
- <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
<arguments>
- <argument>${project.artifactId}</argument>
+ <argument>__</argument>
<argument>clean</argument>
</arguments>
- <environmentVariables>
- <!-- make mvn properties as env for our script -->
- <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
- <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
- <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
- <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
- <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
- </environmentVariables>
</configuration>
</execution>
<execution>
@@ -188,19 +198,10 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<goal>exec</goal>
</goals>
<configuration>
- <executable>mvn-phase-script.sh</executable>
<arguments>
- <argument>${project.artifactId}</argument>
+ <argument>__</argument>
<argument>generate-sources</argument>
</arguments>
- <environmentVariables>
- <!-- make mvn properties as env for our script -->
- <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
- <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
- <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
- <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
- <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
- </environmentVariables>
</configuration>
</execution>
<execution>
@@ -210,19 +211,10 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<goal>exec</goal>
</goals>
<configuration>
- <executable>mvn-phase-script.sh</executable>
<arguments>
- <argument>${project.artifactId}</argument>
+ <argument>__</argument>
<argument>compile</argument>
</arguments>
- <environmentVariables>
- <!-- make mvn properties as env for our script -->
- <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
- <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
- <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
- <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
- <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
- </environmentVariables>
</configuration>
</execution>
<execution>
@@ -232,19 +224,10 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<goal>exec</goal>
</goals>
<configuration>
- <executable>mvn-phase-script.sh</executable>
<arguments>
- <argument>${project.artifactId}</argument>
+ <argument>__</argument>
<argument>package</argument>
</arguments>
- <environmentVariables>
- <!-- make mvn properties as env for our script -->
- <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
- <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
- <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
- <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
- <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
- </environmentVariables>
</configuration>
</execution>
<execution>
@@ -254,19 +237,10 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<goal>exec</goal>
</goals>
<configuration>
- <executable>mvn-phase-script.sh</executable>
<arguments>
- <argument>${project.artifactId}</argument>
+ <argument>__</argument>
<argument>test</argument>
</arguments>
- <environmentVariables>
- <!-- make mvn properties as env for our script -->
- <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
- <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
- <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
- <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
- <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
- </environmentVariables>
</configuration>
</execution>
<execution>
@@ -276,19 +250,10 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<goal>exec</goal>
</goals>
<configuration>
- <executable>mvn-phase-script.sh</executable>
<arguments>
- <argument>${project.artifactId}</argument>
+ <argument>__</argument>
<argument>install</argument>
</arguments>
- <environmentVariables>
- <!-- make mvn properties as env for our script -->
- <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
- <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
- <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
- <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
- <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
- </environmentVariables>
</configuration>
</execution>
<execution>
@@ -298,19 +263,10 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<goal>exec</goal>
</goals>
<configuration>
- <executable>mvn-phase-script.sh</executable>
<arguments>
- <argument>${project.artifactId}</argument>
+ <argument>__</argument>
<argument>deploy</argument>
</arguments>
- <environmentVariables>
- <!-- make mvn properties as env for our script -->
- <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
- <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
- <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
- <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
- <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
- </environmentVariables>
</configuration>
</execution>
</executions>