Refactoring onap nexus url's and related section
[ccsdk/parent.git] / oparent / 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>oparent</artifactId>
14     <version>2.1.5-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
29     <properties>
30         <!-- Sonar properties -->
31         <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
32         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
33         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
34         <!-- Default Sonar configuration -->
35         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
36         <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
37         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
38
39         <!-- Jacoco properties -->
40         <jacoco.version>0.8.5</jacoco.version>
41         <!-- ONAP repositories -->
42         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
43         <onap.nexus.host>nexus.onap.org</onap.nexus.host>
44         <onap.nexus.port>443</onap.nexus.port>
45         <onap.nexus.protocol>https</onap.nexus.protocol>
46         <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
47         <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
48         <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
49         <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
50         <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
51         <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
52
53         <java.version>11</java.version>
54         <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
55         <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
56         <bundle.plugin.version>4.2.1</bundle.plugin.version>
57         <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
58         <checkstyle.skip>true</checkstyle.skip>
59
60         <!-- CCSDK component versions -->
61         <ccsdk.cds.version>1.1.4</ccsdk.cds.version>
62         <ccsdk.features.version>1.1.5-SNAPSHOT</ccsdk.features.version>
63         <ccsdk.sli.version>1.2.3-SNAPSHOT</ccsdk.sli.version>
64         <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
65         <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
66         <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
67         <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
68         <ccsdk.distribution.version>1.1.6-SNAPSHOT</ccsdk.distribution.version>
69
70         <mariadb.connector.version>2.1.1</mariadb.connector.version>
71         <fasterxml.jackson.version>2.10.0</fasterxml.jackson.version>
72         <velocity.version>2.0</velocity.version>
73
74         <dmaap.listener.version>1.1.5</dmaap.listener.version>
75         <sdc.client.version>1.4.1</sdc.client.version>
76         <sdc.tosca.version>1.6.5</sdc.tosca.version>
77
78         <antlr.version>4.8-1</antlr.version>
79     </properties>
80
81     <dependencyManagement>
82         <dependencies>
83             <dependency>
84                 <groupId>org.onap.ccsdk.parent</groupId>
85                 <artifactId>dependencies-bom</artifactId>
86                 <version>2.1.5-SNAPSHOT</version>
87                 <type>pom</type>
88                 <scope>import</scope>
89             </dependency>
90             <dependency>
91                 <groupId>org.springframework.boot</groupId>
92                 <artifactId>spring-boot-dependencies</artifactId>
93                 <version>2.3.8.RELEASE</version>
94                 <type>pom</type>
95                 <scope>import</scope>
96             </dependency>
97
98             <dependency>
99                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
100                 <artifactId>sdc-distribution-client</artifactId>
101                 <version>${sdc.client.version}</version>
102                 <scope>compile</scope>
103             </dependency>
104             <dependency>
105                 <groupId>org.onap.sdc.sdc-tosca</groupId>
106                 <artifactId>sdc-tosca</artifactId>
107                 <version>${sdc.tosca.version}</version>
108                 <scope>compile</scope>
109             </dependency>
110             <dependency>
111                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
112                 <artifactId>dmaapClient</artifactId>
113                 <version>${dmaap.listener.version}</version>
114             </dependency>
115         </dependencies>
116     </dependencyManagement>
117     <dependencies>
118         <dependency>
119             <groupId>javax.annotation</groupId>
120             <artifactId>javax.annotation-api</artifactId>
121             <version>1.3.2</version>
122         </dependency>
123         <dependency>
124             <groupId>junit</groupId>
125             <artifactId>junit</artifactId>
126             <scope>test</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.slf4j</groupId>
130             <artifactId>slf4j-api</artifactId>
131             <scope>provided</scope>
132         </dependency>
133         <dependency>
134             <groupId>org.slf4j</groupId>
135             <artifactId>slf4j-simple</artifactId>
136             <scope>test</scope>
137         </dependency>
138
139         <dependency>
140             <groupId>org.mockito</groupId>
141             <artifactId>mockito-core</artifactId>
142             <version>1.10.19</version>
143             <scope>test</scope>
144         </dependency>
145         <dependency>
146             <groupId>org.testng</groupId>
147             <artifactId>testng</artifactId>
148             <version>6.11</version>
149             <scope>test</scope>
150         </dependency>
151     </dependencies>
152
153     <repositories>
154         <repository>
155             <id>onap-public</id>
156             <url>\${onap.nexus.public-url}</url>
157             <releases>
158                 <enabled>true</enabled>
159                 <updatePolicy>never</updatePolicy>
160             </releases>
161             <snapshots>
162                 <enabled>true</enabled>
163                 <updatePolicy>always</updatePolicy>
164             </snapshots>
165         </repository>
166         <repository>
167             <id>onap-staging</id>
168             <url>\${onap.nexus.staging-url}</url>
169             <releases>
170                 <enabled>true</enabled>
171                 <updatePolicy>never</updatePolicy>
172             </releases>
173             <snapshots>
174                 <enabled>true</enabled>
175                 <updatePolicy>always</updatePolicy>
176             </snapshots>
177         </repository>
178         <repository>
179             <id>ecomp-release</id>
180             <name>onap-repository-releases</name>
181             <url>\${onap.nexus.release-url}</url>
182             <releases>
183                 <enabled>true</enabled>
184                 <updatePolicy>never</updatePolicy>
185             </releases>
186             <snapshots>
187                 <enabled>false</enabled>
188             </snapshots>
189         </repository>
190         <repository>
191             <id>ecomp-snapshot</id>
192             <name>onap-repository-snapshots</name>
193             <url>\${onap.nexus.snapshot-url}</url>
194             <releases>
195                 <enabled>false</enabled>
196             </releases>
197             <snapshots>
198                 <enabled>true</enabled>
199             </snapshots>
200         </repository>
201     </repositories>
202     <pluginRepositories>
203         <pluginRepository>
204             <id>onap-public</id>
205             <url>\${onap.nexus.public-url}</url>
206             <releases>
207                 <enabled>true</enabled>
208             </releases>
209             <snapshots>
210                 <enabled>true</enabled>
211             </snapshots>
212         </pluginRepository>
213         <pluginRepository>
214             <id>onap-staging</id>
215             <url>\${onap.nexus.staging-url}</url>
216             <releases>
217                 <enabled>true</enabled>
218             </releases>
219             <snapshots>
220                 <enabled>true</enabled>
221             </snapshots>
222         </pluginRepository>
223         <pluginRepository>
224             <id>onap-snapshot</id>
225             <url>\${onap.nexus.snapshot-url}</url>
226             <releases>
227                 <enabled>false</enabled>
228             </releases>
229             <snapshots>
230                 <enabled>true</enabled>
231             </snapshots>
232         </pluginRepository>
233         <!-- Black Duck plugin dependencies -->
234         <pluginRepository>
235             <id>JCenter</id>
236             <name>JCenter Repository</name>
237             <url>http://jcenter.bintray.com</url>
238         </pluginRepository>
239         <pluginRepository>
240             <id>Restlet</id>
241             <name>Restlet Repository</name>
242             <url>http://maven.restlet.com</url>
243         </pluginRepository>
244     </pluginRepositories>
245
246     <build>
247         <pluginManagement>
248             <plugins>
249                 <plugin>
250                     <groupId>org.apache.maven.plugins</groupId>
251                     <artifactId>maven-deploy-plugin</artifactId>
252                     <!-- This version supports the "deployAtEnd" parameter -->
253                     <version>2.8</version>
254                     <configuration>
255                         <skip/>
256                         <deployAtEnd>true</deployAtEnd>
257                     </configuration>
258                  </plugin>
259                  <plugin>
260                     <groupId>org.apache.maven.plugins</groupId>
261                     <artifactId>maven-compiler-plugin</artifactId>
262                     <version>${maven-compiler-plugin.version}</version>
263                     <configuration>
264                         <release>${java.version}</release>
265                         <!--explicitly remove source and target-->
266                         <source combine.self="override"/>
267                         <target combine.self="override"/>
268                     </configuration>
269                 </plugin>
270                 <plugin>
271                     <groupId>org.apache.maven.plugins</groupId>
272                     <artifactId>maven-resources-plugin</artifactId>
273                     <version>3.2.0</version>
274                 </plugin>
275                 <plugin>
276                     <groupId>org.antlr</groupId>
277                     <artifactId>antlr4-maven-plugin</artifactId>
278                     <version>4.7.2</version>
279                 </plugin>
280             </plugins>
281         </pluginManagement>
282         <plugins>
283             <!-- Jacoco / Sonar -->
284             <plugin>
285                 <groupId>org.jacoco</groupId>
286                 <artifactId>jacoco-maven-plugin</artifactId>
287                 <version>${jacoco.version}</version>
288                 <executions>
289                     <execution>
290                         <id>pre-unit-test</id>
291                         <goals>
292                             <goal>prepare-agent</goal>
293                         </goals>
294                         <configuration>
295                             <!-- Sets the path to the file which contains the execution data. -->
296                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
297                             <!-- Sets the name of the property containing the settings for JaCoCo
298                                                                  runtime agent. -->
299                             <propertyName>surefireArgLine</propertyName>
300                         </configuration>
301                     </execution>
302                     <!-- Ensures that the code coverage report for unit tests is created
303                                                  after unit tests have been run. -->
304                     <execution>
305                         <id>post-unit-test</id>
306                         <phase>test</phase>
307                         <goals>
308                             <goal>report</goal>
309                         </goals>
310                         <configuration>
311                             <!-- Sets the path to the file which contains the execution data. -->
312                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
313                             <!-- Sets the output directory for the code coverage report. -->
314                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
315                         </configuration>
316                     </execution>
317                     <execution>
318                         <id>pre-integration-test</id>
319                         <phase>pre-integration-test</phase>
320                         <goals>
321                             <goal>prepare-agent</goal>
322                         </goals>
323                         <configuration>
324                             <!-- Sets the path to the file which contains the execution data. -->
325                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
326                             <!-- Sets the name of the property containing the settings for JaCoCo
327                                                                  runtime agent. -->
328                             <propertyName>failsafeArgLine</propertyName>
329                         </configuration>
330                     </execution>
331                     <!-- Ensures that the code coverage report for integration tests after
332                                                  integration tests have been run. -->
333                     <execution>
334                         <id>post-integration-test</id>
335                         <phase>post-integration-test</phase>
336                         <goals>
337                             <goal>report</goal>
338                         </goals>
339                         <configuration>
340                             <!-- Sets the path to the file which contains the execution data. -->
341                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
342                             <!-- Sets the output directory for the code coverage report. -->
343                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
344                         </configuration>
345                     </execution>
346                     <execution>
347                         <id>default-prepare-agent</id>
348                         <goals>
349                             <goal>prepare-agent</goal>
350                         </goals>
351                     </execution>
352                     <execution>
353                         <id>default-report</id>
354                         <phase>prepare-package</phase>
355                         <goals>
356                             <goal>report</goal>
357                         </goals>
358                     </execution>
359                     <execution>
360                         <id>default-check</id>
361                         <goals>
362                             <goal>check</goal>
363                         </goals>
364                         <configuration>
365                             <rules>
366                                 <rule>
367                                     <element>PACKAGE</element>
368                                     <limits>
369                                         <limit>
370                                             <counter>COMPLEXITY</counter>
371                                             <value>COVEREDRATIO</value>
372                                             <minimum>0.0</minimum>
373                                         </limit>
374                                     </limits>
375                                 </rule>
376                             </rules>
377                         </configuration>
378                     </execution>
379                 </executions>
380             </plugin>
381             <plugin>
382                 <groupId>org.codehaus.mojo</groupId>
383                 <artifactId>versions-maven-plugin</artifactId>
384                 <version>2.5</version>
385                 <configuration>
386                     <processAllModules>true</processAllModules>
387                 </configuration>
388             </plugin>
389             <plugin>
390                 <groupId>org.apache.felix</groupId>
391                 <artifactId>maven-bundle-plugin</artifactId>
392                 <version>${bundle.plugin.version}</version>
393                 <extensions>true</extensions>
394             </plugin>
395             <plugin>
396                 <groupId>org.eclipse.m2e</groupId>
397                 <artifactId>lifecycle-mapping</artifactId>
398                 <version>1.0.0</version>
399                 <configuration>
400                     <lifecycleMappingMetadata>
401                         <pluginExecutions>
402                             <pluginExecution>
403                                 <pluginExecutionFilter>
404                                     <groupId>org.apache.felix</groupId>
405                                     <artifactId>maven-bundle-plugin</artifactId>
406                                     <versionRange>[1.0,)</versionRange>
407                                     <goals>
408                                         <goal>manifest</goal>
409                                     </goals>
410                                 </pluginExecutionFilter>
411                                 <action>
412                                     <execute />
413                                     <ignore />
414                                 </action>
415                             </pluginExecution>
416                         </pluginExecutions>
417                     </lifecycleMappingMetadata>
418                 </configuration>
419             </plugin>
420         </plugins>
421     </build>
422
423     <profiles>
424         <profile>
425             <id>sonar-jacoco-aggregate</id>
426             <activation>
427                 <property>
428                     <name>onap.jacoco.aggregateFile</name>
429                 </property>
430             </activation>
431             <build>
432                 <plugins>
433                     <plugin>
434                         <groupId>org.jacoco</groupId>
435                         <artifactId>jacoco-maven-plugin</artifactId>
436                         <executions>
437                             <execution>
438                                 <id>merge</id>
439                                 <goals>
440                                     <goal>merge</goal>
441                                 </goals>
442                                 <phase>generate-resources</phase>
443                                 <configuration>
444                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
445                                     <fileSets>
446                                         <fileSet>
447                                             <directory>${project.basedir}</directory>
448                                             <includes>
449                                                 <include>**/target/code-coverage/*.exec</include>
450                                             </includes>
451                                         </fileSet>
452                                     </fileSets>
453                                 </configuration>
454                             </execution>
455                         </executions>
456                     </plugin>
457                 </plugins>
458             </build>
459         </profile>
460     </profiles>
461 </project>