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