Revert "ccsdk parents for alu-sr0"
[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.1-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.source>1.8</java.version.source>
54         <java.version.target>1.8</java.version.target>
55         <bundle.plugin.version>2.5.0</bundle.plugin.version>
56         <checkstyle.skip>true</checkstyle.skip>
57
58         <mariadb.connector.version>2.1.1</mariadb.connector.version>
59         <fasterxml.jackson.version>2.10.0</fasterxml.jackson.version>
60         <velocity.version>2.0</velocity.version>
61
62         <dmaap.listener.version>1.1.5</dmaap.listener.version>
63         <sdc.client.version>1.4.1</sdc.client.version>
64         <sdc.tosca.version>1.6.5</sdc.tosca.version>
65
66     </properties>
67
68     <dependencyManagement>
69         <dependencies>
70             <dependency>
71                 <groupId>org.onap.ccsdk.parent</groupId>
72                 <artifactId>dependencies-bom</artifactId>
73                 <version>2.1.1-SNAPSHOT</version>
74                 <scope>import</scope>
75                 <type>pom</type>
76             </dependency>
77             <dependency>
78                 <groupId>org.springframework.boot</groupId>
79                 <artifactId>spring-boot-dependencies</artifactId>
80                 <version>2.3.5.RELEASE</version>
81                 <scope>import</scope>
82                 <type>pom</type>
83             </dependency>
84
85             <dependency>
86                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
87                 <artifactId>sdc-distribution-client</artifactId>
88                 <version>${sdc.client.version}</version>
89                 <scope>compile</scope>
90             </dependency>
91             <dependency>
92                 <groupId>org.onap.sdc.sdc-tosca</groupId>
93                 <artifactId>sdc-tosca</artifactId>
94                 <version>${sdc.tosca.version}</version>
95                 <scope>compile</scope>
96             </dependency>
97             <dependency>
98                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
99                 <artifactId>dmaapClient</artifactId>
100                 <version>${dmaap.listener.version}</version>
101             </dependency>
102         </dependencies>
103     </dependencyManagement>
104
105
106     <dependencies>
107         <dependency>
108             <groupId>javax.annotation</groupId>
109             <artifactId>javax.annotation-api</artifactId>
110             <version>1.3.2</version>
111         </dependency>
112         <dependency>
113             <groupId>junit</groupId>
114             <artifactId>junit</artifactId>
115             <scope>test</scope>
116         </dependency>
117         <dependency>
118             <groupId>org.slf4j</groupId>
119             <artifactId>slf4j-api</artifactId>
120             <scope>provided</scope>
121         </dependency>
122         <dependency>
123             <groupId>org.slf4j</groupId>
124             <artifactId>slf4j-simple</artifactId>
125             <scope>test</scope>
126         </dependency>
127
128         <dependency>
129             <groupId>org.mockito</groupId>
130             <artifactId>mockito-core</artifactId>
131             <version>1.10.19</version>
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.testng</groupId>
136             <artifactId>testng</artifactId>
137             <version>6.11</version>
138             <scope>test</scope>
139         </dependency>
140     </dependencies>
141
142     <repositories>
143         <repository>
144             <id>onap-public</id>
145             <url>https://nexus.onap.org/content/groups/public</url>
146             <releases>
147                 <enabled>true</enabled>
148                 <updatePolicy>never</updatePolicy>
149             </releases>
150             <snapshots>
151                 <enabled>true</enabled>
152                 <updatePolicy>always</updatePolicy>
153             </snapshots>
154         </repository>
155         <repository>
156             <id>onap-staging</id>
157             <url>https://nexus.onap.org/content/groups/staging</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>ecomp-release</id>
169             <name>onap-repository-releases</name>
170             <url>https://nexus.onap.org/content/repositories/releases</url>
171             <releases>
172                 <enabled>true</enabled>
173                 <updatePolicy>never</updatePolicy>
174             </releases>
175             <snapshots>
176                 <enabled>false</enabled>
177             </snapshots>
178         </repository>
179         <repository>
180             <id>ecomp-snapshot</id>
181             <name>onap-repository-snapshots</name>
182             <url>https://nexus.onap.org/content/repositories/snapshots</url>
183             <releases>
184                 <enabled>false</enabled>
185             </releases>
186             <snapshots>
187                 <enabled>true</enabled>
188             </snapshots>
189         </repository>
190     </repositories>
191
192
193     <build>
194         <pluginManagement>
195             <plugins>
196                 <plugin>
197                     <groupId>org.apache.maven.plugins</groupId>
198                     <artifactId>maven-resources-plugin</artifactId>
199                     <version>3.2.0</version>
200                 </plugin>
201                 <plugin>
202                     <groupId>org.antlr</groupId>
203                     <artifactId>antlr4-maven-plugin</artifactId>
204                     <version>4.7.2</version>
205                 </plugin>
206             </plugins>
207         </pluginManagement>
208         <plugins>
209             <!-- Jacoco / Sonar -->
210             <plugin>
211                 <groupId>org.jacoco</groupId>
212                 <artifactId>jacoco-maven-plugin</artifactId>
213                 <version>${jacoco.version}</version>
214                 <executions>
215                     <execution>
216                         <id>pre-unit-test</id>
217                         <goals>
218                             <goal>prepare-agent</goal>
219                         </goals>
220                         <configuration>
221                             <!-- Sets the path to the file which contains the execution data. -->
222                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
223                             <!-- Sets the name of the property containing the settings for JaCoCo
224                                                                  runtime agent. -->
225                             <propertyName>surefireArgLine</propertyName>
226                         </configuration>
227                     </execution>
228                     <!-- Ensures that the code coverage report for unit tests is created
229                                                  after unit tests have been run. -->
230                     <execution>
231                         <id>post-unit-test</id>
232                         <phase>test</phase>
233                         <goals>
234                             <goal>report</goal>
235                         </goals>
236                         <configuration>
237                             <!-- Sets the path to the file which contains the execution data. -->
238                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
239                             <!-- Sets the output directory for the code coverage report. -->
240                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
241                         </configuration>
242                     </execution>
243                     <execution>
244                         <id>pre-integration-test</id>
245                         <phase>pre-integration-test</phase>
246                         <goals>
247                             <goal>prepare-agent</goal>
248                         </goals>
249                         <configuration>
250                             <!-- Sets the path to the file which contains the execution data. -->
251                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
252                             <!-- Sets the name of the property containing the settings for JaCoCo
253                                                                  runtime agent. -->
254                             <propertyName>failsafeArgLine</propertyName>
255                         </configuration>
256                     </execution>
257                     <!-- Ensures that the code coverage report for integration tests after
258                                                  integration tests have been run. -->
259                     <execution>
260                         <id>post-integration-test</id>
261                         <phase>post-integration-test</phase>
262                         <goals>
263                             <goal>report</goal>
264                         </goals>
265                         <configuration>
266                             <!-- Sets the path to the file which contains the execution data. -->
267                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
268                             <!-- Sets the output directory for the code coverage report. -->
269                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
270                         </configuration>
271                     </execution>
272                     <execution>
273                         <id>default-prepare-agent</id>
274                         <goals>
275                             <goal>prepare-agent</goal>
276                         </goals>
277                     </execution>
278                     <execution>
279                         <id>default-report</id>
280                         <phase>prepare-package</phase>
281                         <goals>
282                             <goal>report</goal>
283                         </goals>
284                     </execution>
285                     <execution>
286                         <id>default-check</id>
287                         <goals>
288                             <goal>check</goal>
289                         </goals>
290                         <configuration>
291                             <rules>
292                                 <rule>
293                                     <element>PACKAGE</element>
294                                     <limits>
295                                         <limit>
296                                             <counter>COMPLEXITY</counter>
297                                             <value>COVEREDRATIO</value>
298                                             <minimum>0.0</minimum>
299                                         </limit>
300                                     </limits>
301                                 </rule>
302                             </rules>
303                         </configuration>
304                     </execution>
305                 </executions>
306             </plugin>
307             <plugin>
308                 <groupId>org.codehaus.mojo</groupId>
309                 <artifactId>versions-maven-plugin</artifactId>
310                 <version>2.5</version>
311                 <configuration>
312                     <processAllModules>true</processAllModules>
313                 </configuration>
314             </plugin>
315             <plugin>
316                 <groupId>org.apache.felix</groupId>
317                 <artifactId>maven-bundle-plugin</artifactId>
318                 <version>4.2.1</version>
319                 <extensions>true</extensions>
320             </plugin>
321             <plugin>
322                 <groupId>org.eclipse.m2e</groupId>
323                 <artifactId>lifecycle-mapping</artifactId>
324                 <version>1.0.0</version>
325                 <configuration>
326                     <lifecycleMappingMetadata>
327                         <pluginExecutions>
328                             <pluginExecution>
329                                 <pluginExecutionFilter>
330                                     <groupId>org.apache.felix</groupId>
331                                     <artifactId>maven-bundle-plugin</artifactId>
332                                     <versionRange>[1.0,)</versionRange>
333                                     <goals>
334                                         <goal>manifest</goal>
335                                     </goals>
336                                 </pluginExecutionFilter>
337                                 <action>
338                                     <execute />
339                                     <ignore />
340                                 </action>
341                             </pluginExecution>
342                         </pluginExecutions>
343                     </lifecycleMappingMetadata>
344                 </configuration>
345             </plugin>
346         </plugins>
347     </build>
348
349     <profiles>
350         <profile>
351             <id>sonar-jacoco-aggregate</id>
352             <activation>
353                 <property>
354                     <name>onap.jacoco.aggregateFile</name>
355                 </property>
356             </activation>
357             <build>
358                 <plugins>
359                     <plugin>
360                         <groupId>org.jacoco</groupId>
361                         <artifactId>jacoco-maven-plugin</artifactId>
362                         <executions>
363                             <execution>
364                                 <id>merge</id>
365                                 <goals>
366                                     <goal>merge</goal>
367                                 </goals>
368                                 <phase>generate-resources</phase>
369                                 <configuration>
370                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
371                                     <fileSets>
372                                         <fileSet>
373                                             <directory>${project.basedir}</directory>
374                                             <includes>
375                                                 <include>**/target/code-coverage/*.exec</include>
376                                             </includes>
377                                         </fileSet>
378                                     </fileSets>
379                                 </configuration>
380                             </execution>
381                         </executions>
382                     </plugin>
383                 </plugins>
384             </build>
385         </profile>
386     </profiles>
387 </project>