SO License issue fix take 3
[so.git] / 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.oparent</groupId>
6     <artifactId>oparent</artifactId>
7     <version>1.1.0</version>
8     <relativePath />
9   </parent>
10   <groupId>org.onap.so</groupId>
11   <artifactId>so</artifactId>
12   <packaging>pom</packaging>
13   <!-- <version>1.2.0-SNAPSHOT</version> -->
14   <version>1.2.0-SNAPSHOT</version>
15   <name>so</name>
16   <description>This Maven project is responsible to build and package all child projects - contributions in the MSO project.
17         This build can be configured to run Functional tests and to start/stop a jboss server + Mysql DB.
18         "mvn clean install -P with-integration-tests -Dintegration-tests-user=root -Dintegration-tests-group=root -Dintegration-tests-db-type=MYSQL"
19         </description>
20   <organization>
21     <name>OPENECOMP - MSO</name>
22     <url>http://www.onap.org/</url>
23   </organization>
24   <modules>
25     <module>common</module>
26     <module>cloudify-client</module>
27     <module>mso-api-handlers</module>
28     <module>mso-catalog-db</module>
29     <module>adapters</module>
30     <module>asdc-controller</module>
31     <module>status-control</module>
32     <module>bpmn</module>
33     <module>packages</module>
34     <module>aria</module>
35   </modules>
36   <properties>
37     <project.mso.base.folder>.</project.mso.base.folder>
38     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40     <sonar.language>java</sonar.language>
41     <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
42     <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
43     <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
44     <sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath>
45     <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
46     <sonar.projectVersion>${project.version}</sonar.projectVersion>
47     <org.apache.maven.user-settings></org.apache.maven.user-settings>
48     <!-- this is used for Chef mso-code cookbook -->
49     <swm.version>2.19.3-1</swm.version>
50     <!-- <openstack.version>1.2.0-SNAPSHOT</openstack.version> -->
51         <openstack.version>1.2.0</openstack.version>
52     <nexusproxy>https://nexus.onap.org</nexusproxy>
53     <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
54     <resteasy.version>3.0.19.Final</resteasy.version>
55   </properties>
56   <distributionManagement>
57     <repository>
58       <id>ecomp-releases</id>
59       <name>Clamp Release Repository</name>
60       <url>https://nexus.onap.org/content/repositories/releases/</url>
61     </repository>
62     <snapshotRepository>
63       <id>ecomp-snapshots</id>
64       <name>Clamp Snapshot Repository</name>
65       <url>https://nexus.onap.org/content/repositories/snapshots/</url>
66     </snapshotRepository>
67     <site>
68       <id>ecomp-site</id>
69       <url>dav:https://nexus.onap.org/content/sites/site/org/onap/so/${project.version}</url>
70     </site>
71   </distributionManagement>
72   <reporting>
73     <plugins>
74       <plugin>
75         <groupId>org.apache.maven.plugins</groupId>
76         <artifactId>maven-javadoc-plugin</artifactId>
77         <version>2.10.4</version>
78         <configuration>
79           <failOnError>false</failOnError>
80           <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
81           <docletArtifact>
82             <groupId>org.umlgraph</groupId>
83             <artifactId>umlgraph</artifactId>
84             <version>5.6</version>
85           </docletArtifact>
86           <additionalparam>-views</additionalparam>
87           <useStandardDocletOptions>true</useStandardDocletOptions>
88         </configuration>
89       </plugin>
90     </plugins>
91   </reporting>
92   <!-- configure build -->
93   <!-- *********************************************************************************************************** -->
94   <!-- Plugins and repositories -->
95   <pluginRepositories>
96     <pluginRepository>
97       <id>central</id>
98       <url>http://repo1.maven.org/maven2</url>
99     </pluginRepository>
100
101     <pluginRepository>
102       <id>Restlet</id>
103       <name>Restlet Repository</name>
104       <url>http://maven.restlet.com</url>
105     </pluginRepository>
106   </pluginRepositories>
107   <repositories>
108     <repository>
109       <id>Onap public</id>
110       <url>https://nexus.onap.org/content/groups/public/</url>
111       <name>Onap public</name>
112     </repository>
113     <repository>
114       <id>JBOSS</id>
115       <name>JBoss Repository</name>
116       <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
117     </repository>
118     <repository>
119       <id>opendaylight-mirror</id>
120       <name>opendaylight-mirror</name>
121       <url>https://nexus.opendaylight.org/content/repositories/public/</url>
122       <releases>
123       <enabled>true</enabled>
124       <updatePolicy>never</updatePolicy>
125       </releases>
126       <snapshots>
127         <enabled>false</enabled>
128       </snapshots>
129     </repository>
130     <repository>
131       <id>jboss-deprecated-repository</id>
132       <name>JBoss Deprecated Maven Repository</name>
133       <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
134     </repository>
135     <repository>
136       <id>ecomp-releases</id>
137       <name>ONAP Release Repository</name>
138       <url>https://nexus.onap.org/content/repositories/releases/</url>
139     </repository>
140     <repository>
141       <id>ecomp-staging</id>
142       <name>ONAP Staging Repository</name>
143       <url>https://nexus.onap.org/content/repositories/staging/</url>
144     </repository>
145     <repository>
146       <id>ecomp-snapshots</id>
147       <name>ONAP Snapshot Repository</name>
148       <url>https://nexus.onap.org/content/repositories/snapshots/</url>
149       <snapshots>
150         <enabled>true</enabled>
151       </snapshots>
152       <releases>
153         <enabled>false</enabled>
154       </releases>
155     </repository>
156     <!-- Camunda Web Repository -->
157     <repository>
158       <id>CamundaWebRepo</id>
159       <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
160       <name>Camunda Web Repository</name>
161     </repository>
162     <repository>
163       <id>CamundaPublicRepo</id>
164       <url>https://app.camunda.com/nexus/content/groups/public</url>
165       <name>Camunda Public repository</name>
166     </repository>
167
168     <repository>
169       <id>soapUI</id>
170       <url>http://www.soapui.org/repository/maven2/</url>
171       <name>SoapUI plugin</name>
172     </repository>
173   </repositories>
174   <!-- *********************************************************************************************************** -->
175   <!-- Build -->
176   <build>
177     <resources>
178       <resource>
179         <directory>src/main/resources</directory>
180         <filtering>true</filtering>
181       </resource>
182       <resource>
183         <directory>target/generated-sources/license</directory>
184         <includes>
185           <include>third-party-licenses.txt</include>
186         </includes>
187       </resource>
188       <resource>
189         <directory>target/generated-resources/licenses</directory>
190         <includes>
191           <include>*.*</include>
192         </includes>
193         <targetPath>third-party-licenses</targetPath>
194       </resource>
195     </resources>
196     <plugins>
197       <plugin>
198         <groupId>org.sonatype.plugins</groupId>
199         <artifactId>nexus-staging-maven-plugin</artifactId>
200         <version>1.6.7</version>
201         <extensions>true</extensions>
202         <configuration>
203           <nexusUrl>${nexusproxy}</nexusUrl>
204           <stagingProfileId>176c31dfe190a</stagingProfileId>
205           <serverId>ecomp-staging</serverId>
206         </configuration>
207       </plugin>
208       <plugin>
209         <groupId>org.apache.maven.plugins</groupId>
210         <artifactId>maven-deploy-plugin</artifactId>
211         <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
212         <configuration>
213           <skip />
214         </configuration>
215       </plugin>
216       <plugin>
217         <groupId>org.apache.maven.plugins</groupId>
218         <artifactId>maven-surefire-plugin</artifactId>
219         <version>2.19.1</version>
220         <configuration>
221           <argLine>${surefireArgLine}</argLine>
222           <!-- <forkCount>2C</forkCount> <reuseForks>true</reuseForks> -->
223           <excludes>
224             <exclude>**/IT*.java</exclude>
225           </excludes>
226         </configuration>
227       </plugin>
228       <plugin>
229         <groupId>org.apache.maven.plugins</groupId>
230         <artifactId>maven-compiler-plugin</artifactId>
231         <version>3.6.1</version>
232         <configuration>
233           <debug>true</debug>
234           <compilerArgument>-Xlint</compilerArgument>
235           <verbose>true</verbose>
236           <showDeprecation>true</showDeprecation>
237           <showWarnings>true</showWarnings>
238           <source>1.8</source>
239           <target>1.8</target>
240         </configuration>
241       </plugin>
242       <!-- <plugin> -->
243       <!-- <groupId>org.codehaus.mojo</groupId> -->
244       <!-- <artifactId>sonar-maven-plugin</artifactId> -->
245       <!-- <version>2.1</version> -->
246       <!-- </plugin> -->
247       <plugin>
248         <groupId>org.apache.maven.plugins</groupId>
249         <artifactId>maven-ejb-plugin</artifactId>
250         <version>2.2.1</version>
251         <configuration>
252           <ejbVersion>3.0</ejbVersion>
253           <archive>
254             <manifest>
255               <addClasspath>true</addClasspath>
256             </manifest>
257           </archive>
258         </configuration>
259       </plugin>
260       <plugin>
261         <groupId>org.apache.maven.plugins</groupId>
262         <artifactId>maven-checkstyle-plugin</artifactId>
263         <version>2.17</version>
264         <configuration>
265           <includes>**/org/openecomp/**/*.java</includes>
266           <configLocation>/google_checks.xml</configLocation>
267         </configuration>
268       </plugin>
269       <plugin>
270         <groupId>org.codehaus.mojo</groupId>
271         <artifactId>findbugs-maven-plugin</artifactId>
272         <version>2.5.2</version>
273         <configuration>
274           <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
275           <nested>true</nested>
276           <findbugsXmlOutput>true</findbugsXmlOutput>
277           <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
278           <xmlOutput>true</xmlOutput>
279         </configuration>
280       </plugin>
281       <plugin>
282         <groupId>org.codehaus.mojo</groupId>
283         <artifactId>sonar-maven-plugin</artifactId>
284         <version>3.2</version>
285       </plugin>
286       <plugin>
287         <artifactId>maven-scm-plugin</artifactId>
288         <version>1.8.1</version>
289         <configuration>
290           <tag>${project.artifactId}-${project.version}</tag>
291         </configuration>
292       </plugin>
293       <plugin>
294         <groupId>org.apache.maven.plugins</groupId>
295         <artifactId>maven-javadoc-plugin</artifactId>
296         <version>2.9</version>
297       </plugin>
298       <plugin>
299         <groupId>org.apache.maven.plugins</groupId>
300         <artifactId>maven-site-plugin</artifactId>
301         <version>3.6</version>
302         <dependencies>
303           <dependency>
304             <groupId>org.apache.maven.wagon</groupId>
305             <artifactId>wagon-webdav-jackrabbit</artifactId>
306             <version>2.10</version>
307           </dependency>
308         </dependencies>
309       </plugin>
310       <plugin>
311         <groupId>org.codehaus.mojo</groupId>
312         <artifactId>cobertura-maven-plugin</artifactId>
313         <version>2.5.2</version>
314         <configuration>
315           <formats>
316             <format>xml</format>
317           </formats>
318         </configuration>
319       </plugin>
320       <plugin>
321         <groupId>org.codehaus.mojo</groupId>
322         <artifactId>versions-maven-plugin</artifactId>
323         <version>1.3.1</version>
324       </plugin>
325       <plugin>
326         <groupId>org.codehaus.mojo</groupId>
327         <artifactId>jboss-packaging-maven-plugin</artifactId>
328         <version>2.2</version>
329         <!-- <configuration> <archive> <manifest> <addClasspath>true</addClasspath> 
330           </manifest> </archive> </configuration> Enable 'jboss-sar', etc., as a recoginized 
331           maven packaging type -->
332         <extensions>true</extensions>
333       </plugin>
334       <plugin>
335         <groupId>org.jacoco</groupId>
336         <artifactId>jacoco-maven-plugin</artifactId>
337         <version>0.7.7.201606060606</version>
338         <configuration>
339           <dumpOnExit>true</dumpOnExit>
340           <includes>
341             <include>org.openecomp.*</include>
342           </includes>
343         </configuration>
344         <executions>
345           <execution>
346             <id>pre-unit-test</id>
347             <goals>
348               <goal>prepare-agent</goal>
349             </goals>
350             <configuration>
351               <destFile>${sonar.jacoco.reportPath}</destFile>
352               <propertyName>surefireArgLine</propertyName>
353             </configuration>
354           </execution>
355         </executions>
356       </plugin>
357       <plugin>
358         <groupId>com.fortify.ps.maven.plugin</groupId>
359         <artifactId>sca-maven-plugin</artifactId>
360         <version>4.20</version>
361         <configuration>
362           <buildId>mso-${project.version}</buildId>
363           <source>1.8</source>
364         </configuration>
365       </plugin>
366     </plugins>
367   </build>
368   <!-- *********************************************************************************************************** -->
369   <!-- Dependencies -->
370   <dependencies>
371     <dependency>
372       <groupId>com.fasterxml.jackson.core</groupId>
373       <artifactId>jackson-core</artifactId>
374       <version>2.8.7</version>
375     </dependency>
376     <dependency>
377       <groupId>com.fasterxml.jackson.module</groupId>
378       <artifactId>jackson-module-jaxb-annotations</artifactId>
379       <version>2.4.0</version>
380     </dependency>
381     <dependency>
382       <groupId>com.fasterxml.jackson.core</groupId>
383       <artifactId>jackson-databind</artifactId>
384       <version>2.8.7</version>
385     </dependency>
386     <dependency>
387       <groupId>com.fasterxml.jackson.core</groupId>
388       <artifactId>jackson-annotations</artifactId>
389       <version>2.8.7</version>
390     </dependency>
391     <dependency>
392         <groupId>com.fasterxml.jackson.jaxrs</groupId>
393         <artifactId>jackson-jaxrs-base</artifactId>
394         <version>2.9.2</version>
395     </dependency>
396     <dependency>
397         <groupId>com.fasterxml.jackson.jaxrs</groupId>
398         <artifactId>jackson-jaxrs-providers</artifactId>
399         <version>2.9.2</version>
400         <type>pom</type>
401     </dependency>
402     <dependency>
403       <groupId>org.jboss.resteasy</groupId>
404       <artifactId>resteasy-jaxrs</artifactId>
405       <version>${resteasy.version}</version>
406       <scope>provided</scope>
407       <exclusions>
408         <exclusion>
409            <groupId>org.slf4j</groupId>
410            <artifactId>slf4j-api</artifactId>
411         </exclusion>
412         <exclusion>
413           <groupId>org.slf4j</groupId>
414           <artifactId>slf4j-simple</artifactId>
415         </exclusion>
416         <exclusion>
417           <groupId>org.apache.httpcomponents</groupId>
418           <artifactId>httpclient</artifactId>
419         </exclusion>
420           </exclusions>
421     </dependency>
422     <dependency>
423        <groupId>org.jboss.resteasy</groupId>
424        <artifactId>resteasy-client</artifactId>
425        <version>${resteasy.version}</version>
426        <scope>provided</scope>
427        <exclusions>
428          <exclusion>
429            <groupId>org.apache.httpcomponents</groupId>
430            <artifactId>httpclient</artifactId>
431          </exclusion>
432       </exclusions>
433     </dependency>
434     <dependency>
435       <groupId>org.jboss.resteasy</groupId>
436       <artifactId>resteasy-jackson2-provider</artifactId>
437       <version>${resteasy.version}</version>
438     </dependency>
439     <dependency>
440       <groupId>junit</groupId>
441       <artifactId>junit</artifactId>
442       <version>4.12</version>
443       <scope>test</scope>
444     </dependency>
445
446     <dependency>
447       <groupId>org.mockito</groupId>
448       <artifactId>mockito-all</artifactId>
449       <version>1.10.19</version>
450       <scope>test</scope>
451     </dependency>
452     <dependency>
453       <groupId>org.jmockit</groupId>
454       <artifactId>jmockit</artifactId>
455       <version>1.19</version>
456       <scope>test</scope>
457     </dependency>
458     <dependency>
459       <groupId>org.jmockit</groupId>
460       <artifactId>jmockit-coverage</artifactId>
461       <version>1.19</version>
462       <scope>test</scope>
463     </dependency>
464     <dependency>
465       <groupId>org.powermock</groupId>
466       <artifactId>powermock-api-mockito</artifactId>
467       <version>1.6.2</version>
468       <scope>test</scope>
469     </dependency>
470     <dependency>
471       <groupId>org.powermock</groupId>
472       <artifactId>powermock-module-junit4</artifactId>
473       <version>1.6.2</version>
474       <scope>test</scope>
475     </dependency>
476     <dependency>
477       <groupId>org.hamcrest</groupId>
478       <artifactId>hamcrest-all</artifactId>
479       <version>1.3</version>
480       <scope>test</scope>
481     </dependency>
482     <dependency>
483       <groupId>com.github.tomakehurst</groupId>
484       <artifactId>wiremock</artifactId>
485       <version>1.56</version>
486       <scope>test</scope>
487       <classifier>standalone</classifier>
488       <exclusions>
489         <exclusion>
490           <groupId>org.mortbay.jetty</groupId>
491           <artifactId>jetty</artifactId>
492         </exclusion>
493         <exclusion>
494           <groupId>com.google.guava</groupId>
495           <artifactId>guava</artifactId>
496         </exclusion>
497         <exclusion>
498           <groupId>com.fasterxml.jackson.core</groupId>
499           <artifactId>jackson-core</artifactId>
500         </exclusion>
501         <exclusion>
502           <groupId>com.fasterxml.jackson.core</groupId>
503           <artifactId>jackson-annotations</artifactId>
504         </exclusion>
505         <exclusion>
506           <groupId>com.fasterxml.jackson.core</groupId>
507           <artifactId>jackson-databind</artifactId>
508         </exclusion>
509         <exclusion>
510           <groupId>org.apache.httpcomponents</groupId>
511           <artifactId>httpclient</artifactId>
512         </exclusion>
513         <exclusion>
514           <groupId>org.skyscreamer</groupId>
515           <artifactId>jsonassert</artifactId>
516         </exclusion>
517         <exclusion>
518           <groupId>xmlunit</groupId>
519           <artifactId>xmlunit</artifactId>
520         </exclusion>
521         <exclusion>
522           <groupId>com.jayway.jsonpath</groupId>
523           <artifactId>json-path</artifactId>
524         </exclusion>
525         <exclusion>
526           <groupId>net.sf.jopt-simple</groupId>
527           <artifactId>jopt-simple</artifactId>
528         </exclusion>
529       </exclusions>
530     </dependency>
531     <dependency>
532       <groupId>org.jboss.resteasy</groupId>
533       <artifactId>tjws</artifactId>
534       <version>${resteasy.version}</version>
535       <scope>test</scope>
536     </dependency>
537   </dependencies>
538   <dependencyManagement>
539     <dependencies>
540       <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
541       <!-- force use of version 4.5 everywhere in transient deps, aligned 
542         on WildFly 10 version -->
543       <dependency>
544         <groupId>org.apache.httpcomponents</groupId>
545         <artifactId>httpclient</artifactId>
546         <version>4.5.5</version>
547         <scope>compile</scope>
548       </dependency>
549       <dependency>
550         <groupId>org.apache.httpcomponents</groupId>
551         <artifactId>httpcore</artifactId>
552         <version>4.4.4</version>
553         <scope>compile</scope>
554       </dependency>
555       <dependency>
556         <groupId>commons-codec</groupId>
557         <artifactId>commons-codec</artifactId>
558         <version>1.10</version>
559         <scope>compile</scope>
560       </dependency>
561       <dependency>
562         <groupId>commons-io</groupId>
563         <artifactId>commons-io</artifactId>
564         <version>2.5</version>
565         <scope>compile</scope>
566       </dependency>
567       <dependency>
568         <groupId>org.hamcrest</groupId>
569         <artifactId>hamcrest-core</artifactId>
570         <version>1.3</version>
571         <scope>test</scope>
572       </dependency>
573       <dependency>
574         <groupId>log4j</groupId>
575         <artifactId>log4j</artifactId>
576         <version>1.2.17</version>
577         <scope>compile</scope>
578       </dependency>
579       <dependency>
580         <groupId>org.slf4j</groupId>
581         <artifactId>slf4j-api</artifactId>
582         <version>1.7.10</version>
583         <scope>compile</scope>
584       </dependency>
585       <dependency>
586         <groupId>com.sun.xml.fastinfoset</groupId>
587         <artifactId>FastInfoset</artifactId>
588         <version>1.2.13</version>
589         <scope>compile</scope>
590       </dependency>
591     </dependencies>
592   </dependencyManagement>
593 </project>