IssueId : SO-98
[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         <groupId>org.openecomp.so</groupId>
5         <artifactId>so</artifactId>
6         <packaging>pom</packaging>
7         <version>1.1.0-SNAPSHOT</version>
8         <name>MSO main project</name>
9         <description>This Maven project is responsible to build and package all child projects - contributions in the MSO project.
10         This build can be configured to run Functional tests and to start/stop a jboss server + Mysql DB.
11         "mvn clean install -P with-integration-tests -Dintegration-tests-user=root -Dintegration-tests-group=root -Dintegration-tests-db-type=MYSQL"
12         </description>
13         <organization>
14                 <name>OPENECOMP - MSO</name>
15                 <url>http://www.onap.org/</url>
16         </organization>
17         <modules>
18                 <module>common</module>
19                 <module>mso-api-handlers</module>
20                 <module>mso-catalog-db</module>
21                 <module>adapters</module>
22                 <module>asdc-controller</module>
23                 <module>status-control</module>
24                 <module>bpmn</module>
25                 <module>packages</module>
26         </modules>
27         <properties>
28                 <project.mso.base.folder>.</project.mso.base.folder>
29                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
31                 <sonar.language>java</sonar.language>
32                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
33                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
34                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
35                 <sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath>
36                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
37                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
38                 <org.apache.maven.user-settings></org.apache.maven.user-settings>
39                 <!-- this is used for Chef mso-code cookbook -->
40                 <swm.version>2.19.3-1</swm.version>
41                 <openstack.version>1.1.0-SNAPSHOT</openstack.version>
42                 <evosuiteVersion>1.0.4-alpha2</evosuiteVersion>
43                 <nexusproxy>https://nexus.onap.org</nexusproxy>
44                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
45                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
46                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
47                 <sitePath>/content/sites/site/org/onap/so/${project.version}</sitePath>
48                 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
49         </properties>
50         <distributionManagement>
51                 <repository>
52                         <id>ecomp-releases</id>
53                         <name>MSO Release Repository</name>
54                         <url>${nexusproxy}/${releaseNexusPath}</url>
55                 </repository>
56                 <snapshotRepository>
57                         <id>ecomp-snapshots</id>
58                         <name>MSO Snapshot Repository</name>
59                         <url>${nexusproxy}/${snapshotNexusPath}</url>
60                 </snapshotRepository>
61                 <site>
62                         <id>ecomp-site</id>
63                         <url>dav:${nexusproxy}${sitePath}</url>
64                 </site>
65         </distributionManagement>
66         <reporting>
67                 <plugins>
68                         <plugin>
69                                 <groupId>org.apache.maven.plugins</groupId>
70                                 <artifactId>maven-javadoc-plugin</artifactId>
71                                 <version>2.10.4</version>
72                                 <configuration>
73                                         <failOnError>false</failOnError>
74                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
75                                         <docletArtifact>
76                                                 <groupId>org.umlgraph</groupId>
77                                                 <artifactId>umlgraph</artifactId>
78                                                 <version>5.6</version>
79                                         </docletArtifact>
80                                         <additionalparam>-views</additionalparam>
81                                         <useStandardDocletOptions>true</useStandardDocletOptions>
82                                 </configuration>
83                         </plugin>
84                 </plugins>
85         </reporting>
86         <!-- configure build -->
87         <!-- *********************************************************************************************************** -->
88         <!-- Plugins and repositories -->
89         <pluginRepositories>
90                 <pluginRepository>
91                         <id>central</id>
92                         <url>http://repo1.maven.org/maven2</url>
93                 </pluginRepository>
94                 <pluginRepository>
95                         <id>EvoSuite</id>
96                         <name>EvoSuite Repository</name>
97                         <url>http://www.evosuite.org/m2</url>
98                 </pluginRepository>
99         </pluginRepositories>
100         <repositories>
101                 <repository>
102                         <id>central</id>
103                         <name>Maven 2 repository 2</name>
104                         <url>http://repo2.maven.org/maven2/</url>
105                 </repository>
106                 <repository>
107                         <id>JBOSS</id>
108                         <name>JBoss Repository</name>
109                         <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
110                 </repository>
111                 <repository>
112                         <id>jboss-deprecated-repository</id>
113                         <name>JBoss Deprecated Maven Repository</name>
114                         <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
115                 </repository>
116                 <repository>
117                         <id>ecomp-releases</id>
118                         <name>MSO Release Repository</name>
119                         <url>${nexusproxy}/${releaseNexusPath}</url>
120                 </repository>
121                 <repository>
122                         <id>ecomp-staging</id>
123                         <name>MSO Staging Repository</name>
124                         <url>${nexusproxy}/${stagingNexusPath}</url>
125                 </repository>
126                 <repository>
127             <id>ecomp-snapshots</id>
128             <name>MSO Snapshot Repository</name>
129             <url>${nexusproxy}/${snapshotNexusPath}</url>
130         </repository>
131                 <!-- Camunda Web Repository -->
132                 <repository>
133                         <id>CamundaWebRepo</id>
134                         <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url>
135                         <name>Camunda Web Repository</name>
136                 </repository>
137                 <repository>
138                         <id>CamundaPublicRepo</id>
139                         <url>https://app.camunda.com/nexus/content/groups/public</url>
140                         <name>Camunda Public repository</name>
141                 </repository>
142                 <repository>
143                         <id>soapUI</id>
144                         <url>http://www.soapui.org/repository/maven2/</url>
145                         <name>SoapUI plugin</name>
146                 </repository>
147         </repositories>
148         <!-- *********************************************************************************************************** -->
149         <!-- Build -->
150         <build>
151                 <resources>
152                         <resource>
153                                 <directory>src/main/resources</directory>
154                                 <filtering>true</filtering>
155                         </resource>
156                         <resource>
157                                 <directory>target/generated-sources/license</directory>
158                                 <includes>
159                                         <include>third-party-licenses.txt</include>
160                                 </includes>
161                         </resource>
162                         <resource>
163                                 <directory>target/generated-resources/licenses</directory>
164                                 <includes>
165                                         <include>*.*</include>
166                                 </includes>
167                                 <targetPath>third-party-licenses</targetPath>
168                         </resource>
169                 </resources>
170                 <plugins>
171                         <plugin>
172                                 <groupId>org.sonatype.plugins</groupId>
173                                 <artifactId>nexus-staging-maven-plugin</artifactId>
174                                 <version>1.6.7</version>
175                                 <extensions>true</extensions>
176                                 <configuration>
177                                         <nexusUrl>${nexusproxy}</nexusUrl>
178                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
179                                         <serverId>ecomp-staging</serverId>
180                                 </configuration>
181                         </plugin>
182                         <plugin>
183                                 <groupId>org.apache.maven.plugins</groupId>
184                                 <artifactId>maven-deploy-plugin</artifactId>
185                                 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
186                                 <configuration>
187                                         <skip />
188                                 </configuration>
189                         </plugin>
190                         <plugin>
191                                 <groupId>org.apache.maven.plugins</groupId>
192                                 <artifactId>maven-surefire-plugin</artifactId>
193                                 <version>2.17</version>
194                                 <configuration>
195                                         <!--            <forkCount>2C</forkCount>
196                                             <reuseForks>true</reuseForks> -->
197                                         <properties>
198                                                 <property>
199                                                         <name>listener</name>
200                                                         <value>org.evosuite.runtime.InitializingListener</value>
201                                                 </property>
202                                         </properties>
203                                 </configuration>
204                         </plugin>
205                         <plugin>
206                                 <groupId>org.apache.maven.plugins</groupId>
207                                 <artifactId>maven-compiler-plugin</artifactId>
208                                 <version>3.6.1</version>
209                                 <configuration>
210                                         <debug>true</debug>
211                                         <compilerArgument>-Xlint</compilerArgument>
212                                         <verbose>true</verbose>
213                                         <showDeprecation>true</showDeprecation>
214                                         <showWarnings>true</showWarnings>
215                                         <source>1.8</source>
216                                         <target>1.8</target>
217                                 </configuration>
218                         </plugin>
219                         <!--                    <plugin> -->
220                         <!--                            <groupId>org.codehaus.mojo</groupId> -->
221                         <!--                            <artifactId>sonar-maven-plugin</artifactId> -->
222                         <!--                            <version>2.1</version> -->
223                         <!--                    </plugin> -->
224                         <plugin>
225                                 <groupId>org.apache.maven.plugins</groupId>
226                                 <artifactId>maven-ejb-plugin</artifactId>
227                                 <version>2.2.1</version>
228                                 <configuration>
229                                         <ejbVersion>3.0</ejbVersion>
230                                         <archive>
231                                                 <manifest>
232                                                         <addClasspath>true</addClasspath>
233                                                 </manifest>
234                                         </archive>
235                                 </configuration>
236                         </plugin>
237                         <plugin>
238                                 <groupId>org.apache.maven.plugins</groupId>
239                                 <artifactId>maven-checkstyle-plugin</artifactId>
240                                 <version>2.17</version>
241                                 <configuration>
242                                         <includes>**/org/openecomp/**/*.java</includes>
243                                         <configLocation>/google_checks.xml</configLocation>
244                                 </configuration>
245                         </plugin>
246                         <plugin>
247                                 <groupId>org.codehaus.mojo</groupId>
248                                 <artifactId>findbugs-maven-plugin</artifactId>
249                                 <version>2.5.2</version>
250                                 <configuration>
251                                         <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile>
252                                         <nested>true</nested>
253                                         <findbugsXmlOutput>true</findbugsXmlOutput>
254                                         <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
255                                         <xmlOutput>true</xmlOutput>
256                                 </configuration>
257                         </plugin>
258                         <plugin>
259                                 <groupId>org.codehaus.mojo</groupId>
260                                 <artifactId>sonar-maven-plugin</artifactId>
261                                 <version>3.2</version>
262                         </plugin>
263                         <plugin>
264                                 <artifactId>maven-scm-plugin</artifactId>
265                                 <version>1.8.1</version>
266                                 <configuration>
267                                         <tag>${project.artifactId}-${project.version}</tag>
268                                 </configuration>
269                         </plugin>
270                         <plugin>
271                                 <groupId>org.apache.maven.plugins</groupId>
272                                 <artifactId>maven-javadoc-plugin</artifactId>
273                                 <version>2.9</version>
274                         </plugin>
275                         <plugin>
276                                 <groupId>org.apache.maven.plugins</groupId>
277                                 <artifactId>maven-site-plugin</artifactId>
278                                 <version>3.6</version>
279                                 <dependencies>
280                                         <dependency>
281                                                 <groupId>org.apache.maven.wagon</groupId>
282                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
283                                                 <version>2.10</version>
284                                         </dependency>
285                                 </dependencies>
286                         </plugin>
287                         <plugin>
288                                 <groupId>org.codehaus.mojo</groupId>
289                                 <artifactId>cobertura-maven-plugin</artifactId>
290                                 <version>2.5.2</version>
291                                 <configuration>
292                                         <formats>
293                                                 <format>xml</format>
294                                         </formats>
295                                 </configuration>
296                         </plugin>
297                         <plugin>
298                                 <groupId>org.codehaus.mojo</groupId>
299                                 <artifactId>versions-maven-plugin</artifactId>
300                                 <version>1.3.1</version>
301                         </plugin>
302                         <plugin>
303                                 <groupId>org.codehaus.mojo</groupId>
304                                 <artifactId>jboss-packaging-maven-plugin</artifactId>
305                                 <version>2.2</version>
306                                 <!-- <configuration> <archive> <manifest> <addClasspath>true</addClasspath>
307                                      </manifest> </archive> </configuration> Enable 'jboss-sar', etc., as a recoginized
308                                      maven packaging type -->
309                                 <extensions>true</extensions>
310                         </plugin>
311                         <plugin>
312                                 <groupId>org.jacoco</groupId>
313                                 <artifactId>jacoco-maven-plugin</artifactId>
314                                 <version>0.7.7.201606060606</version>
315                                 <configuration>
316                                         <dumpOnExit>true</dumpOnExit>
317                                         <includes>
318                                                 <include>org.openecomp.*</include>
319                                         </includes>
320                                 </configuration>
321                                 <executions>
322                                         <execution>
323                                                 <id>jacoco-initialize-unit-tests</id>
324                                                 <goals>
325                                                         <goal>prepare-agent</goal>
326                                                 </goals>
327                                                 <configuration>
328                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
329                                                         <!-- <append>true</append> -->
330                                                 </configuration>
331                                         </execution>
332                                 </executions>
333                         </plugin>
334                         <plugin>
335                                 <groupId>com.fortify.ps.maven.plugin</groupId>
336                                 <artifactId>sca-maven-plugin</artifactId>
337                                 <version>4.20</version>
338                                 <configuration>
339                                         <buildId>mso-${project.version}</buildId>
340                                         <source>1.8</source>
341                                 </configuration>
342                         </plugin>
343                         <!-- license plugin -->
344                         <plugin>
345                                 <groupId>org.codehaus.mojo</groupId>
346                                 <artifactId>license-maven-plugin</artifactId>
347                                 <version>1.10</version>
348                                 <configuration>
349                                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
350                                         <processStartTag>============LICENSE_START=======================================================</processStartTag>
351                                         <processEndTag>============LICENSE_END=========================================================</processEndTag>
352                                         <sectionDelimiter>================================================================================</sectionDelimiter>
353                                         <licenseName>apache_v2</licenseName>
354                                         <inceptionYear>2017</inceptionYear>
355                                         <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
356                                         <projectName>ECOMP MSO</projectName>
357                                         <canUpdateCopyright>true</canUpdateCopyright>
358                                         <canUpdateDescription>true</canUpdateDescription>
359                                         <canUpdateLicense>true</canUpdateLicense>
360                                         <emptyLineAfterHeader>true</emptyLineAfterHeader>
361                                 </configuration>
362                                 <executions>
363                                         <execution>
364                                                 <id>first</id>
365                                                 <goals>
366                                                         <goal>update-file-header</goal>
367                                                 </goals>
368                                                 <phase>process-sources</phase>
369                                                 <configuration>
370                                                         <licenseName>apache_v2</licenseName>
371                                                         <includes>
372                                                                 <include>*.java</include>
373                                                                 <include>*.groovy</include>
374                                                         </includes>
375                                                         <excludes>
376                                                                 <exclude>*.json</exclude>
377                                                         </excludes>
378                                                 </configuration>
379                                         </execution>
380                                 </executions>
381                         </plugin>
382                 </plugins>
383                 <pluginManagement>
384                         <plugins>
385                                 <plugin>
386                                         <groupId>org.evosuite.plugins</groupId>
387                                         <artifactId>evosuite-maven-plugin</artifactId>
388                                         <version>${evosuiteVersion}</version>
389                                         <executions>
390                                                 <execution>
391                                                         <goals>
392                                                                 <goal>prepare</goal>
393                                                         </goals>
394                                                         <phase>process-test-classes</phase>
395                                                 </execution>
396                                         </executions>
397                                 </plugin>
398                         </plugins>
399                 </pluginManagement>
400         </build>
401         <!-- *********************************************************************************************************** -->
402         <!-- Dependencies -->
403         <dependencies>
404                 <dependency>
405                         <groupId>junit</groupId>
406                         <artifactId>junit</artifactId>
407                         <version>4.12</version>
408                         <scope>test</scope>
409                 </dependency>
410         </dependencies>
411         <dependencyManagement>
412                 <dependencies>
413                         <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
414                         <!-- force use of version 4.5 everywhere in transient deps, aligned on WildFly 10 version -->
415                         <dependency>
416                                 <groupId>org.apache.httpcomponents</groupId>
417                                 <artifactId>httpclient</artifactId>
418                                 <version>4.5</version>
419                                 <scope>compile</scope>
420                         </dependency>
421                         <dependency>
422                                 <groupId>org.apache.httpcomponents</groupId>
423                                 <artifactId>httpcore</artifactId>
424                                 <version>4.4.1</version>
425                                 <scope>compile</scope>
426                         </dependency>
427                         <dependency>
428                                 <groupId>commons-codec</groupId>
429                                 <artifactId>commons-codec</artifactId>
430                                 <version>1.10</version>
431                                 <scope>compile</scope>
432                         </dependency>
433                         <dependency>
434                                 <groupId>commons-io</groupId>
435                                 <artifactId>commons-io</artifactId>
436                                 <version>2.5</version>
437                                 <scope>compile</scope>
438                         </dependency>
439                         <dependency>
440                                 <groupId>org.hamcrest</groupId>
441                                 <artifactId>hamcrest-core</artifactId>
442                                 <version>1.3</version>
443                                 <scope>test</scope>
444                         </dependency>
445                         <dependency>
446                                 <groupId>log4j</groupId>
447                                 <artifactId>log4j</artifactId>
448                                 <version>1.2.17</version>
449                                 <scope>compile</scope>
450                         </dependency>
451                         <dependency>
452                                 <groupId>org.slf4j</groupId>
453                                 <artifactId>slf4j-api</artifactId>
454                                 <version>1.7.10</version>
455                                 <scope>compile</scope>
456                         </dependency>
457                         <dependency>
458                                 <groupId>com.sun.xml.fastinfoset</groupId>
459                                 <artifactId>FastInfoset</artifactId>
460                                 <version>1.2.13</version>
461                                 <scope>compile</scope>
462                         </dependency>
463                 </dependencies>
464         </dependencyManagement>
465 </project>