Adding UT for E2E Service
[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.0.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.1.0-SNAPSHOT</version>
16         <name>so</name>
17         <description>This Maven project is responsible to build and package all child projects - contributions in the MSO project.
18         This build can be configured to run Functional tests and to start/stop a jboss server + Mysql DB.
19         "mvn clean install -P with-integration-tests -Dintegration-tests-user=root -Dintegration-tests-group=root -Dintegration-tests-db-type=MYSQL"
20         </description>
21         <organization>
22                 <name>OPENECOMP - MSO</name>
23                 <url>http://www.onap.org/</url>
24         </organization>
25         <modules>
26                 <module>common</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         </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.1.0-SNAPSHOT</openstack.version>
50                 <nexusproxy>https://nexus.onap.org</nexusproxy>
51                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
52                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
53                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
54                 <sitePath>/content/sites/site/org/onap/so/${project.version}</sitePath>
55                 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
56         </properties>
57         <distributionManagement>
58                 <repository>
59                         <id>ecomp-releases</id>
60                         <name>MSO Release Repository</name>
61                         <url>${nexusproxy}/${releaseNexusPath}</url>
62                 </repository>
63                 <snapshotRepository>
64                         <id>ecomp-snapshots</id>
65                         <name>MSO Snapshot Repository</name>
66                         <url>${nexusproxy}/${snapshotNexusPath}</url>
67                 </snapshotRepository>
68                 <site>
69                         <id>ecomp-site</id>
70                         <url>dav:${nexusproxy}${sitePath}</url>
71                 </site>
72         </distributionManagement>
73         <reporting>
74                 <plugins>
75                         <plugin>
76                                 <groupId>org.apache.maven.plugins</groupId>
77                                 <artifactId>maven-javadoc-plugin</artifactId>
78                                 <version>2.10.4</version>
79                                 <configuration>
80                                         <failOnError>false</failOnError>
81                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
82                                         <docletArtifact>
83                                                 <groupId>org.umlgraph</groupId>
84                                                 <artifactId>umlgraph</artifactId>
85                                                 <version>5.6</version>
86                                         </docletArtifact>
87                                         <additionalparam>-views</additionalparam>
88                                         <useStandardDocletOptions>true</useStandardDocletOptions>
89                                 </configuration>
90                         </plugin>
91                 </plugins>
92         </reporting>
93         <!-- configure build -->
94         <!-- *********************************************************************************************************** -->
95         <!-- Plugins and repositories -->
96         <pluginRepositories>
97                 <pluginRepository>
98                         <id>central</id>
99                         <url>http://repo1.maven.org/maven2</url>
100                 </pluginRepository>
101
102                 <pluginRepository>
103                         <id>Restlet</id>
104                         <name>Restlet Repository</name>
105                         <url>http://maven.restlet.com</url>
106                 </pluginRepository>
107         </pluginRepositories>
108         <repositories>
109                 <repository>
110                         <id>central</id>
111                         <name>Maven 2 repository 2</name>
112                         <url>http://repo2.maven.org/maven2/</url>
113                 </repository>
114                 <repository>
115                         <id>JBOSS</id>
116                         <name>JBoss Repository</name>
117                         <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
118                 </repository>
119                 <repository>
120                         <id>jboss-deprecated-repository</id>
121                         <name>JBoss Deprecated Maven Repository</name>
122                         <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
123                 </repository>
124                 <repository>
125                         <id>ecomp-releases</id>
126                         <name>MSO Release Repository</name>
127                         <url>${nexusproxy}/${releaseNexusPath}</url>
128                 </repository>
129
130                 <repository>
131                         <id>ecomp-staging</id>
132                         <name>MSO Staging Repository</name>
133                         <url>${nexusproxy}/${stagingNexusPath}</url>
134                 </repository>
135                 <repository>
136             <id>ecomp-snapshots</id>
137             <name>MSO Snapshot Repository</name>
138             <url>${nexusproxy}/${snapshotNexusPath}</url>
139         </repository>
140                 <!-- Camunda Web Repository -->
141                 <repository>
142                         <id>CamundaWebRepo</id>
143                         <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
144                         <name>Camunda Web Repository</name>
145                 </repository>
146                 <repository>
147                         <id>CamundaPublicRepo</id>
148                         <url>https://app.camunda.com/nexus/content/groups/public</url>
149                         <name>Camunda Public repository</name>
150                 </repository>
151                 <repository>
152                         <id>soapUI</id>
153                         <url>http://www.soapui.org/repository/maven2/</url>
154                         <name>SoapUI plugin</name>
155                 </repository>
156         </repositories>
157         <!-- *********************************************************************************************************** -->
158         <!-- Build -->
159         <build>
160                 <resources>
161                         <resource>
162                                 <directory>src/main/resources</directory>
163                                 <filtering>true</filtering>
164                         </resource>
165                         <resource>
166                                 <directory>target/generated-sources/license</directory>
167                                 <includes>
168                                         <include>third-party-licenses.txt</include>
169                                 </includes>
170                         </resource>
171                         <resource>
172                                 <directory>target/generated-resources/licenses</directory>
173                                 <includes>
174                                         <include>*.*</include>
175                                 </includes>
176                                 <targetPath>third-party-licenses</targetPath>
177                         </resource>
178                 </resources>
179                 <plugins>
180                         <plugin>
181                                 <groupId>org.sonatype.plugins</groupId>
182                                 <artifactId>nexus-staging-maven-plugin</artifactId>
183                                 <version>1.6.7</version>
184                                 <extensions>true</extensions>
185                                 <configuration>
186                                         <nexusUrl>${nexusproxy}</nexusUrl>
187                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
188                                         <serverId>ecomp-staging</serverId>
189                                 </configuration>
190                         </plugin>
191                         <plugin>
192                                 <groupId>org.apache.maven.plugins</groupId>
193                                 <artifactId>maven-deploy-plugin</artifactId>
194                                 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
195                                 <configuration>
196                                         <skip />
197                                 </configuration>
198                         </plugin>
199                         <plugin>
200                                 <groupId>org.apache.maven.plugins</groupId>
201                                 <artifactId>maven-surefire-plugin</artifactId>
202                                 <version>2.17</version>
203                                 <configuration>
204                                         <!--            <forkCount>2C</forkCount>
205                                             <reuseForks>true</reuseForks> -->
206                                 </configuration>
207                         </plugin>
208                         <plugin>
209                                 <groupId>org.apache.maven.plugins</groupId>
210                                 <artifactId>maven-compiler-plugin</artifactId>
211                                 <version>3.6.1</version>
212                                 <configuration>
213                                         <debug>true</debug>
214                                         <compilerArgument>-Xlint</compilerArgument>
215                                         <verbose>true</verbose>
216                                         <showDeprecation>true</showDeprecation>
217                                         <showWarnings>true</showWarnings>
218                                         <source>1.8</source>
219                                         <target>1.8</target>
220                                 </configuration>
221                         </plugin>
222                         <!--                    <plugin> -->
223                         <!--                            <groupId>org.codehaus.mojo</groupId> -->
224                         <!--                            <artifactId>sonar-maven-plugin</artifactId> -->
225                         <!--                            <version>2.1</version> -->
226                         <!--                    </plugin> -->
227                         <plugin>
228                                 <groupId>org.apache.maven.plugins</groupId>
229                                 <artifactId>maven-ejb-plugin</artifactId>
230                                 <version>2.2.1</version>
231                                 <configuration>
232                                         <ejbVersion>3.0</ejbVersion>
233                                         <archive>
234                                                 <manifest>
235                                                         <addClasspath>true</addClasspath>
236                                                 </manifest>
237                                         </archive>
238                                 </configuration>
239                         </plugin>
240                         <plugin>
241                                 <groupId>org.apache.maven.plugins</groupId>
242                                 <artifactId>maven-checkstyle-plugin</artifactId>
243                                 <version>2.17</version>
244                                 <configuration>
245                                         <includes>**/org/openecomp/**/*.java</includes>
246                                         <configLocation>/google_checks.xml</configLocation>
247                                 </configuration>
248                         </plugin>
249                         <plugin>
250                                 <groupId>org.codehaus.mojo</groupId>
251                                 <artifactId>findbugs-maven-plugin</artifactId>
252                                 <version>2.5.2</version>
253                                 <configuration>
254                                         <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
255                                         <nested>true</nested>
256                                         <findbugsXmlOutput>true</findbugsXmlOutput>
257                                         <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
258                                         <xmlOutput>true</xmlOutput>
259                                 </configuration>
260                         </plugin>
261                         <plugin>
262                                 <groupId>org.codehaus.mojo</groupId>
263                                 <artifactId>sonar-maven-plugin</artifactId>
264                                 <version>3.2</version>
265                         </plugin>
266                         <plugin>
267                                 <artifactId>maven-scm-plugin</artifactId>
268                                 <version>1.8.1</version>
269                                 <configuration>
270                                         <tag>${project.artifactId}-${project.version}</tag>
271                                 </configuration>
272                         </plugin>
273                         <plugin>
274                                 <groupId>org.apache.maven.plugins</groupId>
275                                 <artifactId>maven-javadoc-plugin</artifactId>
276                                 <version>2.9</version>
277                         </plugin>
278                         <plugin>
279                                 <groupId>org.apache.maven.plugins</groupId>
280                                 <artifactId>maven-site-plugin</artifactId>
281                                 <version>3.6</version>
282                                 <dependencies>
283                                         <dependency>
284                                                 <groupId>org.apache.maven.wagon</groupId>
285                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
286                                                 <version>2.10</version>
287                                         </dependency>
288                                 </dependencies>
289                         </plugin>
290                         <plugin>
291                                 <groupId>org.codehaus.mojo</groupId>
292                                 <artifactId>cobertura-maven-plugin</artifactId>
293                                 <version>2.5.2</version>
294                                 <configuration>
295                                         <formats>
296                                                 <format>xml</format>
297                                         </formats>
298                                 </configuration>
299                         </plugin>
300                         <plugin>
301                                 <groupId>org.codehaus.mojo</groupId>
302                                 <artifactId>versions-maven-plugin</artifactId>
303                                 <version>1.3.1</version>
304                         </plugin>
305                         <plugin>
306                                 <groupId>org.codehaus.mojo</groupId>
307                                 <artifactId>jboss-packaging-maven-plugin</artifactId>
308                                 <version>2.2</version>
309                                 <!-- <configuration> <archive> <manifest> <addClasspath>true</addClasspath>
310                                      </manifest> </archive> </configuration> Enable 'jboss-sar', etc., as a recoginized
311                                      maven packaging type -->
312                                 <extensions>true</extensions>
313                         </plugin>
314                         <plugin>
315                                 <groupId>org.jacoco</groupId>
316                                 <artifactId>jacoco-maven-plugin</artifactId>
317                                 <version>0.7.7.201606060606</version>
318                                 <configuration>
319                                         <dumpOnExit>true</dumpOnExit>
320                                         <includes>
321                                                 <include>org.openecomp.*</include>
322                                         </includes>
323                                 </configuration>
324                                 <executions>
325                                         <execution>
326                                                 <id>jacoco-initialize-unit-tests</id>
327                                                 <goals>
328                                                         <goal>prepare-agent</goal>
329                                                 </goals>
330                                                 <configuration>
331                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
332                                                         <!-- <append>true</append> -->
333                                                 </configuration>
334                                         </execution>
335                                 </executions>
336                         </plugin>
337                         <plugin>
338                                 <groupId>com.fortify.ps.maven.plugin</groupId>
339                                 <artifactId>sca-maven-plugin</artifactId>
340                                 <version>4.20</version>
341                                 <configuration>
342                                         <buildId>mso-${project.version}</buildId>
343                                         <source>1.8</source>
344                                 </configuration>
345                         </plugin>
346                 </plugins>
347         </build>
348         <!-- *********************************************************************************************************** -->
349         <!-- Dependencies -->
350         <dependencies>
351                 <dependency>
352                         <groupId>junit</groupId>
353                         <artifactId>junit</artifactId>
354                         <version>4.12</version>
355                         <scope>test</scope>
356                 </dependency>
357         </dependencies>
358         <dependencyManagement>
359                 <dependencies>
360                         <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
361                         <!-- force use of version 4.5 everywhere in transient deps, aligned on WildFly 10 version -->
362                         <dependency>
363                                 <groupId>org.apache.httpcomponents</groupId>
364                                 <artifactId>httpclient</artifactId>
365                                 <version>4.5</version>
366                                 <scope>compile</scope>
367                         </dependency>
368                         <dependency>
369                                 <groupId>org.apache.httpcomponents</groupId>
370                                 <artifactId>httpcore</artifactId>
371                                 <version>4.4.1</version>
372                                 <scope>compile</scope>
373                         </dependency>
374                         <dependency>
375                                 <groupId>commons-codec</groupId>
376                                 <artifactId>commons-codec</artifactId>
377                                 <version>1.10</version>
378                                 <scope>compile</scope>
379                         </dependency>
380                         <dependency>
381                                 <groupId>commons-io</groupId>
382                                 <artifactId>commons-io</artifactId>
383                                 <version>2.5</version>
384                                 <scope>compile</scope>
385                         </dependency>
386                         <dependency>
387                                 <groupId>org.hamcrest</groupId>
388                                 <artifactId>hamcrest-core</artifactId>
389                                 <version>1.3</version>
390                                 <scope>test</scope>
391                         </dependency>
392                         <dependency>
393                                 <groupId>log4j</groupId>
394                                 <artifactId>log4j</artifactId>
395                                 <version>1.2.17</version>
396                                 <scope>compile</scope>
397                         </dependency>
398                         <dependency>
399                                 <groupId>org.slf4j</groupId>
400                                 <artifactId>slf4j-api</artifactId>
401                                 <version>1.7.10</version>
402                                 <scope>compile</scope>
403                         </dependency>
404                         <dependency>
405                                 <groupId>com.sun.xml.fastinfoset</groupId>
406                                 <artifactId>FastInfoset</artifactId>
407                                 <version>1.2.13</version>
408                                 <scope>compile</scope>
409                         </dependency>
410                 </dependencies>
411         </dependencyManagement>
412 </project>