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