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