Merge "UT improvement for catalog db"
[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
5   <parent>
6     <groupId>org.onap.oparent</groupId>
7     <artifactId>oparent</artifactId>
8     <version>1.1.0-SNAPSHOT</version>
9     <relativePath />
10   </parent>
11
12   <groupId>org.openecomp.so</groupId>
13   <artifactId>so</artifactId>
14   <packaging>pom</packaging>
15   <!-- <version>1.2.0-SNAPSHOT</version> -->
16   <version>1.2.0-SNAPSHOT</version>
17   <name>so</name>
18   <description>This Maven project is responsible to build and package all child projects - contributions in the MSO project.
19         This build can be configured to run Functional tests and to start/stop a jboss server + Mysql DB.
20         "mvn clean install -P with-integration-tests -Dintegration-tests-user=root -Dintegration-tests-group=root -Dintegration-tests-db-type=MYSQL"
21         </description>
22   <organization>
23     <name>OPENECOMP - MSO</name>
24     <url>http://www.onap.org/</url>
25   </organization>
26   <modules>
27     <module>common</module>
28     <module>mso-api-handlers</module>
29     <module>mso-catalog-db</module>
30     <module>adapters</module>
31     <module>asdc-controller</module>
32     <module>status-control</module>
33     <module>bpmn</module>
34     <module>packages</module>
35     <!-- <module>aria/aria-rest-server</module> -->
36   </modules>
37   <properties>
38     <project.mso.base.folder>.</project.mso.base.folder>
39     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
41     <sonar.language>java</sonar.language>
42     <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
43     <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
44     <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
45     <sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath>
46     <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
47     <sonar.projectVersion>${project.version}</sonar.projectVersion>
48     <org.apache.maven.user-settings></org.apache.maven.user-settings>
49     <!-- this is used for Chef mso-code cookbook -->
50     <swm.version>2.19.3-1</swm.version>
51     <!-- <openstack.version>1.2.0-SNAPSHOT</openstack.version> -->
52         <openstack.version>1.1.0</openstack.version>
53     <nexusproxy>https://nexus.onap.org</nexusproxy>
54     <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
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>jboss-deprecated-repository</id>
120       <name>JBoss Deprecated Maven Repository</name>
121       <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
122     </repository>
123     <repository>
124       <id>ecomp-releases</id>
125       <name>ONAP Release Repository</name>
126       <url>https://nexus.onap.org/content/repositories/releases/</url>
127     </repository>
128     <repository>
129       <id>ecomp-staging</id>
130       <name>ONAP Staging Repository</name>
131       <url>https://nexus.onap.org/content/repositories/staging/</url>
132     </repository>
133     <repository>
134       <id>ecomp-snapshots</id>
135       <name>ONAP Snapshot Repository</name>
136       <url>https://nexus.onap.org/content/repositories/snapshots/</url>
137       <snapshots>
138         <enabled>true</enabled>
139       </snapshots>
140       <releases>
141         <enabled>false</enabled>
142       </releases>
143     </repository>
144     <!-- Camunda Web Repository -->
145     <repository>
146       <id>CamundaWebRepo</id>
147       <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
148       <name>Camunda Web Repository</name>
149     </repository>
150     <repository>
151       <id>CamundaPublicRepo</id>
152       <url>https://app.camunda.com/nexus/content/groups/public</url>
153       <name>Camunda Public repository</name>
154     </repository>
155
156     <repository>
157       <id>soapUI</id>
158       <url>http://www.soapui.org/repository/maven2/</url>
159       <name>SoapUI plugin</name>
160     </repository>
161   </repositories>
162   <!-- *********************************************************************************************************** -->
163   <!-- Build -->
164   <build>
165     <resources>
166       <resource>
167         <directory>src/main/resources</directory>
168         <filtering>true</filtering>
169       </resource>
170       <resource>
171         <directory>target/generated-sources/license</directory>
172         <includes>
173           <include>third-party-licenses.txt</include>
174         </includes>
175       </resource>
176       <resource>
177         <directory>target/generated-resources/licenses</directory>
178         <includes>
179           <include>*.*</include>
180         </includes>
181         <targetPath>third-party-licenses</targetPath>
182       </resource>
183     </resources>
184     <plugins>
185       <plugin>
186         <groupId>org.sonatype.plugins</groupId>
187         <artifactId>nexus-staging-maven-plugin</artifactId>
188         <version>1.6.7</version>
189         <extensions>true</extensions>
190         <configuration>
191           <nexusUrl>${nexusproxy}</nexusUrl>
192           <stagingProfileId>176c31dfe190a</stagingProfileId>
193           <serverId>ecomp-staging</serverId>
194         </configuration>
195       </plugin>
196       <plugin>
197         <groupId>org.apache.maven.plugins</groupId>
198         <artifactId>maven-deploy-plugin</artifactId>
199         <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
200         <configuration>
201           <skip />
202         </configuration>
203       </plugin>
204       <plugin>
205         <groupId>org.apache.maven.plugins</groupId>
206         <artifactId>maven-surefire-plugin</artifactId>
207         <version>2.19.1</version>
208         <configuration>
209           <argLine>${surefireArgLine}</argLine>
210           <!-- <forkCount>2C</forkCount> <reuseForks>true</reuseForks> -->
211           <excludes>
212             <exclude>**/IT*.java</exclude>
213           </excludes>
214         </configuration>
215       </plugin>
216       <plugin>
217         <groupId>org.apache.maven.plugins</groupId>
218         <artifactId>maven-compiler-plugin</artifactId>
219         <version>3.6.1</version>
220         <configuration>
221           <debug>true</debug>
222           <compilerArgument>-Xlint</compilerArgument>
223           <verbose>true</verbose>
224           <showDeprecation>true</showDeprecation>
225           <showWarnings>true</showWarnings>
226           <source>1.8</source>
227           <target>1.8</target>
228         </configuration>
229       </plugin>
230       <!-- <plugin> -->
231       <!-- <groupId>org.codehaus.mojo</groupId> -->
232       <!-- <artifactId>sonar-maven-plugin</artifactId> -->
233       <!-- <version>2.1</version> -->
234       <!-- </plugin> -->
235       <plugin>
236         <groupId>org.apache.maven.plugins</groupId>
237         <artifactId>maven-ejb-plugin</artifactId>
238         <version>2.2.1</version>
239         <configuration>
240           <ejbVersion>3.0</ejbVersion>
241           <archive>
242             <manifest>
243               <addClasspath>true</addClasspath>
244             </manifest>
245           </archive>
246         </configuration>
247       </plugin>
248       <plugin>
249         <groupId>org.apache.maven.plugins</groupId>
250         <artifactId>maven-checkstyle-plugin</artifactId>
251         <version>2.17</version>
252         <configuration>
253           <includes>**/org/openecomp/**/*.java</includes>
254           <configLocation>/google_checks.xml</configLocation>
255         </configuration>
256       </plugin>
257       <plugin>
258         <groupId>org.codehaus.mojo</groupId>
259         <artifactId>findbugs-maven-plugin</artifactId>
260         <version>2.5.2</version>
261         <configuration>
262           <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
263           <nested>true</nested>
264           <findbugsXmlOutput>true</findbugsXmlOutput>
265           <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
266           <xmlOutput>true</xmlOutput>
267         </configuration>
268       </plugin>
269       <plugin>
270         <groupId>org.codehaus.mojo</groupId>
271         <artifactId>sonar-maven-plugin</artifactId>
272         <version>3.2</version>
273       </plugin>
274       <plugin>
275         <artifactId>maven-scm-plugin</artifactId>
276         <version>1.8.1</version>
277         <configuration>
278           <tag>${project.artifactId}-${project.version}</tag>
279         </configuration>
280       </plugin>
281       <plugin>
282         <groupId>org.apache.maven.plugins</groupId>
283         <artifactId>maven-javadoc-plugin</artifactId>
284         <version>2.9</version>
285       </plugin>
286       <plugin>
287         <groupId>org.apache.maven.plugins</groupId>
288         <artifactId>maven-site-plugin</artifactId>
289         <version>3.6</version>
290         <dependencies>
291           <dependency>
292             <groupId>org.apache.maven.wagon</groupId>
293             <artifactId>wagon-webdav-jackrabbit</artifactId>
294             <version>2.10</version>
295           </dependency>
296         </dependencies>
297       </plugin>
298       <plugin>
299         <groupId>org.codehaus.mojo</groupId>
300         <artifactId>cobertura-maven-plugin</artifactId>
301         <version>2.5.2</version>
302         <configuration>
303           <formats>
304             <format>xml</format>
305           </formats>
306         </configuration>
307       </plugin>
308       <plugin>
309         <groupId>org.codehaus.mojo</groupId>
310         <artifactId>versions-maven-plugin</artifactId>
311         <version>1.3.1</version>
312       </plugin>
313       <plugin>
314         <groupId>org.codehaus.mojo</groupId>
315         <artifactId>jboss-packaging-maven-plugin</artifactId>
316         <version>2.2</version>
317         <!-- <configuration> <archive> <manifest> <addClasspath>true</addClasspath> 
318           </manifest> </archive> </configuration> Enable 'jboss-sar', etc., as a recoginized 
319           maven packaging type -->
320         <extensions>true</extensions>
321       </plugin>
322       <plugin>
323         <groupId>org.jacoco</groupId>
324         <artifactId>jacoco-maven-plugin</artifactId>
325         <version>0.7.7.201606060606</version>
326         <configuration>
327           <dumpOnExit>true</dumpOnExit>
328           <includes>
329             <include>org.openecomp.*</include>
330           </includes>
331         </configuration>
332         <executions>
333           <execution>
334             <id>pre-unit-test</id>
335             <goals>
336               <goal>prepare-agent</goal>
337             </goals>
338             <configuration>
339               <destFile>${sonar.jacoco.reportPath}</destFile>
340               <propertyName>surefireArgLine</propertyName>
341             </configuration>
342           </execution>
343         </executions>
344       </plugin>
345       <plugin>
346         <groupId>com.fortify.ps.maven.plugin</groupId>
347         <artifactId>sca-maven-plugin</artifactId>
348         <version>4.20</version>
349         <configuration>
350           <buildId>mso-${project.version}</buildId>
351           <source>1.8</source>
352         </configuration>
353       </plugin>
354     </plugins>
355   </build>
356   <!-- *********************************************************************************************************** -->
357   <!-- Dependencies -->
358   <dependencies>
359     <dependency>
360       <groupId>junit</groupId>
361       <artifactId>junit</artifactId>
362       <version>4.12</version>
363       <scope>test</scope>
364     </dependency>
365   </dependencies>
366   <dependencyManagement>
367     <dependencies>
368       <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
369       <!-- force use of version 4.5 everywhere in transient deps, aligned 
370         on WildFly 10 version -->
371       <dependency>
372         <groupId>org.apache.httpcomponents</groupId>
373         <artifactId>httpclient</artifactId>
374         <version>4.5</version>
375         <scope>compile</scope>
376       </dependency>
377       <dependency>
378         <groupId>org.apache.httpcomponents</groupId>
379         <artifactId>httpcore</artifactId>
380         <version>4.4.1</version>
381         <scope>compile</scope>
382       </dependency>
383       <dependency>
384         <groupId>commons-codec</groupId>
385         <artifactId>commons-codec</artifactId>
386         <version>1.10</version>
387         <scope>compile</scope>
388       </dependency>
389       <dependency>
390         <groupId>commons-io</groupId>
391         <artifactId>commons-io</artifactId>
392         <version>2.5</version>
393         <scope>compile</scope>
394       </dependency>
395       <dependency>
396         <groupId>org.hamcrest</groupId>
397         <artifactId>hamcrest-core</artifactId>
398         <version>1.3</version>
399         <scope>test</scope>
400       </dependency>
401       <dependency>
402         <groupId>log4j</groupId>
403         <artifactId>log4j</artifactId>
404         <version>1.2.17</version>
405         <scope>compile</scope>
406       </dependency>
407       <dependency>
408         <groupId>org.slf4j</groupId>
409         <artifactId>slf4j-api</artifactId>
410         <version>1.7.10</version>
411         <scope>compile</scope>
412       </dependency>
413       <dependency>
414         <groupId>com.sun.xml.fastinfoset</groupId>
415         <artifactId>FastInfoset</artifactId>
416         <version>1.2.13</version>
417         <scope>compile</scope>
418       </dependency>
419     </dependencies>
420   </dependencyManagement>
421 </project>