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