Merge "make sure maven plugins only run when we want"
[so.git] / adapters / mso-requests-db-adapter / 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   <parent>
5     <groupId>org.onap.so</groupId>
6     <artifactId>adapters</artifactId>
7     <version>1.6.0-SNAPSHOT</version>
8   </parent>
9
10   <groupId>org.onap.so.adapters</groupId>
11   <artifactId>mso-requests-db-adapter</artifactId>
12   <dependencies>
13     <dependency>
14       <groupId>org.springframework.boot</groupId>
15       <artifactId>spring-boot-starter-actuator</artifactId>
16     </dependency>
17     <dependency>
18       <groupId>org.springframework.boot</groupId>
19       <artifactId>spring-boot-starter-web</artifactId>
20     </dependency>
21     <dependency>
22       <groupId>org.springframework.boot</groupId>
23       <artifactId>spring-boot-starter-jdbc</artifactId>
24     </dependency>
25     <dependency>
26       <groupId>org.apache.cxf</groupId>
27       <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
28       <version>${cxf.version}</version>
29     </dependency>
30     <dependency>
31       <groupId>org.apache.cxf</groupId>
32       <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
33       <version>${cxf.version}</version>
34     </dependency>
35     <dependency>
36       <groupId>org.apache.cxf</groupId>
37       <artifactId>cxf-rt-rs-service-description-swagger</artifactId>
38       <version>${cxf.version}</version>
39     </dependency>
40     <dependency>
41       <groupId>org.springframework.boot</groupId>
42       <artifactId>spring-boot-starter-test</artifactId>
43       <scope>test</scope>
44     </dependency>
45     <dependency>
46       <groupId>org.mariadb.jdbc</groupId>
47       <artifactId>mariadb-java-client</artifactId>
48     </dependency>
49     <dependency>
50       <groupId>org.onap.so</groupId>
51       <artifactId>mso-requests-db</artifactId>
52       <version>${project.version}</version>
53     </dependency>
54     <dependency>
55       <groupId>org.onap.so</groupId>
56       <artifactId>mso-requests-db-repositories</artifactId>
57       <version>${project.version}</version>
58     </dependency>
59     <dependency>
60       <groupId>org.springframework.boot</groupId>
61       <artifactId>spring-boot-starter-data-jpa</artifactId>
62       <exclusions>
63         <exclusion>
64           <groupId>org.apache.tomcat</groupId>
65           <artifactId>tomcat-jdbc</artifactId>
66         </exclusion>
67       </exclusions>
68       <optional>true</optional>
69     </dependency>
70     <dependency>
71       <groupId>ch.vorburger.mariaDB4j</groupId>
72       <artifactId>mariaDB4j</artifactId>
73       <version>2.2.3</version>
74       <scope>test</scope>
75     </dependency>
76     <dependency>
77       <groupId>org.springframework.boot</groupId>
78       <artifactId>spring-boot-configuration-processor</artifactId>
79       <optional>true</optional>
80     </dependency>
81     <dependency>
82       <groupId>org.flywaydb</groupId>
83       <artifactId>flyway-core</artifactId>
84       <optional>true</optional>
85     </dependency>
86     <dependency>
87       <groupId>net.javacrumbs.shedlock</groupId>
88       <artifactId>shedlock-spring</artifactId>
89     </dependency>
90     <dependency>
91       <groupId>net.javacrumbs.shedlock</groupId>
92       <artifactId>shedlock-provider-jdbc-template</artifactId>
93     </dependency>
94     <dependency>
95       <groupId>io.micrometer</groupId>
96       <artifactId>micrometer-core</artifactId>
97     </dependency>
98     <dependency>
99       <groupId>io.micrometer</groupId>
100       <artifactId>micrometer-registry-prometheus</artifactId>
101     </dependency>
102     <dependency>
103       <groupId>org.springframework.boot</groupId>
104       <artifactId>spring-boot-starter-data-rest</artifactId>
105     </dependency>
106     <dependency>
107       <groupId>org.onap.so</groupId>
108       <artifactId>cxf-logging</artifactId>
109       <version>${project.version}</version>
110     </dependency>
111   </dependencies>
112
113   <build>
114     <finalName>${project.artifactId}-${project.version}</finalName>
115     <plugins>
116       <plugin>
117         <groupId>org.apache.cxf</groupId>
118         <artifactId>cxf-java2ws-plugin</artifactId>
119         <version>${cxf.version}</version>
120         <dependencies>
121           <dependency>
122             <groupId>org.apache.cxf</groupId>
123             <artifactId>cxf-rt-frontend-jaxws</artifactId>
124             <version>${cxf.version}</version>
125           </dependency>
126           <dependency>
127             <groupId>org.apache.cxf</groupId>
128             <artifactId>cxf-rt-frontend-simple</artifactId>
129             <version>${cxf.version}</version>
130           </dependency>
131         </dependencies>
132         <executions>
133           <execution>
134             <id>process-classes</id>
135             <phase>process-classes</phase>
136             <configuration>
137               <className>org.onap.so.adapters.requestsdb.MsoRequestsDbAdapter</className>
138               <genWsdl>true</genWsdl>
139               <verbose>true</verbose>
140             </configuration>
141             <goals>
142               <goal>java2ws</goal>
143             </goals>
144           </execution>
145         </executions>
146       </plugin>
147       <plugin>
148         <groupId>org.jacoco</groupId>
149         <artifactId>jacoco-maven-plugin</artifactId>
150       </plugin>
151       <plugin>
152         <groupId>org.springframework.boot</groupId>
153         <artifactId>spring-boot-maven-plugin</artifactId>
154         <version>${springboot.version}</version>
155         <configuration>
156           <mainClass>org.onap.so.adapters.requestsdb.application.MSORequestDBApplication</mainClass>
157         </configuration>
158         <executions>
159           <execution>
160             <goals>
161               <goal>repackage</goal>
162             </goals>
163           </execution>
164         </executions>
165       </plugin>
166       <plugin>
167         <groupId>org.apache.maven.plugins</groupId>
168         <artifactId>maven-jar-plugin</artifactId>
169         <executions>
170           <execution>
171             <id>original</id>
172             <phase>package</phase>
173           </execution>
174         </executions>
175       </plugin>
176       <plugin>
177         <groupId>org.apache.maven.plugins</groupId>
178         <artifactId>maven-dependency-plugin</artifactId>
179         <executions>
180           <execution>
181             <id>extract-docker-file</id>
182             <configuration>
183               <skip>false</skip>
184             </configuration>
185           </execution>
186         </executions>
187       </plugin>
188       <plugin>
189         <groupId>io.fabric8</groupId>
190         <artifactId>docker-maven-plugin</artifactId>
191         <executions>
192           <execution>
193             <id>start</id>
194           </execution>
195         </executions>
196       </plugin>
197       <plugin>
198         <groupId>org.apache.maven.plugins</groupId>
199         <artifactId>maven-surefire-plugin</artifactId>
200         <executions>
201           <execution>
202             <id>default-test</id>
203             <goals>
204               <goal>test</goal>
205             </goals>
206             <configuration>
207               <includes>
208                 <include>**/AllTestsTestSuite.java</include>
209               </includes>
210               <parallel>suites</parallel>
211             </configuration>
212           </execution>
213         </executions>
214       </plugin>
215     </plugins>
216     <pluginManagement>
217       <plugins>
218         <!--This plugin's configuration is used to store Eclipse m2e settings 
219                                         only. It has no influence on the Maven build itself. -->
220         <plugin>
221           <groupId>org.eclipse.m2e</groupId>
222           <artifactId>lifecycle-mapping</artifactId>
223           <version>1.0.0</version>
224           <configuration>
225             <lifecycleMappingMetadata>
226               <pluginExecutions>
227                 <pluginExecution>
228                   <pluginExecutionFilter>
229                     <groupId>
230                                                                                         org.apache.cxf
231                                                                                 </groupId>
232                     <artifactId>
233                                                                                         cxf-java2ws-plugin
234                                                                                 </artifactId>
235                     <versionRange>
236                                                                                         [3.2.5,)
237                                                                                 </versionRange>
238                     <goals>
239                       <goal>java2ws</goal>
240                     </goals>
241                   </pluginExecutionFilter>
242                   <action>
243                     <ignore>
244                     </ignore>
245                   </action>
246                 </pluginExecution>
247                   <pluginExecution>
248                   <pluginExecutionFilter>
249                     <groupId>org.apache.maven.plugins</groupId>
250                     <artifactId>maven-dependency-plugin</artifactId>
251                     <versionRange>[1.0.0,)</versionRange>
252                     <goals>
253                       <goal>unpack</goal>
254                     </goals>
255                   </pluginExecutionFilter>
256                   <action>
257                     <execute />
258                   </action>
259                 </pluginExecution>
260               </pluginExecutions>
261             </lifecycleMappingMetadata>
262           </configuration>
263         </plugin>
264       </plugins>
265     </pluginManagement>
266   </build>
267 </project>