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