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.2.0</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.parent</groupId>
13     <artifactId>oparent</artifactId>
14     <version>2.2.0-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.2.0-SNAPSHOT</ccsdk.cds.version>
62         <ccsdk.features.version>1.2.0-SNAPSHOT</ccsdk.features.version>
63         <ccsdk.sli.version>1.3.0-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.1-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.2.0-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             <dependency>
98                  <groupId>org.antlr</groupId>
99                  <artifactId>antlr4-runtime</artifactId>
100                  <version>${antlr.version}</version>
101             </dependency>
102             <dependency>
103                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
104                 <artifactId>sdc-distribution-client</artifactId>
105                 <version>${sdc.client.version}</version>
106                 <scope>compile</scope>
107             </dependency>
108             <dependency>
109                 <groupId>org.onap.sdc.sdc-tosca</groupId>
110                 <artifactId>sdc-tosca</artifactId>
111                 <version>${sdc.tosca.version}</version>
112                 <scope>compile</scope>
113             </dependency>
114             <dependency>
115                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
116                 <artifactId>dmaapClient</artifactId>
117                 <version>${dmaap.listener.version}</version>
118             </dependency>
119         </dependencies>
120     </dependencyManagement>
121     <dependencies>
122         <dependency>
123             <groupId>javax.annotation</groupId>
124             <artifactId>javax.annotation-api</artifactId>
125             <version>1.3.2</version>
126         </dependency>
127         <dependency>
128             <groupId>junit</groupId>
129             <artifactId>junit</artifactId>
130             <scope>test</scope>
131         </dependency>
132         <dependency>
133             <groupId>org.slf4j</groupId>
134             <artifactId>slf4j-api</artifactId>
135             <scope>provided</scope>
136         </dependency>
137         <dependency>
138             <groupId>org.slf4j</groupId>
139             <artifactId>slf4j-simple</artifactId>
140             <scope>test</scope>
141         </dependency>
142
143         <dependency>
144             <groupId>org.mockito</groupId>
145             <artifactId>mockito-core</artifactId>
146             <version>1.10.19</version>
147             <scope>test</scope>
148         </dependency>
149         <dependency>
150             <groupId>org.testng</groupId>
151             <artifactId>testng</artifactId>
152             <version>6.11</version>
153             <scope>test</scope>
154         </dependency>
155     </dependencies>
156
157     <repositories>
158         <repository>
159             <id>onap-public</id>
160             <url>${onap.nexus.public-url}</url>
161             <releases>
162                 <enabled>true</enabled>
163                 <updatePolicy>never</updatePolicy>
164             </releases>
165             <snapshots>
166                 <enabled>true</enabled>
167                 <updatePolicy>always</updatePolicy>
168             </snapshots>
169         </repository>
170         <repository>
171             <id>onap-staging</id>
172             <url>${onap.nexus.staging-url}</url>
173             <releases>
174                 <enabled>true</enabled>
175                 <updatePolicy>never</updatePolicy>
176             </releases>
177             <snapshots>
178                 <enabled>true</enabled>
179                 <updatePolicy>always</updatePolicy>
180             </snapshots>
181         </repository>
182         <repository>
183             <id>ecomp-release</id>
184             <name>onap-repository-releases</name>
185             <url>${onap.nexus.release-url}</url>
186             <releases>
187                 <enabled>true</enabled>
188                 <updatePolicy>never</updatePolicy>
189             </releases>
190             <snapshots>
191                 <enabled>false</enabled>
192             </snapshots>
193         </repository>
194         <repository>
195             <id>ecomp-snapshot</id>
196             <name>onap-repository-snapshots</name>
197             <url>${onap.nexus.snapshot-url}</url>
198             <releases>
199                 <enabled>false</enabled>
200             </releases>
201             <snapshots>
202                 <enabled>true</enabled>
203             </snapshots>
204         </repository>
205     </repositories>
206     <pluginRepositories>
207         <pluginRepository>
208             <id>onap-public</id>
209             <url>${onap.nexus.public-url}</url>
210             <releases>
211                 <enabled>true</enabled>
212             </releases>
213             <snapshots>
214                 <enabled>true</enabled>
215             </snapshots>
216         </pluginRepository>
217         <pluginRepository>
218             <id>onap-staging</id>
219             <url>${onap.nexus.staging-url}</url>
220             <releases>
221                 <enabled>true</enabled>
222             </releases>
223             <snapshots>
224                 <enabled>true</enabled>
225             </snapshots>
226         </pluginRepository>
227         <pluginRepository>
228             <id>onap-snapshot</id>
229             <url>${onap.nexus.snapshot-url}</url>
230             <releases>
231                 <enabled>false</enabled>
232             </releases>
233             <snapshots>
234                 <enabled>true</enabled>
235             </snapshots>
236         </pluginRepository>
237         <!-- Black Duck plugin dependencies -->
238         <pluginRepository>
239             <id>JCenter</id>
240             <name>JCenter Repository</name>
241             <url>http://jcenter.bintray.com</url>
242         </pluginRepository>
243         <pluginRepository>
244             <id>Restlet</id>
245             <name>Restlet Repository</name>
246             <url>http://maven.restlet.com</url>
247         </pluginRepository>
248     </pluginRepositories>
249
250     <build>
251         <pluginManagement>
252             <plugins>
253                 <plugin>
254                     <groupId>org.apache.maven.plugins</groupId>
255                     <artifactId>maven-deploy-plugin</artifactId>
256                     <!-- This version supports the "deployAtEnd" parameter -->
257                     <version>2.8</version>
258                     <configuration>
259                         <skip/>
260                         <deployAtEnd>true</deployAtEnd>
261                     </configuration>
262                  </plugin>
263                  <plugin>
264                     <groupId>org.apache.maven.plugins</groupId>
265                     <artifactId>maven-compiler-plugin</artifactId>
266                     <version>${maven-compiler-plugin.version}</version>
267                     <configuration>
268                         <release>${java.version}</release>
269                         <!--explicitly remove source and target-->
270                         <source combine.self="override"/>
271                         <target combine.self="override"/>
272                     </configuration>
273                 </plugin>
274                 <plugin>
275                     <groupId>org.apache.maven.plugins</groupId>
276                     <artifactId>maven-resources-plugin</artifactId>
277                     <version>3.2.0</version>
278                 </plugin>
279                 <plugin>
280                     <groupId>org.antlr</groupId>
281                     <artifactId>antlr4-maven-plugin</artifactId>
282                     <version>${antlr.version}</version>
283                 </plugin>
284             </plugins>
285         </pluginManagement>
286         <plugins>
287             <!-- Jacoco / Sonar -->
288             <plugin>
289                 <groupId>org.jacoco</groupId>
290                 <artifactId>jacoco-maven-plugin</artifactId>
291                 <version>${jacoco.version}</version>
292                 <executions>
293                     <execution>
294                         <id>pre-unit-test</id>
295                         <goals>
296                             <goal>prepare-agent</goal>
297                         </goals>
298                         <configuration>
299                             <!-- Sets the path to the file which contains the execution data. -->
300                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
301                             <!-- Sets the name of the property containing the settings for JaCoCo
302                                                                  runtime agent. -->
303                             <propertyName>surefireArgLine</propertyName>
304                         </configuration>
305                     </execution>
306                     <!-- Ensures that the code coverage report for unit tests is created
307                                                  after unit tests have been run. -->
308                     <execution>
309                         <id>post-unit-test</id>
310                         <phase>test</phase>
311                         <goals>
312                             <goal>report</goal>
313                         </goals>
314                         <configuration>
315                             <!-- Sets the path to the file which contains the execution data. -->
316                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
317                             <!-- Sets the output directory for the code coverage report. -->
318                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
319                         </configuration>
320                     </execution>
321                     <execution>
322                         <id>pre-integration-test</id>
323                         <phase>pre-integration-test</phase>
324                         <goals>
325                             <goal>prepare-agent</goal>
326                         </goals>
327                         <configuration>
328                             <!-- Sets the path to the file which contains the execution data. -->
329                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
330                             <!-- Sets the name of the property containing the settings for JaCoCo
331                                                                  runtime agent. -->
332                             <propertyName>failsafeArgLine</propertyName>
333                         </configuration>
334                     </execution>
335                     <!-- Ensures that the code coverage report for integration tests after
336                                                  integration tests have been run. -->
337                     <execution>
338                         <id>post-integration-test</id>
339                         <phase>post-integration-test</phase>
340                         <goals>
341                             <goal>report</goal>
342                         </goals>
343                         <configuration>
344                             <!-- Sets the path to the file which contains the execution data. -->
345                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
346                             <!-- Sets the output directory for the code coverage report. -->
347                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
348                         </configuration>
349                     </execution>
350                     <execution>
351                         <id>default-prepare-agent</id>
352                         <goals>
353                             <goal>prepare-agent</goal>
354                         </goals>
355                     </execution>
356                     <execution>
357                         <id>default-report</id>
358                         <phase>prepare-package</phase>
359                         <goals>
360                             <goal>report</goal>
361                         </goals>
362                     </execution>
363                     <execution>
364                         <id>default-check</id>
365                         <goals>
366                             <goal>check</goal>
367                         </goals>
368                         <configuration>
369                             <rules>
370                                 <rule>
371                                     <element>PACKAGE</element>
372                                     <limits>
373                                         <limit>
374                                             <counter>COMPLEXITY</counter>
375                                             <value>COVEREDRATIO</value>
376                                             <minimum>0.0</minimum>
377                                         </limit>
378                                     </limits>
379                                 </rule>
380                             </rules>
381                         </configuration>
382                     </execution>
383                 </executions>
384             </plugin>
385             <plugin>
386                 <groupId>org.codehaus.mojo</groupId>
387                 <artifactId>versions-maven-plugin</artifactId>
388                 <version>2.5</version>
389                 <configuration>
390                     <processAllModules>true</processAllModules>
391                 </configuration>
392             </plugin>
393             <plugin>
394                 <groupId>org.apache.felix</groupId>
395                 <artifactId>maven-bundle-plugin</artifactId>
396                 <version>${bundle.plugin.version}</version>
397                 <extensions>true</extensions>
398             </plugin>
399             <plugin>
400                 <groupId>org.eclipse.m2e</groupId>
401                 <artifactId>lifecycle-mapping</artifactId>
402                 <version>1.0.0</version>
403                 <configuration>
404                     <lifecycleMappingMetadata>
405                         <pluginExecutions>
406                             <pluginExecution>
407                                 <pluginExecutionFilter>
408                                     <groupId>org.apache.felix</groupId>
409                                     <artifactId>maven-bundle-plugin</artifactId>
410                                     <versionRange>[1.0,)</versionRange>
411                                     <goals>
412                                         <goal>manifest</goal>
413                                     </goals>
414                                 </pluginExecutionFilter>
415                                 <action>
416                                     <execute />
417                                     <ignore />
418                                 </action>
419                             </pluginExecution>
420                         </pluginExecutions>
421                     </lifecycleMappingMetadata>
422                 </configuration>
423             </plugin>
424         </plugins>
425     </build>
426
427     <profiles>
428         <profile>
429             <id>sonar-jacoco-aggregate</id>
430             <activation>
431                 <property>
432                     <name>onap.jacoco.aggregateFile</name>
433                 </property>
434             </activation>
435             <build>
436                 <plugins>
437                     <plugin>
438                         <groupId>org.jacoco</groupId>
439                         <artifactId>jacoco-maven-plugin</artifactId>
440                         <executions>
441                             <execution>
442                                 <id>merge</id>
443                                 <goals>
444                                     <goal>merge</goal>
445                                 </goals>
446                                 <phase>generate-resources</phase>
447                                 <configuration>
448                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
449                                     <fileSets>
450                                         <fileSet>
451                                             <directory>${project.basedir}</directory>
452                                             <includes>
453                                                 <include>**/target/code-coverage/*.exec</include>
454                                             </includes>
455                                         </fileSet>
456                                     </fileSets>
457                                 </configuration>
458                             </execution>
459                         </executions>
460                     </plugin>
461                 </plugins>
462             </build>
463         </profile>
464     </profiles>
465 </project>