Add missing dependencies to ccsdk oparent and fix versions
[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         <dmaap.listener.version>1.1.5</dmaap.listener.version>
59         <sdc.client.version>1.4.0</sdc.client.version>
60         <sdc.tosca.version>1.6.3</sdc.tosca.version>
61
62     </properties>
63
64     <dependencyManagement>
65         <dependencies>
66             <dependency>
67                 <groupId>org.onap.ccsdk.parent</groupId>
68                 <artifactId>dependencies-bom</artifactId>
69                 <version>2.1.1-SNAPSHOT</version>
70                 <scope>import</scope>
71                 <type>pom</type>
72             </dependency>
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         </dependencies>
91     </dependencyManagement>
92
93
94     <dependencies>
95         <dependency>
96             <groupId>org.slf4j</groupId>
97             <artifactId>slf4j-api</artifactId>
98             <scope>provided</scope>
99           </dependency>
100     </dependencies>
101
102     <repositories>
103         <repository>
104             <id>onap-public</id>
105             <url>https://nexus.onap.org/content/groups/public</url>
106             <releases>
107                 <enabled>true</enabled>
108                 <updatePolicy>never</updatePolicy>
109             </releases>
110             <snapshots>
111                 <enabled>true</enabled>
112                 <updatePolicy>always</updatePolicy>
113             </snapshots>
114         </repository>
115         <repository>
116             <id>onap-staging</id>
117             <url>https://nexus.onap.org/content/groups/staging</url>
118             <releases>
119                 <enabled>true</enabled>
120                 <updatePolicy>never</updatePolicy>
121             </releases>
122             <snapshots>
123                 <enabled>true</enabled>
124                 <updatePolicy>always</updatePolicy>
125             </snapshots>
126         </repository>
127         <repository>
128             <id>ecomp-release</id>
129             <name>onap-repository-releases</name>
130             <url>https://nexus.onap.org/content/repositories/releases</url>
131             <releases>
132                 <enabled>true</enabled>
133                 <updatePolicy>never</updatePolicy>
134             </releases>
135             <snapshots>
136                 <enabled>false</enabled>
137             </snapshots>
138         </repository>
139         <repository>
140             <id>ecomp-snapshot</id>
141             <name>onap-repository-snapshots</name>
142             <url>https://nexus.onap.org/content/repositories/snapshots</url>
143             <releases>
144                 <enabled>false</enabled>
145             </releases>
146             <snapshots>
147                 <enabled>true</enabled>
148             </snapshots>
149         </repository>
150     </repositories>
151
152
153     <build>
154         <pluginManagement>
155             <plugins>
156                 <plugin>
157                     <groupId>org.antlr</groupId>
158                     <artifactId>antlr4-maven-plugin</artifactId>
159                     <version>4.7.2</version>
160                 </plugin>
161             </plugins>
162         </pluginManagement>
163         <plugins>
164             <!-- Jacoco / Sonar -->
165             <plugin>
166                 <groupId>org.jacoco</groupId>
167                 <artifactId>jacoco-maven-plugin</artifactId>
168                 <version>${jacoco.version}</version>
169                 <executions>
170                     <execution>
171                         <id>pre-unit-test</id>
172                         <goals>
173                             <goal>prepare-agent</goal>
174                         </goals>
175                         <configuration>
176                             <!-- Sets the path to the file which contains the execution data. -->
177                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
178                             <!-- Sets the name of the property containing the settings for JaCoCo
179                                                                  runtime agent. -->
180                             <propertyName>surefireArgLine</propertyName>
181                         </configuration>
182                     </execution>
183                     <!-- Ensures that the code coverage report for unit tests is created
184                                                  after unit tests have been run. -->
185                     <execution>
186                         <id>post-unit-test</id>
187                         <phase>test</phase>
188                         <goals>
189                             <goal>report</goal>
190                         </goals>
191                         <configuration>
192                             <!-- Sets the path to the file which contains the execution data. -->
193                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
194                             <!-- Sets the output directory for the code coverage report. -->
195                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
196                         </configuration>
197                     </execution>
198                     <execution>
199                         <id>pre-integration-test</id>
200                         <phase>pre-integration-test</phase>
201                         <goals>
202                             <goal>prepare-agent</goal>
203                         </goals>
204                         <configuration>
205                             <!-- Sets the path to the file which contains the execution data. -->
206                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
207                             <!-- Sets the name of the property containing the settings for JaCoCo
208                                                                  runtime agent. -->
209                             <propertyName>failsafeArgLine</propertyName>
210                         </configuration>
211                     </execution>
212                     <!-- Ensures that the code coverage report for integration tests after
213                                                  integration tests have been run. -->
214                     <execution>
215                         <id>post-integration-test</id>
216                         <phase>post-integration-test</phase>
217                         <goals>
218                             <goal>report</goal>
219                         </goals>
220                         <configuration>
221                             <!-- Sets the path to the file which contains the execution data. -->
222                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
223                             <!-- Sets the output directory for the code coverage report. -->
224                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
225                         </configuration>
226                     </execution>
227                     <execution>
228                         <id>default-prepare-agent</id>
229                         <goals>
230                             <goal>prepare-agent</goal>
231                         </goals>
232                     </execution>
233                     <execution>
234                         <id>default-report</id>
235                         <phase>prepare-package</phase>
236                         <goals>
237                             <goal>report</goal>
238                         </goals>
239                     </execution>
240                     <execution>
241                         <id>default-check</id>
242                         <goals>
243                             <goal>check</goal>
244                         </goals>
245                         <configuration>
246                             <rules>
247                                 <rule>
248                                     <element>PACKAGE</element>
249                                     <limits>
250                                         <limit>
251                                             <counter>COMPLEXITY</counter>
252                                             <value>COVEREDRATIO</value>
253                                             <minimum>0.0</minimum>
254                                         </limit>
255                                     </limits>
256                                 </rule>
257                             </rules>
258                         </configuration>
259                     </execution>
260                 </executions>
261             </plugin>
262             <plugin>
263                 <groupId>org.codehaus.mojo</groupId>
264                 <artifactId>versions-maven-plugin</artifactId>
265                 <version>2.5</version>
266                 <configuration>
267                     <processAllModules>true</processAllModules>
268                 </configuration>
269             </plugin>
270             <plugin>
271                 <groupId>org.apache.felix</groupId>
272                 <artifactId>maven-bundle-plugin</artifactId>
273                 <version>4.2.1</version>
274                 <extensions>true</extensions>
275             </plugin>
276             <plugin>
277                 <groupId>org.eclipse.m2e</groupId>
278                 <artifactId>lifecycle-mapping</artifactId>
279                 <version>1.0.0</version>
280                 <configuration>
281                     <lifecycleMappingMetadata>
282                         <pluginExecutions>
283                             <pluginExecution>
284                                 <pluginExecutionFilter>
285                                     <groupId>org.apache.felix</groupId>
286                                     <artifactId>maven-bundle-plugin</artifactId>
287                                     <versionRange>[1.0,)</versionRange>
288                                     <goals>
289                                         <goal>manifest</goal>
290                                     </goals>
291                                 </pluginExecutionFilter>
292                                 <action>
293                                     <execute />
294                                     <ignore />
295                                 </action>
296                             </pluginExecution>
297                         </pluginExecutions>
298                     </lifecycleMappingMetadata>
299                 </configuration>
300             </plugin>
301         </plugins>
302     </build>
303
304     <profiles>
305         <profile>
306             <id>sonar-jacoco-aggregate</id>
307             <activation>
308                 <property>
309                     <name>onap.jacoco.aggregateFile</name>
310                 </property>
311             </activation>
312             <build>
313                 <plugins>
314                     <plugin>
315                         <groupId>org.jacoco</groupId>
316                         <artifactId>jacoco-maven-plugin</artifactId>
317                         <executions>
318                             <execution>
319                                 <id>merge</id>
320                                 <goals>
321                                     <goal>merge</goal>
322                                 </goals>
323                                 <phase>generate-resources</phase>
324                                 <configuration>
325                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
326                                     <fileSets>
327                                         <fileSet>
328                                             <directory>${project.basedir}</directory>
329                                             <includes>
330                                                 <include>**/target/code-coverage/*.exec</include>
331                                             </includes>
332                                         </fileSet>
333                                     </fileSets>
334                                 </configuration>
335                             </execution>
336                         </executions>
337                     </plugin>
338                 </plugins>
339             </build>
340         </profile>
341     </profiles>
342 </project>