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