blob: ef21159f797ea09a9173bb942f49eaf805c93122 [file] [log] [blame]
Lusheng Ji5bc79f42017-08-29 14:20:46 +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>
Lusheng Ji88648fc2017-09-20 02:18:20 +000024 <groupId>org.onap.dcaegen2.utils</groupId>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000025 <artifactId>utils</artifactId>
vagrant21ec33e2017-11-25 06:17:09 +000026 <version>1.2.0-SNAPSHOT</version>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000027 </parent>
28 <groupId>org.onap.dcaegen2.utils</groupId>
Alex Shatov8b28e652017-09-20 17:27:25 -040029 <artifactId>onap-dcae-dcaepolicy-lib</artifactId>
30 <name>dcaegen2-utils-onap-dcae-dcaepolicy-lib</name>
Alex Shatov90f21052018-01-10 11:39:32 -050031 <version>2.0.0-SNAPSHOT</version>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000032 <url>http://maven.apache.org</url>
33
34 <properties>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <sonar.sources>.</sonar.sources>
37 <!-- customize the SONARQUBE URL -->
38 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
39 <!-- below are language dependent -->
40 <!-- for Python -->
41 <sonar.language>py</sonar.language>
42 <sonar.pluginName>Python</sonar.pluginName>
43 <sonar.inclusions>**/*.py</sonar.inclusions>
44 <!-- for JavaScaript -->
45 <!--
46 <sonar.language>js</sonar.language>
47 <sonar.pluginName>JS</sonar.pluginName>
48 <sonar.inclusions>**/*.js</sonar.inclusions>
49 -->
50 </properties>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000051 <build>
52 <finalName>${project.artifactId}-${project.version}</finalName>
53 <pluginManagement>
54 <plugins>
55 <!-- the following plugins are invoked from oparent, we do not need them -->
Lusheng Ji5bc79f42017-08-29 14:20:46 +000056 <plugin>
57 <groupId>org.sonatype.plugins</groupId>
58 <artifactId>nexus-staging-maven-plugin</artifactId>
59 <version>1.6.7</version>
60 <configuration>
61 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
62 </configuration>
63 </plugin>
64 <plugin>
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-deploy-plugin</artifactId>
67 <!-- This version supports the "deployAtEnd" parameter -->
68 <version>2.8</version>
69 <configuration>
70 <skip>true</skip>
71 </configuration>
72 </plugin>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000073 <!-- first disable the default Java plugins at various stages -->
Alex Shatov8b28e652017-09-20 17:27:25 -040074 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
Lusheng Jidbae9d32017-09-07 12:59:00 +000075 the resources dir. we do not need it -->
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-resources-plugin</artifactId>
79 <version>2.6</version>
80 <configuration>
81 <skip>true</skip>
82 </configuration>
83 </plugin>
84 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
85 <plugin>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-compiler-plugin</artifactId>
88 <version>3.1</version>
89 <configuration>
90 <skip>true</skip>
91 </configuration>
92 </plugin>
93 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-jar-plugin</artifactId>
97 <version>2.4</version>
98 <executions>
99 <execution>
100 <id>default-jar</id>
101 <phase/>
102 </execution>
103 </executions>
104 </plugin>
Alex Shatov8b28e652017-09-20 17:27:25 -0400105 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
Lusheng Jidbae9d32017-09-07 12:59:00 +0000106 target dir to ~/.m2. we do not need it -->
107 <plugin>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-install-plugin</artifactId>
110 <version>2.4</version>
111 <configuration>
112 <skip>true</skip>
113 </configuration>
114 </plugin>
115 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
116 we do not need it -->
117 <plugin>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-surefire-plugin</artifactId>
120 <version>2.12.4</version>
121 <configuration>
122 <skipTests>true</skipTests>
123 </configuration>
124 </plugin>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000125 </plugins>
126 </pluginManagement>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000127 <plugins>
128 <!-- plugin>
129 <artifactId>maven-assembly-plugin</artifactId>
130 <version>2.4.1</version>
131 <configuration>
132 <descriptors>
133 <descriptor>assembly/dep.xml</descriptor>
134 </descriptors>
135 </configuration>
136 <executions>
137 <execution>
138 <id>make-assembly</id>
139 <phase>package</phase>
140 <goals>
141 <goal>single</goal>
142 </goals>
143 </execution>
144 </executions>
145 </plugin -->
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000146 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
147 <plugin>
148 <groupId>org.codehaus.mojo</groupId>
149 <artifactId>exec-maven-plugin</artifactId>
150 <version>1.2.1</version>
151 <executions>
152 <execution>
153 <id>clean phase script</id>
154 <phase>clean</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000155 <goals>
156 <goal>exec</goal>
157 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000158 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000159 <arguments>
160 <argument>${project.artifactId}</argument>
161 <argument>clean</argument>
162 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000163 </configuration>
164 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000165 <execution>
166 <id>generate-sources script</id>
167 <phase>generate-sources</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000168 <goals>
169 <goal>exec</goal>
170 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000171 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000172 <arguments>
173 <argument>${project.artifactId}</argument>
174 <argument>generate-sources</argument>
175 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000176 </configuration>
177 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000178 <execution>
179 <id>compile script</id>
180 <phase>compile</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000181 <goals>
182 <goal>exec</goal>
183 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000184 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000185 <arguments>
186 <argument>${project.artifactId}</argument>
187 <argument>compile</argument>
188 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000189 </configuration>
190 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000191 <execution>
192 <id>package script</id>
193 <phase>package</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000194 <goals>
195 <goal>exec</goal>
196 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000197 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000198 <arguments>
199 <argument>${project.artifactId}</argument>
200 <argument>package</argument>
201 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000202 </configuration>
203 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000204 <execution>
205 <id>test script</id>
206 <phase>test</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000207 <goals>
208 <goal>exec</goal>
209 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000210 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000211 <arguments>
212 <argument>${project.artifactId}</argument>
213 <argument>test</argument>
214 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000215 </configuration>
216 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000217 <execution>
218 <id>install script</id>
219 <phase>install</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000220 <goals>
221 <goal>exec</goal>
222 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000223 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000224 <arguments>
225 <argument>${project.artifactId}</argument>
226 <argument>install</argument>
227 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000228 </configuration>
229 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000230 <execution>
231 <id>deploy script</id>
232 <phase>deploy</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000233 <goals>
234 <goal>exec</goal>
235 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000236 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000237 <arguments>
238 <argument>${project.artifactId}</argument>
239 <argument>deploy</argument>
240 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000241 </configuration>
242 </execution>
243 </executions>
244 </plugin>
245 </plugins>
246 </build>
247</project>