blob: 956e17d430a1191cad4c69f580aad531992c4246 [file] [log] [blame]
Lusheng Jif487f062017-08-29 14:18:43 +00001<?xml version="1.0"?>
2<!--
3================================================================================
Alex Shatovebc1a062019-01-31 16:07:48 -05004Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
Lusheng Jif487f062017-08-29 14:18:43 +00005================================================================================
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
Lusheng Jif487f062017-08-29 14:18:43 +000019-->
20<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">
21 <modelVersion>4.0.0</modelVersion>
22 <parent>
Lusheng Ji7e99e112018-02-19 23:57:20 -050023 <groupId>org.onap</groupId>
24 <artifactId>dcaegen2</artifactId>
25 <version>1.2.0-SNAPSHOT</version>
Lusheng Jif487f062017-08-29 14:18:43 +000026 </parent>
27
28 <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo -->
29 <groupId>org.onap.dcaegen2.platform</groupId>
30 <artifactId>policy-handler</artifactId>
Jessica Wagantall0e841b92017-09-08 13:49:51 -070031 <name>dcaegen2-platform-policy-handler</name>
Alex Shatov78ff88f2020-02-27 12:45:54 -050032 <version>5.1.0-SNAPSHOT</version>
Lusheng Jif487f062017-08-29 14:18:43 +000033 <url>http://maven.apache.org</url>
34 <properties>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Lusheng Ji7e99e112018-02-19 23:57:20 -050036 <sonar.skip>false</sonar.skip>
Lusheng Jif487f062017-08-29 14:18:43 +000037 <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>
Lusheng Ji8aa19182018-02-21 10:15:11 -050045 <sonar.exclusions>target/**,tests/**,setup.py,**/__init__.py</sonar.exclusions>
Lusheng Jif487f062017-08-29 14:18:43 +000046 <!-- for JavaScaript -->
47 <!--
48 <sonar.language>js</sonar.language>
49 <sonar.pluginName>JS</sonar.pluginName>
50 <sonar.inclusions>**/*.js</sonar.inclusions>
51 -->
52 </properties>
Lusheng Jif487f062017-08-29 14:18:43 +000053 <build>
54 <finalName>${project.artifactId}-${project.version}</finalName>
55 <pluginManagement>
56 <plugins>
57 <!-- the following plugins are invoked from oparent, we do not need them -->
Lusheng Jif487f062017-08-29 14:18:43 +000058 <plugin>
59 <groupId>org.sonatype.plugins</groupId>
60 <artifactId>nexus-staging-maven-plugin</artifactId>
61 <version>1.6.7</version>
62 <configuration>
63 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
64 </configuration>
65 </plugin>
66 <plugin>
67 <groupId>org.apache.maven.plugins</groupId>
68 <artifactId>maven-deploy-plugin</artifactId>
69 <!-- This version supports the "deployAtEnd" parameter -->
70 <version>2.8</version>
71 <configuration>
72 <skip>true</skip>
73 </configuration>
74 </plugin>
Lusheng Jife9c74b2017-09-12 02:16:34 +000075 <plugin>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-enforcer-plugin</artifactId>
78 <version>3.0.0-M1</version>
79 <configuration>
80 <skip>true</skip>
81 </configuration>
82 </plugin>
Lusheng Jif487f062017-08-29 14:18:43 +000083 <!-- first disable the default Java plugins at various stages -->
Lusheng Jife9c74b2017-09-12 02:16:34 +000084 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources
Lusheng Jif487f062017-08-29 14:18:43 +000085 dir. we do not need it -->
Lusheng Jife9c74b2017-09-12 02:16:34 +000086 <plugin>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-resources-plugin</artifactId>
89 <version>2.6</version>
90 <configuration>
91 <skip>true</skip>
92 </configuration>
93 </plugin>
94 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-compiler-plugin</artifactId>
98 <version>3.1</version>
99 <configuration>
100 <skip>true</skip>
101 </configuration>
102 </plugin>
103 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-jar-plugin</artifactId>
107 <version>2.4</version>
108 <executions>
109 <execution>
110 <id>default-jar</id>
111 <phase/>
112 </execution>
113 </executions>
114 </plugin>
Alex Shatov1369bea2018-01-10 11:00:50 -0500115 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
Lusheng Jif487f062017-08-29 14:18:43 +0000116 target dir to ~/.m2. we do not need it -->
Lusheng Jife9c74b2017-09-12 02:16:34 +0000117 <plugin>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-install-plugin</artifactId>
120 <version>2.4</version>
121 <configuration>
122 <skip>true</skip>
123 </configuration>
124 </plugin>
125 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
Lusheng Jif487f062017-08-29 14:18:43 +0000126 we do not need it -->
Lusheng Jife9c74b2017-09-12 02:16:34 +0000127 <plugin>
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-surefire-plugin</artifactId>
130 <version>2.12.4</version>
131 <configuration>
132 <skipTests>true</skipTests>
133 </configuration>
134 </plugin>
135 <plugin>
136 <groupId>org.codehaus.mojo</groupId>
137 <artifactId>exec-maven-plugin</artifactId>
138 <version>1.2.1</version>
139 <configuration>
140 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
141 <environmentVariables>
142 <!-- make mvn properties as env for our script -->
143 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
144 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
145 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
146 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
147 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
148 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
149 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
150 <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
151 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
152 </environmentVariables>
153 </configuration>
154 </plugin>
Lusheng Jif487f062017-08-29 14:18:43 +0000155 </plugins>
156 </pluginManagement>
Lusheng Jif487f062017-08-29 14:18:43 +0000157 <plugins>
158 <!-- plugin>
159 <artifactId>maven-assembly-plugin</artifactId>
160 <version>2.4.1</version>
161 <configuration>
162 <descriptors>
163 <descriptor>assembly/dep.xml</descriptor>
164 </descriptors>
165 </configuration>
166 <executions>
167 <execution>
168 <id>make-assembly</id>
169 <phase>package</phase>
170 <goals>
171 <goal>single</goal>
172 </goals>
173 </execution>
174 </executions>
175 </plugin -->
Lusheng Jif487f062017-08-29 14:18:43 +0000176 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
177 <plugin>
178 <groupId>org.codehaus.mojo</groupId>
179 <artifactId>exec-maven-plugin</artifactId>
180 <version>1.2.1</version>
181 <executions>
182 <execution>
183 <id>clean phase script</id>
184 <phase>clean</phase>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000185 <goals>
186 <goal>exec</goal>
187 </goals>
Lusheng Jif487f062017-08-29 14:18:43 +0000188 <configuration>
Lusheng Jif487f062017-08-29 14:18:43 +0000189 <arguments>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000190 <argument>__</argument>
Lusheng Jif487f062017-08-29 14:18:43 +0000191 <argument>clean</argument>
192 </arguments>
Lusheng Jif487f062017-08-29 14:18:43 +0000193 </configuration>
194 </execution>
Lusheng Jif487f062017-08-29 14:18:43 +0000195 <execution>
196 <id>generate-sources script</id>
197 <phase>generate-sources</phase>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000198 <goals>
199 <goal>exec</goal>
200 </goals>
Lusheng Jif487f062017-08-29 14:18:43 +0000201 <configuration>
Lusheng Jif487f062017-08-29 14:18:43 +0000202 <arguments>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000203 <argument>__</argument>
Lusheng Jif487f062017-08-29 14:18:43 +0000204 <argument>generate-sources</argument>
205 </arguments>
Lusheng Jif487f062017-08-29 14:18:43 +0000206 </configuration>
207 </execution>
Lusheng Jif487f062017-08-29 14:18:43 +0000208 <execution>
209 <id>compile script</id>
210 <phase>compile</phase>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000211 <goals>
212 <goal>exec</goal>
213 </goals>
Lusheng Jif487f062017-08-29 14:18:43 +0000214 <configuration>
Lusheng Jif487f062017-08-29 14:18:43 +0000215 <arguments>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000216 <argument>__</argument>
Lusheng Jif487f062017-08-29 14:18:43 +0000217 <argument>compile</argument>
218 </arguments>
Lusheng Jif487f062017-08-29 14:18:43 +0000219 </configuration>
220 </execution>
Lusheng Jif487f062017-08-29 14:18:43 +0000221 <execution>
222 <id>package script</id>
223 <phase>package</phase>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000224 <goals>
225 <goal>exec</goal>
226 </goals>
Lusheng Jif487f062017-08-29 14:18:43 +0000227 <configuration>
Lusheng Jif487f062017-08-29 14:18:43 +0000228 <arguments>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000229 <argument>__</argument>
Lusheng Jif487f062017-08-29 14:18:43 +0000230 <argument>package</argument>
231 </arguments>
Lusheng Jif487f062017-08-29 14:18:43 +0000232 </configuration>
233 </execution>
Lusheng Jif487f062017-08-29 14:18:43 +0000234 <execution>
235 <id>test script</id>
236 <phase>test</phase>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000237 <goals>
238 <goal>exec</goal>
239 </goals>
Lusheng Jif487f062017-08-29 14:18:43 +0000240 <configuration>
Lusheng Jif487f062017-08-29 14:18:43 +0000241 <arguments>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000242 <argument>__</argument>
Lusheng Jif487f062017-08-29 14:18:43 +0000243 <argument>test</argument>
244 </arguments>
Lusheng Jif487f062017-08-29 14:18:43 +0000245 </configuration>
246 </execution>
Lusheng Jif487f062017-08-29 14:18:43 +0000247 <execution>
248 <id>install script</id>
249 <phase>install</phase>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000250 <goals>
251 <goal>exec</goal>
252 </goals>
Lusheng Jif487f062017-08-29 14:18:43 +0000253 <configuration>
Lusheng Jif487f062017-08-29 14:18:43 +0000254 <arguments>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000255 <argument>__</argument>
Lusheng Jif487f062017-08-29 14:18:43 +0000256 <argument>install</argument>
257 </arguments>
Lusheng Jif487f062017-08-29 14:18:43 +0000258 </configuration>
259 </execution>
Lusheng Jif487f062017-08-29 14:18:43 +0000260 <execution>
261 <id>deploy script</id>
262 <phase>deploy</phase>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000263 <goals>
264 <goal>exec</goal>
265 </goals>
Lusheng Jif487f062017-08-29 14:18:43 +0000266 <configuration>
Lusheng Jif487f062017-08-29 14:18:43 +0000267 <arguments>
Lusheng Jife9c74b2017-09-12 02:16:34 +0000268 <argument>__</argument>
Lusheng Jif487f062017-08-29 14:18:43 +0000269 <argument>deploy</argument>
270 </arguments>
Lusheng Jif487f062017-08-29 14:18:43 +0000271 </configuration>
272 </execution>
273 </executions>
274 </plugin>
275 </plugins>
276 </build>
277</project>