da8c76eb3a465a8e41a4e1ca94f9f48072166df2
[ccsdk/parent.git] / standalone / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>3.1.0</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.parent</groupId>
13     <artifactId>standalone-parent</artifactId>
14     <version>2.3.2-SNAPSHOT</version>
15     <packaging>pom</packaging>
16
17     <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
18     <description>Root POM to be used in place of oparent for CCSDK based projects</description>
19     <url>http://wiki.onap.org</url>
20     <organization>
21         <name>ONAP</name>
22     </organization>
23
24     <issueManagement>
25         <system>JIRA</system>
26         <url>https://jira.onap.org/</url>
27     </issueManagement>
28     <distributionManagement>
29         <repository>
30             <id>ecomp-releases</id>
31             <url>${onap.nexus.release-url}</url>
32         </repository>
33         <snapshotRepository>
34             <id>ecomp-snapshots</id>
35             <url>${onap.nexus.snapshot-url}</url>
36         </snapshotRepository>
37     </distributionManagement>
38
39     <properties>
40         <!-- Sonar properties -->
41         <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
42         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
43         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
44         <!-- Default Sonar configuration -->
45         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
46         <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
47         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
48
49         <!-- Jacoco properties -->
50         <jacoco.version>0.8.5</jacoco.version>
51         <!-- ONAP repositories -->
52         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
53         <onap.nexus.host>nexus.onap.org</onap.nexus.host>
54         <onap.nexus.port>443</onap.nexus.port>
55         <onap.nexus.protocol>https</onap.nexus.protocol>
56         <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
57         <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
58         <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
59         <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
60         <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
61         <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
62
63         <java.version.source>1.8</java.version.source>
64         <java.version.target>1.8</java.version.target>
65         <bundle.plugin.version>2.5.0</bundle.plugin.version>
66         <checkstyle.skip>true</checkstyle.skip>
67
68         <log4j.version>2.15.0</log4j.version>
69         <log4j2.version>2.15.0</log4j2.version>
70         <mariadb.connector.version>2.7.2</mariadb.connector.version>
71         <fasterxml.jackson.version>2.12.4</fasterxml.jackson.version>
72         <velocity.version>2.3</velocity.version>
73         <dmaap.listener.version>1.1.12</dmaap.listener.version>
74         <sdc.client.version>1.4.1</sdc.client.version>
75         <sdc.tosca.version>1.6.5</sdc.tosca.version>
76
77         <dependency-list.file>direct-dependencies.txt</dependency-list.file>
78     </properties>
79
80     <dependencyManagement>
81         <dependencies>
82             <dependency>
83                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
84                 <artifactId>sdc-distribution-client</artifactId>
85                 <version>${sdc.client.version}</version>
86                 <scope>compile</scope>
87             </dependency>
88             <dependency>
89                 <groupId>org.onap.sdc.sdc-tosca</groupId>
90                 <artifactId>sdc-tosca</artifactId>
91                 <version>${sdc.tosca.version}</version>
92                 <scope>compile</scope>
93             </dependency>
94             <dependency>
95                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
96                 <artifactId>dmaapClient</artifactId>
97                 <version>${dmaap.listener.version}</version>
98             </dependency>
99             <dependency>
100                 <groupId>org.slf4j</groupId>
101                 <artifactId>slf4j-api</artifactId>
102                 <version>1.7.29</version>
103             </dependency>
104             <dependency>
105                 <groupId>org.apache.logging.log4j</groupId>
106                 <artifactId>log4j-slf4j-impl</artifactId>
107                 <version>2.15.0</version>
108             </dependency>
109             <dependency>
110                 <groupId>com.fasterxml.jackson.core</groupId>
111                 <artifactId>jackson-core</artifactId>
112                 <version>${fasterxml.jackson.version}</version>
113             </dependency>
114             <dependency>
115                 <groupId>com.fasterxml.jackson.core</groupId>
116                 <artifactId>jackson-databind</artifactId>
117                 <version>${fasterxml.jackson.version}</version>
118             </dependency>
119             <dependency>
120                 <groupId>com.fasterxml.jackson.core</groupId>
121                 <artifactId>jackson-annotations</artifactId>
122                 <version>${fasterxml.jackson.version}</version>
123             </dependency>
124             <dependency>
125                 <groupId>org.apache.velocity</groupId>
126                 <artifactId>velocity-engine-core</artifactId>
127                 <version>${velocity.version}</version>
128             </dependency>
129             <dependency>
130                 <groupId>junit</groupId>
131                 <artifactId>junit</artifactId>
132                 <version>4.13.2</version>
133                 <scope>test</scope>
134             </dependency>
135             <dependency>
136                 <groupId>org.mockito</groupId>
137                 <artifactId>mockito-core</artifactId>
138                 <version>1.10.19</version>
139                 <scope>test</scope>
140             </dependency>
141             <dependency>
142                 <groupId>org.testng</groupId>
143                 <artifactId>testng</artifactId>
144                 <version>6.11</version>
145                 <scope>test</scope>
146             </dependency>
147             <dependency>
148                 <groupId>ch.vorburger.mariaDB4j</groupId>
149                 <artifactId>mariaDB4j</artifactId>
150                 <version>2.2.3</version>
151                 <scope>test</scope>
152             </dependency>
153         </dependencies>
154     </dependencyManagement>
155
156     <repositories>
157         <repository>
158             <id>onap-public</id>
159             <url>${onap.nexus.public-url}</url>
160             <releases>
161                 <enabled>true</enabled>
162                 <updatePolicy>never</updatePolicy>
163             </releases>
164             <snapshots>
165                 <enabled>true</enabled>
166                 <updatePolicy>always</updatePolicy>
167             </snapshots>
168         </repository>
169         <repository>
170             <id>onap-staging</id>
171             <url>${onap.nexus.staging-url}</url>
172             <releases>
173                 <enabled>true</enabled>
174                 <updatePolicy>never</updatePolicy>
175             </releases>
176             <snapshots>
177                 <enabled>true</enabled>
178                 <updatePolicy>always</updatePolicy>
179             </snapshots>
180         </repository>
181         <repository>
182             <id>ecomp-release</id>
183             <name>onap-repository-releases</name>
184             <url>${onap.nexus.release-url}</url>
185             <releases>
186                 <enabled>true</enabled>
187                 <updatePolicy>never</updatePolicy>
188             </releases>
189             <snapshots>
190                 <enabled>false</enabled>
191             </snapshots>
192         </repository>
193         <repository>
194             <id>ecomp-snapshot</id>
195             <name>onap-repository-snapshots</name>
196             <url>${onap.nexus.snapshot-url}</url>
197             <releases>
198                 <enabled>false</enabled>
199             </releases>
200             <snapshots>
201                 <enabled>true</enabled>
202             </snapshots>
203         </repository>
204     </repositories>
205     <pluginRepositories>
206         <pluginRepository>
207             <id>onap-public</id>
208             <url>${onap.nexus.public-url}</url>
209             <releases>
210                 <enabled>true</enabled>
211             </releases>
212             <snapshots>
213                 <enabled>true</enabled>
214             </snapshots>
215         </pluginRepository>
216         <pluginRepository>
217             <id>onap-staging</id>
218             <url>${onap.nexus.staging-url}</url>
219             <releases>
220                 <enabled>true</enabled>
221             </releases>
222             <snapshots>
223                 <enabled>true</enabled>
224             </snapshots>
225         </pluginRepository>
226         <pluginRepository>
227             <id>onap-snapshot</id>
228             <url>${onap.nexus.snapshot-url}</url>
229             <releases>
230                 <enabled>false</enabled>
231             </releases>
232             <snapshots>
233                 <enabled>true</enabled>
234             </snapshots>
235         </pluginRepository>
236         <!-- Black Duck plugin dependencies -->
237         <pluginRepository>
238             <id>JCenter</id>
239             <name>JCenter Repository</name>
240             <url>http://jcenter.bintray.com</url>
241         </pluginRepository>
242         <pluginRepository>
243             <id>Restlet</id>
244             <name>Restlet Repository</name>
245             <url>http://maven.restlet.com</url>
246         </pluginRepository>
247     </pluginRepositories>
248
249     <build>
250         <pluginManagement>
251             <plugins>
252                 <plugin>
253                     <groupId>org.apache.maven.plugins</groupId>
254                     <artifactId>maven-deploy-plugin</artifactId>
255                     <!-- This version supports the "deployAtEnd" parameter -->
256                     <version>2.8</version>
257                     <configuration>
258                         <skip/>
259                         <deployAtEnd>true</deployAtEnd>
260                     </configuration>
261                 </plugin>
262                 <plugin>
263                     <groupId>com.github.ferstl</groupId>
264                     <artifactId>depgraph-maven-plugin</artifactId>
265                     <version>3.3.0</version>
266                     <configuration>
267                         <graphFormat>text</graphFormat>
268                         <outputFileName>${dependency-list.file}</outputFileName>
269                         <outputDirectory>${project.basedir}</outputDirectory>
270                         <transitiveExcludes>*</transitiveExcludes>
271                         <showVersions>true</showVersions>
272                         <showGroupIds>true</showGroupIds>
273                     </configuration>
274                 </plugin>
275             </plugins>
276         </pluginManagement>
277         <plugins>
278             <!-- Jacoco / Sonar -->
279             <plugin>
280                 <groupId>org.jacoco</groupId>
281                 <artifactId>jacoco-maven-plugin</artifactId>
282                 <version>${jacoco.version}</version>
283                 <executions>
284                     <execution>
285                         <id>pre-unit-test</id>
286                         <goals>
287                             <goal>prepare-agent</goal>
288                         </goals>
289                         <configuration>
290                             <!-- Sets the path to the file which contains the execution data. -->
291                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
292                             <!-- Sets the name of the property containing the settings for JaCoCo
293                                                                  runtime agent. -->
294                             <propertyName>surefireArgLine</propertyName>
295                         </configuration>
296                     </execution>
297                     <!-- Ensures that the code coverage report for unit tests is created
298                                                  after unit tests have been run. -->
299                     <execution>
300                         <id>post-unit-test</id>
301                         <phase>test</phase>
302                         <goals>
303                             <goal>report</goal>
304                         </goals>
305                         <configuration>
306                             <!-- Sets the path to the file which contains the execution data. -->
307                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
308                             <!-- Sets the output directory for the code coverage report. -->
309                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
310                         </configuration>
311                     </execution>
312                     <execution>
313                         <id>pre-integration-test</id>
314                         <phase>pre-integration-test</phase>
315                         <goals>
316                             <goal>prepare-agent</goal>
317                         </goals>
318                         <configuration>
319                             <!-- Sets the path to the file which contains the execution data. -->
320                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
321                             <!-- Sets the name of the property containing the settings for JaCoCo
322                                                                  runtime agent. -->
323                             <propertyName>failsafeArgLine</propertyName>
324                         </configuration>
325                     </execution>
326                     <!-- Ensures that the code coverage report for integration tests after
327                                                  integration tests have been run. -->
328                     <execution>
329                         <id>post-integration-test</id>
330                         <phase>post-integration-test</phase>
331                         <goals>
332                             <goal>report</goal>
333                         </goals>
334                         <configuration>
335                             <!-- Sets the path to the file which contains the execution data. -->
336                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
337                             <!-- Sets the output directory for the code coverage report. -->
338                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
339                         </configuration>
340                     </execution>
341                     <execution>
342                         <id>default-prepare-agent</id>
343                         <goals>
344                             <goal>prepare-agent</goal>
345                         </goals>
346                     </execution>
347                     <execution>
348                         <id>default-report</id>
349                         <phase>prepare-package</phase>
350                         <goals>
351                             <goal>report</goal>
352                         </goals>
353                     </execution>
354                     <execution>
355                         <id>default-check</id>
356                         <goals>
357                             <goal>check</goal>
358                         </goals>
359                         <configuration>
360                             <rules>
361                                 <rule>
362                                     <element>PACKAGE</element>
363                                     <limits>
364                                         <limit>
365                                             <counter>COMPLEXITY</counter>
366                                             <value>COVEREDRATIO</value>
367                                             <minimum>0.0</minimum>
368                                         </limit>
369                                     </limits>
370                                 </rule>
371                             </rules>
372                         </configuration>
373                     </execution>
374                 </executions>
375             </plugin>
376             <plugin>
377                 <groupId>org.codehaus.mojo</groupId>
378                 <artifactId>versions-maven-plugin</artifactId>
379                 <version>2.5</version>
380                 <configuration>
381                     <processAllModules>true</processAllModules>
382                 </configuration>
383             </plugin>
384         </plugins>
385     </build>
386
387     <profiles>
388         <profile>
389             <id>sonar-jacoco-aggregate</id>
390             <activation>
391                 <property>
392                     <name>onap.jacoco.aggregateFile</name>
393                 </property>
394             </activation>
395             <build>
396                 <plugins>
397                     <plugin>
398                         <groupId>org.jacoco</groupId>
399                         <artifactId>jacoco-maven-plugin</artifactId>
400                         <executions>
401                             <execution>
402                                 <id>merge</id>
403                                 <goals>
404                                     <goal>merge</goal>
405                                 </goals>
406                                 <phase>generate-resources</phase>
407                                 <configuration>
408                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
409                                     <fileSets>
410                                         <fileSet>
411                                             <directory>${project.basedir}</directory>
412                                             <includes>
413                                                 <include>**/target/code-coverage/*.exec</include>
414                                             </includes>
415                                         </fileSet>
416                                     </fileSets>
417                                 </configuration>
418                             </execution>
419                         </executions>
420                     </plugin>
421                 </plugins>
422             </build>
423         </profile>
424     </profiles>
425 </project>