make sure maven plugins only run when we want
[so.git] / mso-api-handlers / mso-api-handler-infra / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4
5   <parent>
6     <groupId>org.onap.so</groupId>
7     <artifactId>mso-api-handlers</artifactId>
8     <version>1.6.0-SNAPSHOT</version>
9   </parent>
10
11
12   <artifactId>mso-api-handler-infra</artifactId>
13
14   <name>mso-api-handler-infra</name>
15   <description>ONAP SO API Handler Infra</description>
16   <properties>
17     <camunda.version>7.10.0</camunda.version>
18     <camunda.bpm.assert.version>1.2</camunda.bpm.assert.version>
19     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
21     <swagger.version>2.0.8</swagger.version>
22     <jax-rs-version>1.1.1</jax-rs-version>
23     <json4s-jackson-version>3.6.0</json4s-jackson-version>
24     <json4s-core-version>3.6.0</json4s-core-version>
25     <reflections-version>0.9.9-RC1</reflections-version>
26     <paranamer-version>2.5.2</paranamer-version>
27     <scannotation-version>1.0.3</scannotation-version>
28     <java.version>1.8</java.version>
29   </properties>
30   <dependencyManagement>
31     <dependencies>
32       <dependency>
33         <!-- Import dependency management from Spring Boot -->
34         <groupId>org.springframework.boot</groupId>
35         <artifactId>spring-boot-dependencies</artifactId>
36         <version>${springboot.version}</version>
37         <type>pom</type>
38         <scope>import</scope>
39       </dependency>
40       <dependency>
41         <!-- Import dependency management from camunda -->
42         <groupId>org.camunda.bpm</groupId>
43         <artifactId>camunda-bom</artifactId>
44         <version>${camunda.version}</version>
45         <scope>import</scope>
46         <type>pom</type>
47       </dependency>
48     </dependencies>
49   </dependencyManagement>
50   <dependencies>
51     <dependency>
52       <groupId>org.camunda.bpm</groupId>
53       <artifactId>camunda-engine</artifactId>
54     </dependency>
55     <dependency>
56       <groupId>org.springframework.boot</groupId>
57       <artifactId>spring-boot-starter-web</artifactId>
58     </dependency>
59
60     <dependency>
61       <groupId>io.swagger.core.v3</groupId>
62       <artifactId>swagger-annotations</artifactId>
63       <version>${swagger.version}</version>
64     </dependency>
65     <dependency>
66       <groupId>io.swagger.core.v3</groupId>
67       <artifactId>swagger-jaxrs2</artifactId>
68       <version>2.0.6</version>
69     </dependency>
70     <dependency>
71       <groupId>com.h2database</groupId>
72       <artifactId>h2</artifactId>
73     </dependency>
74     <dependency>
75       <groupId>org.mariadb.jdbc</groupId>
76       <artifactId>mariadb-java-client</artifactId>
77     </dependency>
78     <dependency>
79       <groupId>org.springframework.boot</groupId>
80       <artifactId>spring-boot-starter-actuator</artifactId>
81     </dependency>
82     <dependency>
83       <groupId>org.springframework.boot</groupId>
84       <artifactId>spring-boot-starter-jersey</artifactId>
85     </dependency>
86     <dependency>
87       <groupId>org.springframework.boot</groupId>
88       <artifactId>spring-boot-starter-data-jpa</artifactId>
89       <exclusions>
90         <exclusion>
91           <groupId>org.apache.tomcat</groupId>
92           <artifactId>tomcat-jdbc</artifactId>
93         </exclusion>
94       </exclusions>
95     </dependency>
96     <dependency>
97       <groupId>org.springframework.retry</groupId>
98       <artifactId>spring-retry</artifactId>
99     </dependency>
100     <dependency>
101       <groupId>org.springframework.boot</groupId>
102       <artifactId>spring-boot-starter-webflux</artifactId>
103     </dependency>
104     <dependency>
105       <groupId>commons-lang</groupId>
106       <artifactId>commons-lang</artifactId>
107       <version>2.6</version>
108     </dependency>
109     <dependency>
110       <groupId>javax.activation</groupId>
111       <artifactId>activation</artifactId>
112       <version>1.1.1</version>
113     </dependency>
114     <dependency>
115       <groupId>javax.transaction</groupId>
116       <artifactId>jta</artifactId>
117       <version>1.1</version>
118     </dependency>
119     <dependency>
120       <groupId>org.json4s</groupId>
121       <artifactId>json4s-jackson_2.12</artifactId>
122       <version>${json4s-jackson-version}</version>
123     </dependency>
124     <dependency>
125       <groupId>org.json4s</groupId>
126       <artifactId>json4s-core_2.12</artifactId>
127       <version>${json4s-core-version}</version>
128     </dependency>
129     <dependency>
130       <groupId>javax.servlet</groupId>
131       <artifactId>javax.servlet-api</artifactId>
132     </dependency>
133     <dependency>
134       <groupId>javax.interceptor</groupId>
135       <artifactId>javax.interceptor-api</artifactId>
136     </dependency>
137
138     <!-- Dependencies on other MSO Projects -->
139     <dependency>
140       <groupId>org.onap.so</groupId>
141       <artifactId>mso-requests-db</artifactId>
142       <version>${project.version}</version>
143     </dependency>
144     <dependency>
145       <groupId>org.onap.so</groupId>
146       <artifactId>mso-requests-db-repositories</artifactId>
147       <version>${project.version}</version>
148     </dependency>
149     <dependency>
150       <groupId>org.onap.so</groupId>
151       <artifactId>mso-catalog-db</artifactId>
152       <version>${project.version}</version>
153     </dependency>
154
155     <!-- Test Dependencies -->
156     <dependency>
157       <groupId>pl.pragmatists</groupId>
158       <artifactId>JUnitParams</artifactId>
159       <version>1.0.5</version>
160       <scope>test</scope>
161     </dependency>
162     <dependency>
163       <groupId>junit</groupId>
164       <artifactId>junit</artifactId>
165       <scope>test</scope>
166     </dependency>
167     <dependency>
168       <groupId>org.onap.sdc.sdc-distribution-client</groupId>
169       <artifactId>sdc-distribution-client</artifactId>
170       <version>1.4.1</version>
171       <exclusions>
172         <exclusion>
173           <groupId>org.slf4j</groupId>
174           <artifactId>slf4j-log4j12</artifactId>
175         </exclusion>
176       </exclusions>
177     </dependency>
178     <dependency>
179       <groupId>com.github.java-json-tools</groupId>
180       <artifactId>json-schema-core</artifactId>
181       <version>1.2.8</version>
182     </dependency>
183     <dependency>
184       <groupId>com.github.java-json-tools</groupId>
185       <artifactId>json-schema-validator</artifactId>
186       <version>2.2.8</version>
187     </dependency>
188     <dependency>
189       <groupId>org.springframework.boot</groupId>
190       <artifactId>spring-boot-starter-test</artifactId>
191       <scope>test</scope>
192     </dependency>
193     <dependency>
194       <groupId>com.h2database</groupId>
195       <artifactId>h2</artifactId>
196     </dependency>
197     <dependency>
198       <groupId>org.springframework.boot</groupId>
199       <artifactId>spring-boot-configuration-processor</artifactId>
200       <optional>true</optional>
201     </dependency>
202     <dependency>
203       <groupId>ch.vorburger.mariaDB4j</groupId>
204       <artifactId>mariaDB4j</artifactId>
205       <version>2.2.3</version>
206       <scope>test</scope>
207     </dependency>
208     <dependency>
209       <groupId>com.googlecode.junit-toolbox</groupId>
210       <artifactId>junit-toolbox</artifactId>
211       <version>2.4</version>
212     </dependency>
213     <dependency>
214       <groupId>org.onap.so</groupId>
215       <artifactId>mso-api-handler-common</artifactId>
216       <version>${project.version}</version>
217     </dependency>
218     <dependency>
219       <groupId>org.springframework.cloud</groupId>
220       <artifactId>spring-cloud-contract-wiremock</artifactId>
221       <version>1.2.4.RELEASE</version>
222       <scope>test</scope>
223     </dependency>
224     <dependency>
225       <groupId>io.micrometer</groupId>
226       <artifactId>micrometer-core</artifactId>
227     </dependency>
228     <dependency>
229       <groupId>io.micrometer</groupId>
230       <artifactId>micrometer-registry-prometheus</artifactId>
231     </dependency>
232     <dependency>
233       <groupId>org.onap.aaf.authz</groupId>
234       <artifactId>aaf-cadi-aaf</artifactId>
235       <version>2.1.9</version>
236       <exclusions>
237         <exclusion>
238           <groupId>javax.servlet</groupId>
239           <artifactId>servlet-api</artifactId>
240         </exclusion>
241       </exclusions>
242     </dependency>
243   </dependencies>
244
245   <build>
246     <finalName>${project.artifactId}-${project.version}</finalName>
247        <pluginManagement>
248       <plugins>
249         <plugin>
250           <groupId>org.eclipse.m2e</groupId>
251           <artifactId>lifecycle-mapping</artifactId>
252           <version>1.0.0</version>
253           <configuration>
254             <lifecycleMappingMetadata>
255               <pluginExecutions>
256                 <pluginExecution>
257                   <pluginExecutionFilter>
258                     <groupId>org.apache.maven.plugins</groupId>
259                     <artifactId>maven-dependency-plugin</artifactId>
260                     <versionRange>[1.0.0,)</versionRange>
261                     <goals>
262                       <goal>unpack</goal>
263                     </goals>
264                   </pluginExecutionFilter>
265                   <action>
266                     <execute />
267                   </action>
268                 </pluginExecution>
269               </pluginExecutions>
270             </lifecycleMappingMetadata>
271           </configuration>
272         </plugin>
273       </plugins>
274     </pluginManagement>
275     <plugins>
276       <plugin>
277         <groupId>org.apache.maven.plugins</groupId>
278         <artifactId>maven-surefire-plugin</artifactId>
279         <executions>
280           <execution>
281             <id>default-test</id>
282             <goals>
283               <goal>test</goal>
284             </goals>
285             <configuration>
286               <includes>
287                 <include>**/AllTestsTestSuite.java</include>
288               </includes>
289               <parallel>suites</parallel>
290             </configuration>
291           </execution>
292         </executions>
293       </plugin>
294       <plugin>
295         <groupId>org.springframework.boot</groupId>
296         <artifactId>spring-boot-maven-plugin</artifactId>
297         <configuration>
298           <mainClass>org.onap.so.apihandlerinfra.ApiHandlerApplication</mainClass>
299         </configuration>
300         <executions>
301           <execution>
302             <goals>
303               <goal>repackage</goal>
304             </goals>
305           </execution>
306         </executions>
307       </plugin>
308       <plugin>
309         <groupId>org.apache.maven.plugins</groupId>
310         <artifactId>maven-dependency-plugin</artifactId>
311         <executions>
312           <execution>
313             <id>extract-docker-file</id>
314             <configuration>
315               <skip>false</skip>
316             </configuration>
317           </execution>
318         </executions>
319       </plugin>
320       <plugin>
321         <groupId>org.apache.maven.plugins</groupId>
322         <artifactId>maven-jar-plugin</artifactId>
323         <executions>
324           <execution>
325             <id>original</id>
326             <phase>package</phase>
327           </execution>
328         </executions>
329       </plugin>
330       <plugin>
331         <groupId>io.fabric8</groupId>
332         <artifactId>docker-maven-plugin</artifactId>
333         <executions>
334           <execution>
335             <id>start</id>
336           </execution>
337         </executions>
338       </plugin>
339     </plugins>
340   </build>
341   <packaging>jar</packaging>
342 </project>