blob: 4b0217cc33148bab3298c241b299ecf189ed6a43 [file] [log] [blame]
Lusheng Ji487c0cc2017-08-22 21:44:29 -07001<?xml version="1.0"?>
Lusheng Ji64472de2017-08-30 02:16:05 +00002<!--
3================================================================================
4Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
5================================================================================
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing, software
13distributed under the License is distributed on an "AS IS" BASIS,
14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15See the License for the specific language governing permissions and
16limitations under the License.
17============LICENSE_END=========================================================
18
19ECOMP 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 Ji487c0cc2017-08-22 21:44:29 -070022 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.onap.oparent</groupId>
25 <artifactId>oparent</artifactId>
Gary Wu86a8d902018-08-24 15:19:54 -070026 <version>1.2.0</version>
Lusheng Ji487c0cc2017-08-22 21:44:29 -070027 </parent>
Lusheng Ji487c0cc2017-08-22 21:44:29 -070028 <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo -->
Lusheng Jic8d7ad72017-10-10 03:48:00 +000029 <groupId>org.onap</groupId>
Lusheng Jicf33dde2017-09-26 09:51:09 +020030 <artifactId>dcaegen2</artifactId>
Lusheng Jic8d7ad72017-10-10 03:48:00 +000031 <name>dcaegen2</name>
Lusheng Ji64472de2017-08-30 02:16:05 +000032
Lusheng Jif9415f02018-05-09 12:05:01 -040033 <version>1.2.1-SNAPSHOT</version>
Lusheng Ji487c0cc2017-08-22 21:44:29 -070034 <url>http://maven.apache.org</url>
Lusheng Ji16948022017-09-11 23:38:09 +000035 <packaging>pom</packaging>
Michael Hwang20cb0232017-11-03 14:32:05 -040036 <!-- TODO: Revisit. Port platform docs to sphinx/rst first.
Lusheng Ji16948022017-09-11 23:38:09 +000037 <modules>
38 <module>platformdoc</module>
39 </modules>
Michael Hwang20cb0232017-11-03 14:32:05 -040040 -->
Lusheng Ji16948022017-09-11 23:38:09 +000041
Lusheng Ji487c0cc2017-08-22 21:44:29 -070042 <properties>
Lusheng Jieab16752017-09-19 18:39:04 +000043 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
44 <!-- properties for Nexus raw repo -->
45 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload>
46 <onap.nexus.rawrepo.baseurl.download>https://nexus.onap.org/service/local/repositories/raw/content</onap.nexus.rawrepo.baseurl.download>
47 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
48 <!-- properties for Nexus Docker registry -->
49 <onap.nexus.dockerregistry.snapshot>nexus3.onap.org:10003</onap.nexus.dockerregistry.snapshot>
50 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
51 <onap.nexus.dockerregistry.snapshot.serverid>nexus3.onap.org:10003</onap.nexus.dockerregistry.snapshot.serverid>
52 <onap.nexus.dockerregistry.release.serverid>nexus3.onap.org:10002</onap.nexus.dockerregistry.release.serverid>
53 <!-- properties for Pypi server -->
54 <onap.nexus.pypiserver.baseurl>https://nexus3.onap.org/repository/PyPi</onap.nexus.pypiserver.baseurl>
55 <onap.nexus.pypiserver.serverid>onap-pypi</onap.nexus.pypiserver.serverid>
56
Lusheng Ji487c0cc2017-08-22 21:44:29 -070057 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Lusheng Jieab16752017-09-19 18:39:04 +000058 <sonar.skip>false</sonar.skip>
Lusheng Ji487c0cc2017-08-22 21:44:29 -070059 <sonar.sources>.</sonar.sources>
60 <!-- customize the SONARQUBE URL -->
Lusheng Ji64472de2017-08-30 02:16:05 +000061 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
Lusheng Ji487c0cc2017-08-22 21:44:29 -070062 <!-- below are language dependent -->
63 <!-- for Python -->
64 <sonar.language>py</sonar.language>
65 <sonar.pluginName>Python</sonar.pluginName>
66 <sonar.inclusions>**/*.py</sonar.inclusions>
67 <!-- for JavaScaript -->
68 <!--
69 <sonar.language>js</sonar.language>
70 <sonar.pluginName>JS</sonar.pluginName>
71 <sonar.inclusions>**/*.js</sonar.inclusions>
72 -->
73 </properties>
Lusheng Ji487c0cc2017-08-22 21:44:29 -070074 <build>
75 <finalName>${project.artifactId}-${project.version}</finalName>
76 <pluginManagement>
77 <plugins>
Lusheng Jib276f382017-09-26 17:52:44 +020078 <!-- the following plugins are invoked from oparent, we do not need them -->
Lusheng Jia29682d2017-10-09 21:31:11 +000079 <!--plugin>
Lusheng Jib276f382017-09-26 17:52:44 +020080 <groupId>org.sonatype.plugins</groupId>
81 <artifactId>nexus-staging-maven-plugin</artifactId>
82 <version>1.6.7</version>
83 <configuration>
84 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
85 </configuration>
Lusheng Jia29682d2017-10-09 21:31:11 +000086 </plugin-->
87 <!--plugin>
Lusheng Jib276f382017-09-26 17:52:44 +020088 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-deploy-plugin</artifactId>
Lusheng Jib276f382017-09-26 17:52:44 +020090 <version>2.8</version>
91 <configuration>
92 <skip>true</skip>
93 </configuration>
Lusheng Jia29682d2017-10-09 21:31:11 +000094 </plugin-->
Lusheng Jib276f382017-09-26 17:52:44 +020095 <!-- first disable the default Java plugins at various stages -->
96 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
97 the resources dir. we do not need it -->
Lusheng Ji3741e6c2017-10-09 22:21:47 +000098 <!--plugin>
Lusheng Jib276f382017-09-26 17:52:44 +020099 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-resources-plugin</artifactId>
101 <version>2.6</version>
102 <configuration>
103 <skip>true</skip>
104 </configuration>
Lusheng Ji3741e6c2017-10-09 22:21:47 +0000105 </plugin-->
Lusheng Jib276f382017-09-26 17:52:44 +0200106 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
Lusheng Ji3741e6c2017-10-09 22:21:47 +0000107 <!--plugin>
Lusheng Jib276f382017-09-26 17:52:44 +0200108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-compiler-plugin</artifactId>
110 <version>3.1</version>
111 <configuration>
112 <skip>true</skip>
113 </configuration>
Lusheng Ji3741e6c2017-10-09 22:21:47 +0000114 </plugin-->
Lusheng Jib276f382017-09-26 17:52:44 +0200115 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
Lusheng Ji3741e6c2017-10-09 22:21:47 +0000116 <!--plugin>
Lusheng Jib276f382017-09-26 17:52:44 +0200117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-jar-plugin</artifactId>
119 <version>2.4</version>
120 <executions>
121 <execution>
122 <id>default-jar</id>
123 <phase/>
124 </execution>
125 </executions>
Lusheng Ji3741e6c2017-10-09 22:21:47 +0000126 </plugin-->
Lusheng Jib276f382017-09-26 17:52:44 +0200127 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
128 target dir to ~/.m2. we do not need it -->
Lusheng Ji3741e6c2017-10-09 22:21:47 +0000129 <!--plugin>
Lusheng Jib276f382017-09-26 17:52:44 +0200130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-install-plugin</artifactId>
132 <version>2.4</version>
133 <configuration>
134 <skip>true</skip>
135 </configuration>
Lusheng Ji3741e6c2017-10-09 22:21:47 +0000136 </plugin-->
Lusheng Jib276f382017-09-26 17:52:44 +0200137 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
138 we do not need it -->
Lusheng Ji3741e6c2017-10-09 22:21:47 +0000139 <!--plugin>
Lusheng Jib276f382017-09-26 17:52:44 +0200140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-surefire-plugin</artifactId>
142 <version>2.12.4</version>
143 <configuration>
144 <skipTests>true</skipTests>
145 </configuration>
Lusheng Ji3741e6c2017-10-09 22:21:47 +0000146 </plugin-->
Lusheng Jib276f382017-09-26 17:52:44 +0200147
Lusheng Ji16948022017-09-11 23:38:09 +0000148 <plugin>
149 <groupId>org.codehaus.mojo</groupId>
150 <artifactId>exec-maven-plugin</artifactId>
151 <version>1.2.1</version>
152 <configuration>
153 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
154 <environmentVariables>
155 <!-- make mvn properties as env for our script -->
Lusheng Jieab16752017-09-19 18:39:04 +0000156 <!-- make mvn properties as env for our script -->
157 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
158 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
159 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
Lusheng Ji16948022017-09-11 23:38:09 +0000160 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
161 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
162 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
163 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
Lusheng Jieab16752017-09-19 18:39:04 +0000164 <MVN_DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.snapshot}</MVN_DOCKERREGISTRY_SNAPSHOT>
Lusheng Ji16948022017-09-11 23:38:09 +0000165 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
Lusheng Jieab16752017-09-19 18:39:04 +0000166 <MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>${onap.nexus.dockerregistry.snapshot.serverid}</MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>
167 <MVN_DOCKERREGISTRY_RELEASE_SERVERID>${onap.nexus.dockerregistry.release.serverid}</MVN_DOCKERREGISTRY_RELEASE_SERVERID>
168 <MVN_PYPISERVER_BASEURL>${onap.nexus.pypiserver.baseurl}</MVN_PYPISERVER_BASEURL>
169 <MVN_PYPISERVER_SERVERID>${onap.nexus.pypiserver.serverid}</MVN_PYPISERVER_SERVERID>
Lusheng Ji16948022017-09-11 23:38:09 +0000170 </environmentVariables>
171 </configuration>
172 </plugin>
Lusheng Ji487c0cc2017-08-22 21:44:29 -0700173 </plugins>
174 </pluginManagement>
Lusheng Ji487c0cc2017-08-22 21:44:29 -0700175 </build>
176</project>