Inconsistent antlr versions specified
[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.2.0</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.parent</groupId>
13     <artifactId>oparent</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>11</java.version>
54         <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
55         <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
56         <bundle.plugin.version>4.2.1</bundle.plugin.version>
57         <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
58         <checkstyle.skip>true</checkstyle.skip>
59
60         <!-- CCSDK component versions -->
61         <ccsdk.cds.version>1.2.0-SNAPSHOT</ccsdk.cds.version>
62         <ccsdk.features.version>1.2.0-SNAPSHOT</ccsdk.features.version>
63         <ccsdk.sli.version>1.3.0-SNAPSHOT</ccsdk.sli.version>
64         <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
65         <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
66         <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
67         <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
68         <ccsdk.distribution.version>1.1.1-SNAPSHOT</ccsdk.distribution.version>
69
70         <mariadb.connector.version>2.1.1</mariadb.connector.version>
71         <fasterxml.jackson.version>2.10.0</fasterxml.jackson.version>
72         <velocity.version>2.0</velocity.version>
73
74         <dmaap.listener.version>1.1.5</dmaap.listener.version>
75         <sdc.client.version>1.4.1</sdc.client.version>
76         <sdc.tosca.version>1.6.5</sdc.tosca.version>
77
78         <antlr.version>4.8-1</antlr.version>
79
80     </properties>
81
82     <dependencyManagement>
83         <dependencies>
84             <dependency>
85                 <groupId>org.onap.ccsdk.parent</groupId>
86                 <artifactId>dependencies-bom</artifactId>
87                 <version>2.2.0-SNAPSHOT</version>
88                 <type>pom</type>
89                 <scope>import</scope>
90             </dependency>
91             <dependency>
92                 <groupId>org.springframework.boot</groupId>
93                 <artifactId>spring-boot-dependencies</artifactId>
94                 <version>2.3.8.RELEASE</version>
95                 <scope>import</scope>
96                 <type>pom</type>
97             </dependency>
98             <dependency>
99                  <groupId>org.antlr</groupId>
100                  <artifactId>antlr4-runtime</artifactId>
101                  <version>${antlr.version}</version>
102             </dependency>
103             <dependency>
104                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
105                 <artifactId>sdc-distribution-client</artifactId>
106                 <version>${sdc.client.version}</version>
107                 <scope>compile</scope>
108             </dependency>
109             <dependency>
110                 <groupId>org.onap.sdc.sdc-tosca</groupId>
111                 <artifactId>sdc-tosca</artifactId>
112                 <version>${sdc.tosca.version}</version>
113                 <scope>compile</scope>
114             </dependency>
115             <dependency>
116                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
117                 <artifactId>dmaapClient</artifactId>
118                 <version>${dmaap.listener.version}</version>
119             </dependency>
120         </dependencies>
121     </dependencyManagement>
122     <dependencies>
123         <dependency>
124             <groupId>javax.annotation</groupId>
125             <artifactId>javax.annotation-api</artifactId>
126             <version>1.3.2</version>
127         </dependency>
128         <dependency>
129             <groupId>junit</groupId>
130             <artifactId>junit</artifactId>
131             <scope>test</scope>
132         </dependency>
133         <dependency>
134             <groupId>org.slf4j</groupId>
135             <artifactId>slf4j-api</artifactId>
136             <scope>provided</scope>
137         </dependency>
138         <dependency>
139             <groupId>org.slf4j</groupId>
140             <artifactId>slf4j-simple</artifactId>
141             <scope>test</scope>
142         </dependency>
143
144         <dependency>
145             <groupId>org.mockito</groupId>
146             <artifactId>mockito-core</artifactId>
147             <version>1.10.19</version>
148             <scope>test</scope>
149         </dependency>
150         <dependency>
151             <groupId>org.testng</groupId>
152             <artifactId>testng</artifactId>
153             <version>6.11</version>
154             <scope>test</scope>
155         </dependency>
156     </dependencies>
157
158     <repositories>
159         <repository>
160             <id>onap-public</id>
161             <url>https://nexus.onap.org/content/groups/public</url>
162             <releases>
163                 <enabled>true</enabled>
164                 <updatePolicy>never</updatePolicy>
165             </releases>
166             <snapshots>
167                 <enabled>true</enabled>
168                 <updatePolicy>always</updatePolicy>
169             </snapshots>
170         </repository>
171         <repository>
172             <id>onap-staging</id>
173             <url>https://nexus.onap.org/content/groups/staging</url>
174             <releases>
175                 <enabled>true</enabled>
176                 <updatePolicy>never</updatePolicy>
177             </releases>
178             <snapshots>
179                 <enabled>true</enabled>
180                 <updatePolicy>always</updatePolicy>
181             </snapshots>
182         </repository>
183         <repository>
184             <id>ecomp-release</id>
185             <name>onap-repository-releases</name>
186             <url>https://nexus.onap.org/content/repositories/releases</url>
187             <releases>
188                 <enabled>true</enabled>
189                 <updatePolicy>never</updatePolicy>
190             </releases>
191             <snapshots>
192                 <enabled>false</enabled>
193             </snapshots>
194         </repository>
195         <repository>
196             <id>ecomp-snapshot</id>
197             <name>onap-repository-snapshots</name>
198             <url>https://nexus.onap.org/content/repositories/snapshots</url>
199             <releases>
200                 <enabled>false</enabled>
201             </releases>
202             <snapshots>
203                 <enabled>true</enabled>
204             </snapshots>
205         </repository>
206     </repositories>
207
208     <build>
209         <pluginManagement>
210             <plugins>
211                 <plugin>
212                     <groupId>org.apache.maven.plugins</groupId>
213                     <artifactId>maven-deploy-plugin</artifactId>
214                     <!-- This version supports the "deployAtEnd" parameter -->
215                     <version>2.8</version>
216                     <configuration>
217                         <skip/>
218                         <deployAtEnd>true</deployAtEnd>
219                     </configuration>
220                  </plugin>
221                  <plugin>
222                     <groupId>org.apache.maven.plugins</groupId>
223                     <artifactId>maven-compiler-plugin</artifactId>
224                     <version>${maven-compiler-plugin.version}</version>
225                     <configuration>
226                         <release>${java.version}</release>
227                         <!--explicitly remove source and target-->
228                         <source combine.self="override"/>
229                         <target combine.self="override"/>
230                     </configuration>
231                 </plugin>
232                 <plugin>
233                     <groupId>org.apache.maven.plugins</groupId>
234                     <artifactId>maven-resources-plugin</artifactId>
235                     <version>3.2.0</version>
236                 </plugin>
237                 <plugin>
238                     <groupId>org.antlr</groupId>
239                     <artifactId>antlr4-maven-plugin</artifactId>
240                     <version>${antlr.version}</version>
241                 </plugin>
242             </plugins>
243         </pluginManagement>
244         <plugins>
245             <!-- Jacoco / Sonar -->
246             <plugin>
247                 <groupId>org.jacoco</groupId>
248                 <artifactId>jacoco-maven-plugin</artifactId>
249                 <version>${jacoco.version}</version>
250                 <executions>
251                     <execution>
252                         <id>pre-unit-test</id>
253                         <goals>
254                             <goal>prepare-agent</goal>
255                         </goals>
256                         <configuration>
257                             <!-- Sets the path to the file which contains the execution data. -->
258                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
259                             <!-- Sets the name of the property containing the settings for JaCoCo
260                                                                  runtime agent. -->
261                             <propertyName>surefireArgLine</propertyName>
262                         </configuration>
263                     </execution>
264                     <!-- Ensures that the code coverage report for unit tests is created
265                                                  after unit tests have been run. -->
266                     <execution>
267                         <id>post-unit-test</id>
268                         <phase>test</phase>
269                         <goals>
270                             <goal>report</goal>
271                         </goals>
272                         <configuration>
273                             <!-- Sets the path to the file which contains the execution data. -->
274                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
275                             <!-- Sets the output directory for the code coverage report. -->
276                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
277                         </configuration>
278                     </execution>
279                     <execution>
280                         <id>pre-integration-test</id>
281                         <phase>pre-integration-test</phase>
282                         <goals>
283                             <goal>prepare-agent</goal>
284                         </goals>
285                         <configuration>
286                             <!-- Sets the path to the file which contains the execution data. -->
287                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
288                             <!-- Sets the name of the property containing the settings for JaCoCo
289                                                                  runtime agent. -->
290                             <propertyName>failsafeArgLine</propertyName>
291                         </configuration>
292                     </execution>
293                     <!-- Ensures that the code coverage report for integration tests after
294                                                  integration tests have been run. -->
295                     <execution>
296                         <id>post-integration-test</id>
297                         <phase>post-integration-test</phase>
298                         <goals>
299                             <goal>report</goal>
300                         </goals>
301                         <configuration>
302                             <!-- Sets the path to the file which contains the execution data. -->
303                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
304                             <!-- Sets the output directory for the code coverage report. -->
305                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
306                         </configuration>
307                     </execution>
308                     <execution>
309                         <id>default-prepare-agent</id>
310                         <goals>
311                             <goal>prepare-agent</goal>
312                         </goals>
313                     </execution>
314                     <execution>
315                         <id>default-report</id>
316                         <phase>prepare-package</phase>
317                         <goals>
318                             <goal>report</goal>
319                         </goals>
320                     </execution>
321                     <execution>
322                         <id>default-check</id>
323                         <goals>
324                             <goal>check</goal>
325                         </goals>
326                         <configuration>
327                             <rules>
328                                 <rule>
329                                     <element>PACKAGE</element>
330                                     <limits>
331                                         <limit>
332                                             <counter>COMPLEXITY</counter>
333                                             <value>COVEREDRATIO</value>
334                                             <minimum>0.0</minimum>
335                                         </limit>
336                                     </limits>
337                                 </rule>
338                             </rules>
339                         </configuration>
340                     </execution>
341                 </executions>
342             </plugin>
343             <plugin>
344                 <groupId>org.codehaus.mojo</groupId>
345                 <artifactId>versions-maven-plugin</artifactId>
346                 <version>2.5</version>
347                 <configuration>
348                     <processAllModules>true</processAllModules>
349                 </configuration>
350             </plugin>
351             <plugin>
352                 <groupId>org.apache.felix</groupId>
353                 <artifactId>maven-bundle-plugin</artifactId>
354                 <version>${bundle.plugin.version}</version>
355                 <extensions>true</extensions>
356             </plugin>
357             <plugin>
358                 <groupId>org.eclipse.m2e</groupId>
359                 <artifactId>lifecycle-mapping</artifactId>
360                 <version>1.0.0</version>
361                 <configuration>
362                     <lifecycleMappingMetadata>
363                         <pluginExecutions>
364                             <pluginExecution>
365                                 <pluginExecutionFilter>
366                                     <groupId>org.apache.felix</groupId>
367                                     <artifactId>maven-bundle-plugin</artifactId>
368                                     <versionRange>[1.0,)</versionRange>
369                                     <goals>
370                                         <goal>manifest</goal>
371                                     </goals>
372                                 </pluginExecutionFilter>
373                                 <action>
374                                     <execute />
375                                     <ignore />
376                                 </action>
377                             </pluginExecution>
378                         </pluginExecutions>
379                     </lifecycleMappingMetadata>
380                 </configuration>
381             </plugin>
382         </plugins>
383     </build>
384
385     <profiles>
386         <profile>
387             <id>sonar-jacoco-aggregate</id>
388             <activation>
389                 <property>
390                     <name>onap.jacoco.aggregateFile</name>
391                 </property>
392             </activation>
393             <build>
394                 <plugins>
395                     <plugin>
396                         <groupId>org.jacoco</groupId>
397                         <artifactId>jacoco-maven-plugin</artifactId>
398                         <executions>
399                             <execution>
400                                 <id>merge</id>
401                                 <goals>
402                                     <goal>merge</goal>
403                                 </goals>
404                                 <phase>generate-resources</phase>
405                                 <configuration>
406                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
407                                     <fileSets>
408                                         <fileSet>
409                                             <directory>${project.basedir}</directory>
410                                             <includes>
411                                                 <include>**/target/code-coverage/*.exec</include>
412                                             </includes>
413                                         </fileSet>
414                                     </fileSets>
415                                 </configuration>
416                             </execution>
417                         </executions>
418                     </plugin>
419                 </plugins>
420             </build>
421         </profile>
422     </profiles>
423 </project>