blob: 87f321926269576facb575dbb46cd17254d52020 [file] [log] [blame]
Lusheng Ji5bc79f42017-08-29 14:20:46 +00001<?xml version="1.0"?>
2<!--
3================================================================================
Vijay Venkatesh Kumar09f97852020-02-07 04:20:32 +00004Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
Lusheng Ji5bc79f42017-08-29 14:20:46 +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 Ji5bc79f42017-08-29 14:20:46 +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 Ji88648fc2017-09-20 02:18:20 +000023 <groupId>org.onap.dcaegen2.utils</groupId>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000024 <artifactId>utils</artifactId>
vagrantc1e664e2018-07-31 19:05:35 +000025 <version>1.2.1-SNAPSHOT</version>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000026 </parent>
27 <groupId>org.onap.dcaegen2.utils</groupId>
Alex Shatov8b28e652017-09-20 17:27:25 -040028 <artifactId>onap-dcae-dcaepolicy-lib</artifactId>
29 <name>dcaegen2-utils-onap-dcae-dcaepolicy-lib</name>
Schmalzried, Terry (ts862m)0095ee32019-11-25 18:09:53 -050030 <version>2.5.0-SNAPSHOT</version>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000031 <url>http://maven.apache.org</url>
32
33 <properties>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35 <sonar.sources>.</sonar.sources>
36 <!-- customize the SONARQUBE URL -->
37 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
38 <!-- below are language dependent -->
39 <!-- for Python -->
Andrew Gauld44f0f8f2018-02-21 12:43:06 -050040 <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
Vijay Venkatesh Kumar09f97852020-02-07 04:20:32 +000041 <sonar.python.coverage.reportPaths>coverage.xml</sonar.python.coverage.reportPaths>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000042 <sonar.language>py</sonar.language>
43 <sonar.pluginName>Python</sonar.pluginName>
44 <sonar.inclusions>**/*.py</sonar.inclusions>
Andrew Gauld373f0f32018-02-21 11:14:46 -050045 <sonar.exclusions>tests/*,setup.py</sonar.exclusions>
Lusheng Ji5bc79f42017-08-29 14:20:46 +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 Ji5bc79f42017-08-29 14:20:46 +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 Ji5bc79f42017-08-29 14:20:46 +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 Ji5bc79f42017-08-29 14:20:46 +000075 <!-- first disable the default Java plugins at various stages -->
Alex Shatov8b28e652017-09-20 17:27:25 -040076 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
Lusheng Jidbae9d32017-09-07 12:59:00 +000077 the resources dir. we do not need it -->
78 <plugin>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-resources-plugin</artifactId>
81 <version>2.6</version>
82 <configuration>
83 <skip>true</skip>
84 </configuration>
85 </plugin>
86 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
87 <plugin>
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-compiler-plugin</artifactId>
90 <version>3.1</version>
91 <configuration>
92 <skip>true</skip>
93 </configuration>
94 </plugin>
95 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
96 <plugin>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-jar-plugin</artifactId>
99 <version>2.4</version>
100 <executions>
101 <execution>
102 <id>default-jar</id>
103 <phase/>
104 </execution>
105 </executions>
106 </plugin>
Alex Shatov8b28e652017-09-20 17:27:25 -0400107 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
Lusheng Jidbae9d32017-09-07 12:59:00 +0000108 target dir to ~/.m2. we do not need it -->
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-install-plugin</artifactId>
112 <version>2.4</version>
113 <configuration>
114 <skip>true</skip>
115 </configuration>
116 </plugin>
117 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
118 we do not need it -->
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-surefire-plugin</artifactId>
122 <version>2.12.4</version>
123 <configuration>
124 <skipTests>true</skipTests>
125 </configuration>
126 </plugin>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000127 </plugins>
128 </pluginManagement>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000129 <plugins>
130 <!-- plugin>
131 <artifactId>maven-assembly-plugin</artifactId>
132 <version>2.4.1</version>
133 <configuration>
134 <descriptors>
135 <descriptor>assembly/dep.xml</descriptor>
136 </descriptors>
137 </configuration>
138 <executions>
139 <execution>
140 <id>make-assembly</id>
141 <phase>package</phase>
142 <goals>
143 <goal>single</goal>
144 </goals>
145 </execution>
146 </executions>
147 </plugin -->
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000148 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
149 <plugin>
150 <groupId>org.codehaus.mojo</groupId>
151 <artifactId>exec-maven-plugin</artifactId>
152 <version>1.2.1</version>
153 <executions>
154 <execution>
155 <id>clean phase script</id>
156 <phase>clean</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000157 <goals>
158 <goal>exec</goal>
159 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000160 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000161 <arguments>
162 <argument>${project.artifactId}</argument>
163 <argument>clean</argument>
164 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000165 </configuration>
166 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000167 <execution>
168 <id>generate-sources script</id>
169 <phase>generate-sources</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000170 <goals>
171 <goal>exec</goal>
172 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000173 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000174 <arguments>
175 <argument>${project.artifactId}</argument>
176 <argument>generate-sources</argument>
177 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000178 </configuration>
179 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000180 <execution>
181 <id>compile script</id>
182 <phase>compile</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000183 <goals>
184 <goal>exec</goal>
185 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000186 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000187 <arguments>
188 <argument>${project.artifactId}</argument>
189 <argument>compile</argument>
190 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000191 </configuration>
192 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000193 <execution>
194 <id>package script</id>
195 <phase>package</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000196 <goals>
197 <goal>exec</goal>
198 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000199 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000200 <arguments>
201 <argument>${project.artifactId}</argument>
202 <argument>package</argument>
203 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000204 </configuration>
205 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000206 <execution>
207 <id>test script</id>
208 <phase>test</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000209 <goals>
210 <goal>exec</goal>
211 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000212 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000213 <arguments>
214 <argument>${project.artifactId}</argument>
215 <argument>test</argument>
216 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000217 </configuration>
218 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000219 <execution>
220 <id>install script</id>
221 <phase>install</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000222 <goals>
223 <goal>exec</goal>
224 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000225 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000226 <arguments>
227 <argument>${project.artifactId}</argument>
228 <argument>install</argument>
229 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000230 </configuration>
231 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000232 <execution>
233 <id>deploy script</id>
234 <phase>deploy</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000235 <goals>
236 <goal>exec</goal>
237 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000238 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000239 <arguments>
240 <argument>${project.artifactId}</argument>
241 <argument>deploy</argument>
242 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000243 </configuration>
244 </execution>
245 </executions>
246 </plugin>
247 </plugins>
248 </build>
249</project>