blob: 6991ba7b7fe6f53b019003cebfc4a945074ff366 [file] [log] [blame]
Lusheng Ji16948022017-09-11 23:38:09 +00001<?xml version="1.0"?>
2<!--
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">
22 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.onap.dcaegen2</groupId>
Lusheng Jief17e0e2017-09-26 11:29:39 +020025 <artifactId>dcaegen2</artifactId>
vagrant3ffda692017-11-25 05:37:06 +000026 <version>1.2.0-SNAPSHOT</version>
Lusheng Ji16948022017-09-11 23:38:09 +000027 </parent>
28 <groupId>org.onap.dcaegen2</groupId>
29 <artifactId>platformdoc</artifactId>
30 <name>dcaegen2-platformdoc</name>
vagrant3ffda692017-11-25 05:37:06 +000031 <version>1.2.0-SNAPSHOT</version>
Lusheng Ji16948022017-09-11 23:38:09 +000032 <url>http://maven.apache.org</url>
33
34 <properties>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <sonar.skip>true</sonar.skip>
37 <sonar.sources>.</sonar.sources>
38 <!-- customize the SONARQUBE URL -->
39 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
40 <!-- below are language dependent -->
41 <!-- for Python -->
42 <sonar.language>py</sonar.language>
43 <sonar.pluginName>Python</sonar.pluginName>
44 <sonar.inclusions>**/*.py</sonar.inclusions>
45 <!-- for JavaScaript -->
46 <!--
47 <sonar.language>js</sonar.language>
48 <sonar.pluginName>JS</sonar.pluginName>
49 <sonar.inclusions>**/*.js</sonar.inclusions>
50 -->
51 </properties>
52 <build>
53 <finalName>${project.artifactId}-${project.version}</finalName>
Lusheng Jieab16752017-09-19 18:39:04 +000054 <pluginManagement>
55 <plugins>
Lusheng Jib276f382017-09-26 17:52:44 +020056 <!-- the following plugins are invoked from oparent, we do not need them -->
57 <plugin>
58 <groupId>org.sonatype.plugins</groupId>
59 <artifactId>nexus-staging-maven-plugin</artifactId>
60 <version>1.6.7</version>
61 <configuration>
62 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
63 </configuration>
64 </plugin>
65 <plugin>
66 <groupId>org.apache.maven.plugins</groupId>
67 <artifactId>maven-deploy-plugin</artifactId>
68 <!-- This version supports the "deployAtEnd" parameter -->
69 <version>2.8</version>
70 <configuration>
71 <skip>true</skip>
72 </configuration>
73 </plugin>
74 <!-- first disable the default Java plugins at various stages -->
75 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
76 the resources dir. we do not need it -->
77 <plugin>
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-resources-plugin</artifactId>
80 <version>2.6</version>
81 <configuration>
82 <skip>true</skip>
83 </configuration>
84 </plugin>
85 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
86 <plugin>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-compiler-plugin</artifactId>
89 <version>3.1</version>
90 <configuration>
91 <skip>true</skip>
92 </configuration>
93 </plugin>
94 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-jar-plugin</artifactId>
98 <version>2.4</version>
99 <executions>
100 <execution>
101 <id>default-jar</id>
102 <phase/>
103 </execution>
104 </executions>
105 </plugin>
106 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
107 target dir to ~/.m2. we do not need it -->
108 <plugin>
109 <groupId>org.apache.maven.plugins</groupId>
110 <artifactId>maven-install-plugin</artifactId>
111 <version>2.4</version>
112 <configuration>
113 <skip>true</skip>
114 </configuration>
115 </plugin>
116 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
117 we do not need it -->
118 <plugin>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-surefire-plugin</artifactId>
121 <version>2.12.4</version>
122 <configuration>
123 <skipTests>true</skipTests>
124 </configuration>
125 </plugin>
126
Lusheng Jieab16752017-09-19 18:39:04 +0000127 <plugin>
128 <groupId>org.codehaus.mojo</groupId>
129 <artifactId>exec-maven-plugin</artifactId>
130 <version>1.2.1</version>
131 <configuration>
132 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
133 <environmentVariables>
134 <!-- make mvn properties as env for our script -->
135 <MVN_PROJECT_GROUPID>${project.parent.groupId}</MVN_PROJECT_GROUPID>
136 <MVN_PROJECT_ARTIFACTID>${project.parent.artifactId}</MVN_PROJECT_ARTIFACTID>
137 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
138 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
139 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
140 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
141 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
142 <MVN_DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.snapshot}</MVN_DOCKERREGISTRY_SNAPSHOT>
143 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
144 <MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>${onap.nexus.dockerregistry.snapshot.serverid}</MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>
145 <MVN_DOCKERREGISTRY_RELEASE_SERVERID>${onap.nexus.dockerregistry.release.serverid}</MVN_DOCKERREGISTRY_RELEASE_SERVERID>
146 <MVN_PYPISERVER_BASEURL>${onap.nexus.pypiserver.baseurl}</MVN_PYPISERVER_BASEURL>
147 <MVN_PYPISERVER_SERVERID>${onap.nexus.pypiserver.serverid}</MVN_PYPISERVER_SERVERID>
148 </environmentVariables>
149 </configuration>
150 </plugin>
151 </plugins>
152 </pluginManagement>
153
Lusheng Ji16948022017-09-11 23:38:09 +0000154 <plugins>
155 <!-- plugin>
156 <artifactId>maven-assembly-plugin</artifactId>
157 <version>2.4.1</version>
158 <configuration>
159 <descriptors>
160 <descriptor>assembly/dep.xml</descriptor>
161 </descriptors>
162 </configuration>
163 <executions>
164 <execution>
165 <id>make-assembly</id>
166 <phase>package</phase>
167 <goals>
168 <goal>single</goal>
169 </goals>
170 </execution>
171 </executions>
172 </plugin -->
173 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
174 <plugin>
175 <groupId>org.codehaus.mojo</groupId>
176 <artifactId>exec-maven-plugin</artifactId>
177 <version>1.2.1</version>
178 <executions>
179 <execution>
180 <id>clean phase script</id>
181 <phase>clean</phase>
182 <goals>
183 <goal>exec</goal>
184 </goals>
185 <configuration>
186 <arguments>
187 <argument>${project.artifactId}</argument>
188 <argument>clean</argument>
189 </arguments>
190 </configuration>
191 </execution>
192 <execution>
193 <id>generate-sources script</id>
194 <phase>generate-sources</phase>
195 <goals>
196 <goal>exec</goal>
197 </goals>
198 <configuration>
199 <arguments>
200 <argument>${project.artifactId}</argument>
201 <argument>generate-sources</argument>
202 </arguments>
203 </configuration>
204 </execution>
205 <execution>
206 <id>compile script</id>
207 <phase>compile</phase>
208 <goals>
209 <goal>exec</goal>
210 </goals>
211 <configuration>
212 <arguments>
213 <argument>${project.artifactId}</argument>
214 <argument>compile</argument>
215 </arguments>
216 </configuration>
217 </execution>
218 <execution>
219 <id>package script</id>
220 <phase>package</phase>
221 <goals>
222 <goal>exec</goal>
223 </goals>
224 <configuration>
225 <arguments>
226 <argument>${project.artifactId}</argument>
227 <argument>package</argument>
228 </arguments>
229 </configuration>
230 </execution>
231 <execution>
232 <id>test script</id>
233 <phase>test</phase>
234 <goals>
235 <goal>exec</goal>
236 </goals>
237 <configuration>
238 <arguments>
239 <argument>${project.artifactId}</argument>
240 <argument>test</argument>
241 </arguments>
242 </configuration>
243 </execution>
244 <execution>
245 <id>install script</id>
246 <phase>install</phase>
247 <goals>
248 <goal>exec</goal>
249 </goals>
250 <configuration>
251 <arguments>
252 <argument>${project.artifactId}</argument>
253 <argument>install</argument>
254 </arguments>
255 </configuration>
256 </execution>
257 <execution>
258 <id>deploy script</id>
259 <phase>deploy</phase>
260 <goals>
261 <goal>exec</goal>
262 </goals>
263 <configuration>
264 <arguments>
265 <argument>${project.artifactId}</argument>
266 <argument>deploy</argument>
267 </arguments>
268 </configuration>
269 </execution>
270 </executions>
271 </plugin>
272 </plugins>
273 </build>
274</project>