Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 1 | <?xml version="1.0"?> |
Lusheng Ji | 64472de | 2017-08-30 02:16:05 +0000 | [diff] [blame] | 2 | <!-- |
| 3 | ================================================================================ |
| 4 | Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. |
| 5 | ================================================================================ |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | ============LICENSE_END========================================================= |
| 18 | |
| 19 | ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 20 | --> |
| 21 | <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"> |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.onap.oparent</groupId> |
| 25 | <artifactId>oparent</artifactId> |
| 26 | <version>1.0.0-SNAPSHOT</version> |
| 27 | </parent> |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 28 | <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo --> |
| 29 | <groupId>org.onap.dcaegen2</groupId> |
| 30 | <artifactId>dcaegen2</artifactId> |
| 31 | <name>dcaegen2</name> |
Lusheng Ji | 64472de | 2017-08-30 02:16:05 +0000 | [diff] [blame] | 32 | |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 33 | <version>1.0.0-SNAPSHOT</version> |
| 34 | <url>http://maven.apache.org</url> |
Lusheng Ji | 1694802 | 2017-09-11 23:38:09 +0000 | [diff] [blame^] | 35 | <packaging>pom</packaging> |
| 36 | <modules> |
| 37 | <module>platformdoc</module> |
| 38 | </modules> |
| 39 | |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 40 | <properties> |
| 41 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Lusheng Ji | 1694802 | 2017-09-11 23:38:09 +0000 | [diff] [blame^] | 42 | <sonar.skip>true</sonar.skip> |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 43 | <sonar.sources>.</sonar.sources> |
| 44 | <!-- customize the SONARQUBE URL --> |
Lusheng Ji | 64472de | 2017-08-30 02:16:05 +0000 | [diff] [blame] | 45 | <!-- sonar.host.url>http://localhost:9000</sonar.host.url --> |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 46 | <!-- below are language dependent --> |
| 47 | <!-- for Python --> |
| 48 | <sonar.language>py</sonar.language> |
| 49 | <sonar.pluginName>Python</sonar.pluginName> |
| 50 | <sonar.inclusions>**/*.py</sonar.inclusions> |
| 51 | <!-- for JavaScaript --> |
| 52 | <!-- |
| 53 | <sonar.language>js</sonar.language> |
| 54 | <sonar.pluginName>JS</sonar.pluginName> |
| 55 | <sonar.inclusions>**/*.js</sonar.inclusions> |
| 56 | --> |
| 57 | </properties> |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 58 | <build> |
| 59 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 60 | <pluginManagement> |
| 61 | <plugins> |
Lusheng Ji | 64472de | 2017-08-30 02:16:05 +0000 | [diff] [blame] | 62 | <!-- the following plugins are invoked from oparent, we do not need them --> |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 63 | <plugin> |
Lusheng Ji | 64472de | 2017-08-30 02:16:05 +0000 | [diff] [blame] | 64 | <groupId>org.sonatype.plugins</groupId> |
| 65 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 66 | <version>1.6.7</version> |
| 67 | <configuration> |
| 68 | <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo> |
Lusheng Ji | 1694802 | 2017-09-11 23:38:09 +0000 | [diff] [blame^] | 69 | <skip>true</skip> |
Lusheng Ji | 64472de | 2017-08-30 02:16:05 +0000 | [diff] [blame] | 70 | </configuration> |
| 71 | </plugin> |
| 72 | <plugin> |
| 73 | <groupId>org.apache.maven.plugins</groupId> |
| 74 | <artifactId>maven-deploy-plugin</artifactId> |
| 75 | <!-- This version supports the "deployAtEnd" parameter --> |
| 76 | <version>2.8</version> |
| 77 | <configuration> |
| 78 | <skip>true</skip> |
| 79 | </configuration> |
| 80 | </plugin> |
| 81 | <!-- first disable the default Java plugins at various stages --> |
Lusheng Ji | 1694802 | 2017-09-11 23:38:09 +0000 | [diff] [blame^] | 82 | <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares |
| 83 | the resources dir. we do not need it --> |
Lusheng Ji | 64472de | 2017-08-30 02:16:05 +0000 | [diff] [blame] | 84 | <plugin> |
| 85 | <groupId>org.apache.maven.plugins</groupId> |
| 86 | <artifactId>maven-resources-plugin</artifactId> |
| 87 | <version>2.6</version> |
| 88 | <configuration> |
| 89 | <skip>true</skip> |
| 90 | </configuration> |
| 91 | </plugin> |
| 92 | <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it --> |
| 93 | <plugin> |
| 94 | <groupId>org.apache.maven.plugins</groupId> |
| 95 | <artifactId>maven-compiler-plugin</artifactId> |
| 96 | <version>3.1</version> |
| 97 | <configuration> |
| 98 | <skip>true</skip> |
| 99 | </configuration> |
| 100 | </plugin> |
| 101 | <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it --> |
| 102 | <plugin> |
| 103 | <groupId>org.apache.maven.plugins</groupId> |
| 104 | <artifactId>maven-jar-plugin</artifactId> |
| 105 | <version>2.4</version> |
| 106 | <executions> |
| 107 | <execution> |
| 108 | <id>default-jar</id> |
| 109 | <phase/> |
| 110 | </execution> |
| 111 | </executions> |
| 112 | </plugin> |
| 113 | <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under |
Lusheng Ji | 1694802 | 2017-09-11 23:38:09 +0000 | [diff] [blame^] | 114 | target dir to ~/.m2. we do not need it --> |
Lusheng Ji | 64472de | 2017-08-30 02:16:05 +0000 | [diff] [blame] | 115 | <plugin> |
| 116 | <groupId>org.apache.maven.plugins</groupId> |
| 117 | <artifactId>maven-install-plugin</artifactId> |
| 118 | <version>2.4</version> |
| 119 | <configuration> |
| 120 | <skip>true</skip> |
| 121 | </configuration> |
| 122 | </plugin> |
| 123 | <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test. |
Lusheng Ji | 1694802 | 2017-09-11 23:38:09 +0000 | [diff] [blame^] | 124 | we do not need it --> |
Lusheng Ji | 64472de | 2017-08-30 02:16:05 +0000 | [diff] [blame] | 125 | <plugin> |
| 126 | <groupId>org.apache.maven.plugins</groupId> |
| 127 | <artifactId>maven-surefire-plugin</artifactId> |
| 128 | <version>2.12.4</version> |
| 129 | <configuration> |
| 130 | <skipTests>true</skipTests> |
| 131 | </configuration> |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 132 | </plugin> |
Lusheng Ji | 1694802 | 2017-09-11 23:38:09 +0000 | [diff] [blame^] | 133 | <plugin> |
| 134 | <groupId>org.codehaus.mojo</groupId> |
| 135 | <artifactId>exec-maven-plugin</artifactId> |
| 136 | <version>1.2.1</version> |
| 137 | <configuration> |
| 138 | <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable> |
| 139 | <environmentVariables> |
| 140 | <!-- make mvn properties as env for our script --> |
| 141 | <MVN_PROJECT_GROUPID>${parent.groupId}</MVN_PROJECT_GROUPID> |
| 142 | <MVN_PROJECT_ARTIFACTID>${parent.artifactId}</MVN_PROJECT_ARTIFACTID> |
| 143 | <MVN_PROJECT_VERSION>${parent.version}</MVN_PROJECT_VERSION> |
| 144 | <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY> |
| 145 | <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD> |
| 146 | <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD> |
| 147 | <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID> |
| 148 | <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY> |
| 149 | <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE> |
| 150 | </environmentVariables> |
| 151 | </configuration> |
| 152 | </plugin> |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 153 | </plugins> |
| 154 | </pluginManagement> |
Lusheng Ji | 487c0cc | 2017-08-22 21:44:29 -0700 | [diff] [blame] | 155 | </build> |
| 156 | </project> |