48535570816eecbad3fd934832d89157686be36c
[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.1.7-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         <mariadb.connector.version>2.4.4</mariadb.connector.version>
69         <fasterxml.jackson.version>2.10.5</fasterxml.jackson.version>
70         <velocity.version>2.0</velocity.version>
71         <!-- Using dmaapClient 1.1.5 as SLI needs java package as com.att.nsa.mr and dmaapClient 1.1.12 has org.onap.dmaap.mr -->
72         <dmaap.listener.version>1.1.5</dmaap.listener.version>
73         <sdc.client.version>1.4.1</sdc.client.version>
74         <sdc.tosca.version>1.6.5</sdc.tosca.version>
75
76         <dependency-list.file>direct-dependencies.txt</dependency-list.file>
77     </properties>
78
79     <dependencyManagement>
80         <dependencies>
81             <dependency>
82                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
83                 <artifactId>sdc-distribution-client</artifactId>
84                 <version>${sdc.client.version}</version>
85                 <scope>compile</scope>
86             </dependency>
87             <dependency>
88                 <groupId>org.onap.sdc.sdc-tosca</groupId>
89                 <artifactId>sdc-tosca</artifactId>
90                 <version>${sdc.tosca.version}</version>
91                 <scope>compile</scope>
92             </dependency>
93             <dependency>
94                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
95                 <artifactId>dmaapClient</artifactId>
96                 <version>${dmaap.listener.version}</version>
97             </dependency>
98             <dependency>
99                 <groupId>org.slf4j</groupId>
100                 <artifactId>slf4j-api</artifactId>
101                 <version>1.7.28</version>
102             </dependency>
103             <dependency>
104                 <groupId>org.apache.logging.log4j</groupId>
105                 <artifactId>log4j-slf4j-impl</artifactId>
106                 <version>2.11.2</version>
107             </dependency>
108             <dependency>
109                 <groupId>com.fasterxml.jackson.core</groupId>
110                 <artifactId>jackson-core</artifactId>
111                 <version>${fasterxml.jackson.version}</version>
112             </dependency>
113             <dependency>
114                 <groupId>com.fasterxml.jackson.core</groupId>
115                 <artifactId>jackson-databind</artifactId>
116                 <version>${fasterxml.jackson.version}</version>
117             </dependency>
118             <dependency>
119                 <groupId>com.fasterxml.jackson.core</groupId>
120                 <artifactId>jackson-annotations</artifactId>
121                 <version>${fasterxml.jackson.version}</version>
122             </dependency>
123             <dependency>
124                 <groupId>org.apache.velocity</groupId>
125                 <artifactId>velocity-engine-core</artifactId>
126                 <version>${velocity.version}</version>
127             </dependency>
128             <dependency>
129                 <groupId>junit</groupId>
130                 <artifactId>junit</artifactId>
131                 <version>4.12</version>
132                 <scope>test</scope>
133             </dependency>
134             <dependency>
135                 <groupId>org.mockito</groupId>
136                 <artifactId>mockito-core</artifactId>
137                 <version>1.10.19</version>
138                 <scope>test</scope>
139             </dependency>
140             <dependency>
141                 <groupId>org.testng</groupId>
142                 <artifactId>testng</artifactId>
143                 <version>6.11</version>
144                 <scope>test</scope>
145             </dependency>
146             <dependency>
147                 <groupId>ch.vorburger.mariaDB4j</groupId>
148                 <artifactId>mariaDB4j</artifactId>
149                 <version>2.2.3</version>
150                 <scope>test</scope>
151             </dependency>
152         </dependencies>
153     </dependencyManagement>
154
155     <repositories>
156         <repository>
157             <id>onap-public</id>
158             <url>${onap.nexus.public-url}</url>
159             <releases>
160                 <enabled>true</enabled>
161                 <updatePolicy>never</updatePolicy>
162             </releases>
163             <snapshots>
164                 <enabled>true</enabled>
165                 <updatePolicy>always</updatePolicy>
166             </snapshots>
167         </repository>
168         <repository>
169             <id>onap-staging</id>
170             <url>${onap.nexus.staging-url}</url>
171             <releases>
172                 <enabled>true</enabled>
173                 <updatePolicy>never</updatePolicy>
174             </releases>
175             <snapshots>
176                 <enabled>true</enabled>
177                 <updatePolicy>always</updatePolicy>
178             </snapshots>
179         </repository>
180         <repository>
181             <id>ecomp-release</id>
182             <name>onap-repository-releases</name>
183             <url>${onap.nexus.release-url}</url>
184             <releases>
185                 <enabled>true</enabled>
186                 <updatePolicy>never</updatePolicy>
187             </releases>
188             <snapshots>
189                 <enabled>false</enabled>
190             </snapshots>
191         </repository>
192         <repository>
193             <id>ecomp-snapshot</id>
194             <name>onap-repository-snapshots</name>
195             <url>${onap.nexus.snapshot-url}</url>
196             <releases>
197                 <enabled>false</enabled>
198             </releases>
199             <snapshots>
200                 <enabled>true</enabled>
201             </snapshots>
202         </repository>
203     </repositories>
204     <pluginRepositories>
205         <pluginRepository>
206             <id>onap-public</id>
207             <url>${onap.nexus.public-url}</url>
208             <releases>
209                 <enabled>true</enabled>
210             </releases>
211             <snapshots>
212                 <enabled>true</enabled>
213             </snapshots>
214         </pluginRepository>
215         <pluginRepository>
216             <id>onap-staging</id>
217             <url>${onap.nexus.staging-url}</url>
218             <releases>
219                 <enabled>true</enabled>
220             </releases>
221             <snapshots>
222                 <enabled>true</enabled>
223             </snapshots>
224         </pluginRepository>
225         <pluginRepository>
226             <id>onap-snapshot</id>
227             <url>${onap.nexus.snapshot-url}</url>
228             <releases>
229                 <enabled>false</enabled>
230             </releases>
231             <snapshots>
232                 <enabled>true</enabled>
233             </snapshots>
234         </pluginRepository>
235         <!-- Black Duck plugin dependencies -->
236         <pluginRepository>
237             <id>JCenter</id>
238             <name>JCenter Repository</name>
239             <url>http://jcenter.bintray.com</url>
240         </pluginRepository>
241         <pluginRepository>
242             <id>Restlet</id>
243             <name>Restlet Repository</name>
244             <url>http://maven.restlet.com</url>
245         </pluginRepository>
246     </pluginRepositories>
247
248     <build>
249         <pluginManagement>
250             <plugins>
251                 <plugin>
252                     <groupId>org.apache.maven.plugins</groupId>
253                     <artifactId>maven-deploy-plugin</artifactId>
254                     <!-- This version supports the "deployAtEnd" parameter -->
255                     <version>2.8</version>
256                     <configuration>
257                         <skip/>
258                         <deployAtEnd>true</deployAtEnd>
259                     </configuration>
260                 </plugin>
261                 <plugin>
262                     <groupId>com.github.ferstl</groupId>
263                     <artifactId>depgraph-maven-plugin</artifactId>
264                     <version>3.3.0</version>
265                     <configuration>
266                         <graphFormat>text</graphFormat>
267                         <outputFileName>${dependency-list.file}</outputFileName>
268                         <outputDirectory>${project.basedir}</outputDirectory>
269                         <transitiveExcludes>*</transitiveExcludes>
270                         <showVersions>true</showVersions>
271                         <showGroupIds>true</showGroupIds>
272                     </configuration>
273                 </plugin>
274             </plugins>
275         </pluginManagement>
276         <plugins>
277             <!-- Jacoco / Sonar -->
278             <plugin>
279                 <groupId>org.jacoco</groupId>
280                 <artifactId>jacoco-maven-plugin</artifactId>
281                 <version>${jacoco.version}</version>
282                 <executions>
283                     <execution>
284                         <id>pre-unit-test</id>
285                         <goals>
286                             <goal>prepare-agent</goal>
287                         </goals>
288                         <configuration>
289                             <!-- Sets the path to the file which contains the execution data. -->
290                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
291                             <!-- Sets the name of the property containing the settings for JaCoCo
292                                                                  runtime agent. -->
293                             <propertyName>surefireArgLine</propertyName>
294                         </configuration>
295                     </execution>
296                     <!-- Ensures that the code coverage report for unit tests is created
297                                                  after unit tests have been run. -->
298                     <execution>
299                         <id>post-unit-test</id>
300                         <phase>test</phase>
301                         <goals>
302                             <goal>report</goal>
303                         </goals>
304                         <configuration>
305                             <!-- Sets the path to the file which contains the execution data. -->
306                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
307                             <!-- Sets the output directory for the code coverage report. -->
308                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
309                         </configuration>
310                     </execution>
311                     <execution>
312                         <id>pre-integration-test</id>
313                         <phase>pre-integration-test</phase>
314                         <goals>
315                             <goal>prepare-agent</goal>
316                         </goals>
317                         <configuration>
318                             <!-- Sets the path to the file which contains the execution data. -->
319                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
320                             <!-- Sets the name of the property containing the settings for JaCoCo
321                                                                  runtime agent. -->
322                             <propertyName>failsafeArgLine</propertyName>
323                         </configuration>
324                     </execution>
325                     <!-- Ensures that the code coverage report for integration tests after
326                                                  integration tests have been run. -->
327                     <execution>
328                         <id>post-integration-test</id>
329                         <phase>post-integration-test</phase>
330                         <goals>
331                             <goal>report</goal>
332                         </goals>
333                         <configuration>
334                             <!-- Sets the path to the file which contains the execution data. -->
335                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
336                             <!-- Sets the output directory for the code coverage report. -->
337                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
338                         </configuration>
339                     </execution>
340                     <execution>
341                         <id>default-prepare-agent</id>
342                         <goals>
343                             <goal>prepare-agent</goal>
344                         </goals>
345                     </execution>
346                     <execution>
347                         <id>default-report</id>
348                         <phase>prepare-package</phase>
349                         <goals>
350                             <goal>report</goal>
351                         </goals>
352                     </execution>
353                     <execution>
354                         <id>default-check</id>
355                         <goals>
356                             <goal>check</goal>
357                         </goals>
358                         <configuration>
359                             <rules>
360                                 <rule>
361                                     <element>PACKAGE</element>
362                                     <limits>
363                                         <limit>
364                                             <counter>COMPLEXITY</counter>
365                                             <value>COVEREDRATIO</value>
366                                             <minimum>0.0</minimum>
367                                         </limit>
368                                     </limits>
369                                 </rule>
370                             </rules>
371                         </configuration>
372                     </execution>
373                 </executions>
374             </plugin>
375             <plugin>
376                 <groupId>org.codehaus.mojo</groupId>
377                 <artifactId>versions-maven-plugin</artifactId>
378                 <version>2.5</version>
379                 <configuration>
380                     <processAllModules>true</processAllModules>
381                 </configuration>
382             </plugin>
383         </plugins>
384     </build>
385
386     <profiles>
387         <profile>
388             <id>sonar-jacoco-aggregate</id>
389             <activation>
390                 <property>
391                     <name>onap.jacoco.aggregateFile</name>
392                 </property>
393             </activation>
394             <build>
395                 <plugins>
396                     <plugin>
397                         <groupId>org.jacoco</groupId>
398                         <artifactId>jacoco-maven-plugin</artifactId>
399                         <executions>
400                             <execution>
401                                 <id>merge</id>
402                                 <goals>
403                                     <goal>merge</goal>
404                                 </goals>
405                                 <phase>generate-resources</phase>
406                                 <configuration>
407                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
408                                     <fileSets>
409                                         <fileSet>
410                                             <directory>${project.basedir}</directory>
411                                             <includes>
412                                                 <include>**/target/code-coverage/*.exec</include>
413                                             </includes>
414                                         </fileSet>
415                                     </fileSets>
416                                 </configuration>
417                             </execution>
418                         </executions>
419                     </plugin>
420                 </plugins>
421             </build>
422         </profile>
423     </profiles>
424 </project>