diff options
author | Lusheng Ji <lji@research.att.com> | 2017-09-06 00:06:30 +0000 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2017-09-06 00:07:25 +0000 |
commit | c2a234c0bb0064091d4374e68bf07cf117379263 (patch) | |
tree | 04855cbf7059ca111294eb6a48b46b46df392ffe /pom.xml | |
parent | bad9c3e070330ec6353b53213b320e7d67d9827c (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.xml | 98 |
1 files changed, 27 insertions, 71 deletions
@@ -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> |