Remove MSB from Container
[aai/esr-server.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3
4     Copyright 2016 ZTE Corporation.
5
6     Licensed under the Apache License, Version 2.0 (the "License");
7     you may not use this file except in compliance with the License.
8     You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12     Unless required by applicable law or agreed to in writing, software
13     distributed under the License is distributed on an "AS IS" BASIS,
14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15     See the License for the specific language governing permissions and
16     limitations under the License.
17
18 -->
19 <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">
20     <modelVersion>4.0.0</modelVersion>
21     <parent>
22         <groupId>org.onap.oparent</groupId>
23         <artifactId>oparent</artifactId>
24         <version>2.0.0</version>
25     </parent>
26
27         <groupId>org.onap.aai.esr-server</groupId>
28     <artifactId>aai-esr-server</artifactId>
29     <packaging>pom</packaging>
30     <version>1.7.0-SNAPSHOT</version>
31     <name>aai-esr-server</name>
32     <modules>
33         <module>esr-mgr</module>
34                 <module>standalone</module>
35     </modules>
36
37         <properties>
38         <dropwizard.version>1.3.0</dropwizard.version>
39         <swagger.version>1.5.3</swagger.version>
40         <jersey.version>2.16</jersey.version>
41         <jaxrs.consumer.version>5.0</jaxrs.consumer.version>
42         <gson.version>2.2.4</gson.version>
43         <junit.version>4.10</junit.version>
44                 <jetty.version>9.4.22.v20191022</jetty.version>         
45         <org.apache.ant.version>1.10.5</org.apache.ant.version>
46
47         <sonar.jacoco.reportPath />
48         <sonar.jacoco.itReportPath />
49         <sonar.jacoco.reportMissing.force.zero />
50
51         <jacoco.line.coverage.limit>0.75</jacoco.line.coverage.limit>
52         <jacoco.version>0.8.5</jacoco.version>
53         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
54         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
55         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
56         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
57
58         <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
59         
60
61     </properties>
62
63     <dependencyManagement>
64         <dependencies>
65             <dependency>
66                 <groupId>io.dropwizard</groupId>
67                 <artifactId>dropwizard-core</artifactId>
68                 <version>${dropwizard.version}</version>
69             </dependency>
70             <dependency>
71                 <groupId>io.dropwizard</groupId>
72                 <artifactId>dropwizard-assets</artifactId>
73                 <version>${dropwizard.version}</version>
74             </dependency>
75             <dependency>
76                 <groupId>io.dropwizard</groupId>
77                 <artifactId>dropwizard-hibernate</artifactId>
78                 <version>${dropwizard.version}</version>
79             </dependency>
80             <dependency>
81                 <groupId>io.swagger</groupId>
82                 <artifactId>swagger-jersey2-jaxrs</artifactId>
83                 <version>${swagger.version}</version>
84             </dependency>
85                         <dependency>
86                                 <groupId>org.hibernate</groupId>
87                                 <artifactId>hibernate-validator</artifactId>
88                                 <version>5.4.2.Final</version>
89                         </dependency>
90
91                         <!-- Jetty -->
92                         <dependency>
93                                 <groupId>org.eclipse.jetty</groupId>
94                                 <artifactId>jetty-server</artifactId>
95                                 <version>${jetty.version}</version>
96                         </dependency>
97                         <dependency>
98                                 <groupId>org.eclipse.jetty</groupId>
99                                 <artifactId>jetty-util</artifactId>
100                                 <version>${jetty.version}</version>
101                         </dependency>
102                         <dependency>
103                                 <groupId>org.eclipse.jetty</groupId>
104                                 <artifactId>jetty-webapp</artifactId>
105                                 <version>${jetty.version}</version>
106                         </dependency>
107                         <dependency>
108                                 <groupId>org.eclipse.jetty</groupId>
109                                 <artifactId>jetty-continuation</artifactId>
110                                 <version>${jetty.version}</version>
111                         </dependency>
112                         <dependency>
113                                 <groupId>org.eclipse.jetty</groupId>
114                                 <artifactId>jetty-servlet</artifactId>
115                                 <version>${jetty.version}</version>
116                         </dependency>
117                         <dependency>
118                                 <groupId>org.eclipse.jetty</groupId>
119                                 <artifactId>jetty-servlet</artifactId>
120                                 <classifier>tests</classifier>
121                                 <version>${jetty.version}</version>
122                         </dependency>
123                         <dependency>
124                                 <groupId>org.eclipse.jetty</groupId>
125                                 <artifactId>jetty-servlets</artifactId>
126                                 <version>${jetty.version}</version>
127                         </dependency>
128                         <dependency>
129                                 <groupId>org.eclipse.jetty</groupId>
130                                 <artifactId>jetty-http</artifactId>
131                                 <version>${jetty.version}</version>
132                         </dependency>
133                         <dependency>
134                                 <groupId>org.eclipse.jetty</groupId>
135                                 <artifactId>jetty-http</artifactId>
136                                 <classifier>tests</classifier>
137                                 <version>${jetty.version}</version>
138                         </dependency>
139                         <dependency>
140                                 <groupId>org.eclipse.jetty</groupId>
141                                 <artifactId>jetty-alpn-openjdk8-server</artifactId>
142                                 <version>${jetty.version}</version>
143                         </dependency>
144                         <dependency>
145                                 <groupId>org.eclipse.jetty.http2</groupId>
146                                 <artifactId>http2-server</artifactId>
147                                 <version>${jetty.version}</version>
148                         </dependency>
149                         <dependency>
150                                 <groupId>org.eclipse.jetty.http2</groupId>
151                                 <artifactId>http2-client</artifactId>
152                                 <version>${jetty.version}</version>
153                         </dependency>
154                         <dependency>
155                                 <groupId>org.eclipse.jetty</groupId>
156                                 <artifactId>jetty-client</artifactId>
157                                 <version>${jetty.version}</version>
158                         </dependency>
159                         <dependency>
160                                 <groupId>org.eclipse.jetty.http2</groupId>
161                                 <artifactId>http2-http-client-transport</artifactId>
162                                 <version>${jetty.version}</version>
163                         </dependency>
164                         <dependency>
165                                 <groupId>org.eclipse.jetty</groupId>
166                                 <artifactId>jetty-alpn-openjdk8-client</artifactId>
167                                 <version>${jetty.version}</version>
168                         </dependency>
169                         <dependency>
170                                 <groupId>org.eclipse.jetty</groupId>
171                                 <artifactId>jetty-alpn-conscrypt-server</artifactId>
172                                 <version>${jetty.version}</version>
173                         </dependency>
174                         <dependency>
175                                 <groupId>org.eclipse.jetty.toolchain.setuid</groupId>
176                                 <artifactId>jetty-setuid-java</artifactId>
177                                 <version>1.0.3</version>
178                                 <exclusions>
179                                         <exclusion>
180                                                 <groupId>org.eclipse.jetty</groupId>
181                                                 <artifactId>jetty-util</artifactId>
182                                         </exclusion>
183                                         <exclusion>
184                                                 <groupId>org.eclipse.jetty</groupId>
185                                                 <artifactId>jetty-server</artifactId>
186                                         </exclusion>
187                                 </exclusions>
188                         </dependency>
189
190             <!-- jersey -->
191             <dependency>
192                 <groupId>org.glassfish.jersey.core</groupId>
193                 <artifactId>jersey-server</artifactId>
194                 <version>${jersey.version}</version>
195             </dependency>
196             <dependency>
197                 <groupId>org.glassfish.jersey.media</groupId>
198                 <artifactId>jersey-media-multipart</artifactId>
199                 <version>${jersey.version}</version>
200             </dependency>
201             <dependency>
202                 <groupId>org.glassfish.jersey.containers</groupId>
203                 <artifactId>jersey-container-servlet-core</artifactId>
204                 <version>${jersey.version}</version>
205             </dependency>
206             <!-- consumer -->
207             <dependency>
208                 <groupId>com.eclipsesource.jaxrs</groupId>
209                 <artifactId>consumer</artifactId>
210                 <version>${jaxrs.consumer.version}</version>
211             </dependency>
212             <!-- gson -->
213             <dependency>
214                 <groupId>com.google.code.gson</groupId>
215                 <artifactId>gson</artifactId>
216                 <version>${gson.version}</version>
217             </dependency> 
218             <!-- UT -->
219             <dependency>  
220                 <groupId>junit</groupId>  
221                 <artifactId>junit</artifactId>  
222                 <version>${junit.version}</version>
223             </dependency> 
224             <dependency>
225                 <groupId>org.apache.ant</groupId>
226                 <artifactId>ant</artifactId>
227                 <version>${org.apache.ant.version}</version>
228             </dependency>
229             <!-- UT end -->
230         </dependencies>
231     </dependencyManagement>
232     <build>
233         <pluginManagement>
234             <plugins>
235                 <plugin>
236                     <groupId>org.eclipse.m2e</groupId>
237                     <artifactId>lifecycle-mapping</artifactId>
238                     <version>1.0.0</version>
239                 </plugin>
240                 <plugin>
241                     <groupId>org.apache.maven.plugins</groupId>
242                     <artifactId>maven-compiler-plugin</artifactId>
243                     <version>3.3</version>
244                     <configuration>
245                         <verbose>true</verbose>
246                         <fork>true</fork>
247                         <compilerVersion>1.7</compilerVersion>
248                         <source>1.7</source>
249                         <target>1.7</target>
250                         <encoding>UTF-8</encoding>
251                         <debug>true</debug>
252                     </configuration>
253                 </plugin>
254                 <plugin>
255                     <groupId>org.apache.maven.plugins</groupId>
256                     <artifactId>maven-jar-plugin</artifactId>
257                     <version>2.6</version>
258                     <configuration>
259                         <archive>
260                             <addMavenDescriptor>false</addMavenDescriptor>
261                         </archive>
262                         <forceCreation>true</forceCreation>
263                     </configuration>
264                 </plugin>
265                 <plugin>
266                     <groupId>org.apache.maven.plugins</groupId>
267                     <artifactId>maven-shade-plugin</artifactId>
268                     <version>2.4</version>
269                 </plugin>
270                 <plugin>
271                     <groupId>org.apache.maven.plugins</groupId>
272                     <artifactId>maven-dependency-plugin</artifactId>
273                     <version>2.10</version>          
274                 </plugin>
275                 <plugin>
276                     <groupId>org.apache.maven.plugins</groupId>
277                     <artifactId>maven-resources-plugin</artifactId>
278                     <version>2.7</version>
279                     <configuration>
280                         <encoding>UTF-8</encoding>
281                         <nonFilteredFileExtensions>
282                             <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
283                             <nonFilteredFileExtension>swf</nonFilteredFileExtension>
284                             <nonFilteredFileExtension>exe</nonFilteredFileExtension>
285                             <nonFilteredFileExtension>png</nonFilteredFileExtension>
286                             <nonFilteredFileExtension>gif</nonFilteredFileExtension>
287                             <nonFilteredFileExtension>jpg</nonFilteredFileExtension>
288                             <nonFilteredFileExtension>jpeg</nonFilteredFileExtension>
289                             <nonFilteredFileExtension>bmp</nonFilteredFileExtension>
290                             <nonFilteredFileExtension>eot</nonFilteredFileExtension>
291                             <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
292                             <nonFilteredFileExtension>svg</nonFilteredFileExtension>
293                             <nonFilteredFileExtension>woff</nonFilteredFileExtension>
294                             <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
295                             <nonFilteredFileExtension>mso</nonFilteredFileExtension>
296                             <nonFilteredFileExtension>wmz</nonFilteredFileExtension>
297                             <nonFilteredFileExtension>emz</nonFilteredFileExtension>
298                             <nonFilteredFileExtension>otf</nonFilteredFileExtension>
299                         </nonFilteredFileExtensions>
300                     </configuration>
301                 </plugin>
302                 <plugin>
303                     <groupId>org.codehaus.mojo</groupId>
304                     <artifactId>build-helper-maven-plugin</artifactId>
305                     <version>1.10</version>
306                 </plugin>
307                 <plugin>
308                     <groupId>com.mycila</groupId>
309                     <artifactId>license-maven-plugin</artifactId>
310                     <version>3.0.rc1</version>
311                 </plugin>
312                 <plugin>
313                     <artifactId>maven-antrun-plugin</artifactId>
314                     <version>1.8</version>
315                 </plugin>
316             </plugins>
317         </pluginManagement>
318
319         <plugins>
320           <!-- once we connect aai-parent or oparent 3.0+ we can take out this
321                whole section -->
322
323           <plugin>
324             <groupId>org.jacoco</groupId>
325             <artifactId>jacoco-maven-plugin</artifactId>
326             <version>${jacoco.version}</version>
327             <configuration>
328               <!-- Note: This exclusion list should match <sonar.exclusions> property
329                    above -->
330               <excludes>
331                 <exclude>**/gen/**</exclude>
332                 <exclude>**/generated-sources/**</exclude>
333                 <exclude>**/yang-gen/**</exclude>
334                 <exclude>**/pax/**</exclude>
335                 <exclude>org/onap/aai/babel/xml/generator/xsd/*</exclude>
336               </excludes>
337             </configuration>
338             <executions>
339               <!-- Prepares the property pointing to the JaCoCo runtime agent which
340                    is passed as VM argument when Maven the Surefire plugin is executed. -->
341               <execution>
342                 <id>pre-unit-test</id>
343                 <goals>
344                   <goal>prepare-agent</goal>
345                 </goals>
346                 <configuration>
347                   <!-- Sets the path to the file which contains the execution data
348                        . -->
349                   <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
350                   <!-- Sets the name of the property containing the settings for JaCoCo
351                        runtime agent. -->
352                   <propertyName>surefireArgLine</propertyName>
353                 </configuration>
354               </execution>
355               <!-- Ensures that the code coverage report for unit tests is created
356                    after unit tests have been run. -->
357               <execution>
358                 <id>post-unit-test</id>
359                 <phase>test</phase>
360                 <goals>
361                   <goal>report</goal>
362                 </goals>
363                 <configuration>
364                   <!-- Sets the path to the file which contains the execution data
365                        . -->
366                   <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
367                   <!-- Sets the output directory for the code coverage report. -->
368                   <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
369                 </configuration>
370               </execution>
371               <execution>
372                 <id>pre-integration-test</id>
373                 <phase>pre-integration-test</phase>
374                 <goals>
375                   <goal>prepare-agent</goal>
376                 </goals>
377                 <configuration>
378                   <!-- Sets the path to the file which contains the execution data
379                        . -->
380                   <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
381                   <!-- Sets the name of the property containing the settings for JaCoCo
382                        runtime agent. -->
383                   <propertyName>failsafeArgLine</propertyName>
384                 </configuration>
385               </execution>
386               <!-- Ensures that the code coverage report for integration tests after
387                    integration tests have been run. -->
388               <execution>
389                 <id>post-integration-test</id>
390                 <phase>post-integration-test</phase>
391                 <goals>
392                   <goal>report</goal>
393                 </goals>
394                 <configuration>
395                   <!-- Sets the path to the file which contains the execution data
396                        . -->
397                   <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
398                   <!-- Sets the output directory for the code coverage report. -->
399                   <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
400                 </configuration>
401               </execution>
402               <execution>
403                 <id>default-check</id>
404                 <goals>
405                   <goal>check</goal>
406                 </goals>
407                 <configuration>
408                   <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
409                   <rules>
410                     <rule implementation="org.jacoco.maven.RuleConfiguration">
411                       <element>BUNDLE</element>
412                       <limits>
413                         <limit implementation="org.jacoco.report.check.Limit">
414                           <counter>LINE</counter>
415                           <value>COVEREDRATIO</value>
416                           <minimum>${jacoco.line.coverage.limit}</minimum>
417                         </limit>
418                       </limits>
419                     </rule>
420                   </rules>
421                 </configuration>
422               </execution>
423             </executions>
424           </plugin>
425           <plugin>
426             <groupId>org.apache.maven.plugins</groupId>
427             <artifactId>maven-surefire-plugin</artifactId>
428             <version>3.0.0-M4</version>
429             <configuration>
430               <!-- Sets the VM argument line used when unit tests are run. -->
431               <argLine>${surefireArgLine}</argLine>
432               <!-- Excludes integration tests when unit tests are run. -->
433               <excludes>
434                 <exclude>**/IT*.java</exclude>
435               </excludes>
436             </configuration>
437           </plugin>
438           <plugin>
439             <groupId>org.apache.maven.plugins</groupId>
440             <artifactId>maven-failsafe-plugin</artifactId>
441             <version>3.0.0-M4</version>
442             <executions>
443               <!-- Ensures that both integration-test and verify goals of the Failsafe
444                    Maven plugin are executed. -->
445               <execution>
446                 <id>integration-tests</id>
447                 <goals>
448                   <goal>integration-test</goal>
449                   <goal>verify</goal>
450                 </goals>
451                 <configuration>
452                   <!-- Sets the VM argument line used when integration tests are run. -->
453                   <argLine>${failsafeArgLine}</argLine>
454                 </configuration>
455               </execution>
456             </executions>
457           </plugin>
458           <plugin>
459             <groupId>org.sonarsource.scanner.maven</groupId>
460             <artifactId>sonar-maven-plugin</artifactId>
461             <version>${sonar.scanner.version}</version>
462           </plugin>
463           <!-- end removable sonar config, note the additional exclusion for babel above
464           -->
465         </plugins>
466
467     </build>   
468 </project>