diff options
author | Lusheng Ji <lji@research.att.com> | 2017-09-12 01:55:25 +0000 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2017-09-12 01:55:31 +0000 |
commit | d6f3e2c86d529d928e7d340feae0f0320637db57 (patch) | |
tree | 8933e7903eb85950915bd9252431f27e9c33852f /pom.xml | |
parent | 264478fa989fd87b3e71fe06a6fa2a77ac2a3a3c (diff) |
Update pom, mvn scripts
Issue-Id: DCAEGEN2-60
Change-Id: I0dc403bc908bb23af1db14c60a4dcaf7bf79401d
Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 106 |
1 files changed, 36 insertions, 70 deletions
@@ -33,6 +33,7 @@ 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> + <sonar.skip>true</sonar.skip> <sonar.sources>.</sonar.sources> <!-- customize the SONARQUBE URL --> <!-- sonar.host.url>http://localhost:9000</sonar.host.url --> @@ -70,6 +71,14 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. <skip>true</skip> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>3.0.0-M1</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> <!-- first disable the default Java plugins at various stages --> <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources dir. we do not need it --> @@ -122,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> @@ -156,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> @@ -178,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> @@ -200,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> @@ -222,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> @@ -244,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> @@ -266,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> @@ -288,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> |