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