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