blob: 574629916b0ebc052ab771e4929d0cc7f034f44b [file] [log] [blame]
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -04001<?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/maven-v4_0_0.xsd">
3
4
5 <modelVersion>4.0.0</modelVersion>
6 <packaging>pom</packaging>
7 <groupId>org.onap.ccsdk.parent</groupId>
8 <artifactId>spring-boot-starter-parent</artifactId>
Timoney, Dan (dt5972)e45b6a22019-09-10 14:47:58 -04009 <version>1.5.0-SNAPSHOT</version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040010
11 <parent>
12 <groupId>org.springframework.boot</groupId>
13 <artifactId>spring-boot-starter-parent</artifactId>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -040014 <version>2.1.6.RELEASE</version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040015 <relativePath/>
16 </parent>
17
18
19 <url>http://wiki.onap.org</url>
20 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
22
23
24 <issueManagement>
25 <system>JIRA</system>
26 <url>https://jira.onap.org/</url>
27 </issueManagement>
28
29 <properties>
30
31 <!-- properties from oparent -->
32 <maven.compiler.source>1.8</maven.compiler.source>
33 <maven.compiler.target>1.8</maven.compiler.target>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
36 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
37 <!-- sitePath may be overridden in the inheriting POM if desired -->
38 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
39 <jacoco.version>0.7.7.201606060606</jacoco.version>
40 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
41 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
42 <!-- Default Sonar configuration -->
43 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec,target/code-coverage/jacoco-it.exec</sonar.jacoco.reportPaths>
44 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
45 below -->
46 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
47 <!-- If following file exist, auto-generation of swagger.json will be done -->
48 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
49 <!-- If following file exist, auto-generation of sdk will be done -->
50 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
51 <!-- end of properties from oparent -->
52
53 <!-- ONAP repositories -->
54 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
55 <onap.nexus.port>443</onap.nexus.port>
56 <onap.nexus.protocol>https</onap.nexus.protocol>
57 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
58 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
59 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
60 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
61 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
62 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
63
64
65 <java.version.source>1.8</java.version.source>
66 <java.version.target>1.8</java.version.target>
67 <bundle.plugin.version>2.5.0</bundle.plugin.version>
68 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
69 <features.file>features.xml</features.file>
70 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
71 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
72 <checkstyle.skip>true</checkstyle.skip>
73
74
75 <sonar.language>java</sonar.language>
76 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
77 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
78 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
79 <sonar.projectVersion>${project.version}</sonar.projectVersion>
80
81
82
83
84 <!-- CCSDK component versions -->
Timoney, Dan (dt5972)e45b6a22019-09-10 14:47:58 -040085 <ccsdk.sli.core.version>0.7.0-SNAPSHOT</ccsdk.sli.core.version>
86 <ccsdk.sli.adaptors.version>0.7.0-SNAPSHOT</ccsdk.sli.adaptors.version>
87 <ccsdk.sli.northbound.version>0.7.0-SNAPSHOT</ccsdk.sli.northbound.version>
88 <ccsdk.sli.plugins.version>0.7.0-SNAPSHOT</ccsdk.sli.plugins.version>
89 <ccsdk.distribution.version>0.7.0-SNAPSHOT</ccsdk.distribution.version>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -040090 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
91 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
92 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
93 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
94 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
95
Brinda Santh40ff6f42019-07-26 10:00:10 -040096 <!-- Spring versions -->
97 <spring.boot.version>2.1.6.RELEASE</spring.boot.version>
98 <spring.version>5.1.8.RELEASE</spring.version>
99
Brinda Santh22473462019-07-25 15:57:58 -0400100 <!-- Kotlin versions -->
Brinda Santh8074b382019-07-29 09:40:13 -0400101 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
Brinda Santh22473462019-07-25 15:57:58 -0400102 <kotlin.version>1.3.41</kotlin.version>
103 <kotlin.maven.version>1.3.41</kotlin.maven.version>
104 <kotlin.couroutines.version>1.2.2</kotlin.couroutines.version>
Brinda Santh8074b382019-07-29 09:40:13 -0400105 <mockk.version>1.9</mockk.version>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400106
107 <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
108 <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
109 <derby.version>10.14.2.0</derby.version>
110 <eelf.version>1.0.0</eelf.version>
Brinda Santh352397d2019-07-29 09:44:27 -0400111 <grpc.version>1.18.0</grpc.version>
112 <protobuff.java.utils.version>3.6.1</protobuff.java.utils.version>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400113 <jackson.bom.version>2.8.11.20181123</jackson.bom.version>
114 <jersey.version>2.25.1</jersey.version>
115 <jettison.version>1.3.8</jettison.version>
116 <junit.version>4.12</junit.version>
117 <logback.version>1.2.3</logback.version>
118 <mariadb.connector.version>2.1.1</mariadb.connector.version>
Brinda Santh40ff6f42019-07-26 10:00:10 -0400119 <mariadb4j.version>2.2.3</mariadb4j.version>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400120 <slf4j.version>1.7.25</slf4j.version>
121 <testng.version>6.11</testng.version>
122 <tomcat-jdbc.version>8.5.14</tomcat-jdbc.version>
123
124
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400125 </properties>
126
127
128 <profiles>
129 <!-- Profiles from ONAP oparent -->
130 <profile>
131 <id>generate-json</id>
132 <activation>
133 <file>
134 <exists>${swagger-properties}</exists>
135 </file>
136 <property>
137 <name>swagger-sdk.generate-json</name>
138 </property>
139 </activation>
140 <build>
141 <plugins>
142 <plugin>
143 <groupId>org.codehaus.mojo</groupId>
144 <artifactId>properties-maven-plugin</artifactId>
145 <version>1.0.0</version>
146 <executions>
147 <execution>
148 <phase>initialize</phase>
149 <goals>
150 <goal>read-project-properties</goal>
151 </goals>
152 <configuration>
153 <files>
154 <file>${basedir}/src/main/resources/swagger.properties</file>
155 </files>
156 </configuration>
157 </execution>
158 </executions>
159 </plugin>
160 <plugin>
161 <groupId>com.github.kongchen</groupId>
162 <artifactId>swagger-maven-plugin</artifactId>
163 <version>3.1.4</version>
164 <configuration>
165 <apiSources>
166 <apiSource>
167 <locations>${api-rest-package}</locations>
168 <schemes>http,https</schemes>
169 <host>${api-host-ip}:${api-host-port}</host>
170 <basePath>${api-base-path}</basePath>
171 <info>
172 <title>${api-title}</title>
173 <version>${api-version}</version>
174 <description>${api-description}</description>
175 <license>
176 <name>${api-license}</name>
177 </license>
178 </info>
179 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
180 </apiSource>
181 </apiSources>
182 </configuration>
183 <executions>
184 <execution>
185 <phase>compile</phase>
186 <goals>
187 <goal>generate</goal>
188 </goals>
189 </execution>
190 </executions>
191 </plugin>
192 <plugin>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-install-plugin</artifactId>
195 <version>2.3.1</version>
196 <executions>
197 <execution>
198 <id>install-file-id</id>
199 <phase>install</phase>
200 <goals>
201 <goal>install-file</goal>
202 </goals>
203 <configuration>
204 <file>${basedir}/src/main/resources/swagger.json</file>
205 <groupId>${project.groupId}</groupId>
206 <artifactId>${project.artifactId}-swagger-schema</artifactId>
207 <version>${project.version}</version>
208 <packaging>json</packaging>
209 </configuration>
210 </execution>
211 </executions>
212 </plugin>
213 </plugins>
214 </build>
215 </profile>
216 <profile>
217 <id>generate-sdk</id>
218 <activation>
219 <file>
220 <exists>${swagger-json}</exists>
221 </file>
222 <property>
223 <name>swagger-sdk.generate-java-sdk</name>
224 </property>
225 </activation>
226 <build>
227 <plugins>
228 <plugin>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-antrun-plugin</artifactId>
231 <version>1.8</version>
232 <executions>
233 <execution>
234 <phase>initialize</phase>
235 <id>ant-create-script</id>
236 <configuration>
237 <exportAntProperties>true</exportAntProperties>
238 <tasks>
239
240 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
241 <condition property="is_windows" value="true">
242 <os family="windows"/>
243 </condition>
244 <condition property="isLinux" value="true">
245 <os family="unix"/>
246 </condition>
247 <if>
248 <equals arg1="${is_windows}" arg2="true"/>
249 <then>
250 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
251 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
252 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
253 </then>
254 <else>
255 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
256 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
257 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
258 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
259 </else>
260 </if>
261 </tasks>
262 </configuration>
263 <goals>
264 <goal>run</goal>
265 </goals>
266 </execution>
267 </executions>
268 <dependencies>
269 <dependency>
270 <groupId>ant-contrib</groupId>
271 <artifactId>ant-contrib</artifactId>
272 <version>1.0b3</version>
273 <exclusions>
274 <exclusion>
275 <artifactId>ant</artifactId>
276 <groupId>ant</groupId>
277 </exclusion>
278 </exclusions>
279 </dependency>
280 </dependencies>
281 </plugin>
282 <plugin>
283 <groupId>io.swagger</groupId>
284 <artifactId>swagger-codegen-maven-plugin</artifactId>
285 <version>2.2.1</version>
286 <executions>
287 <execution>
288 <goals>
289 <goal>generate</goal>
290 </goals>
291 <configuration>
292 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
293 <output>${project.build.directory}/generated-sources</output>
294 <language>java</language>
295 <configOptions>
296 <dateLibrary>joda</dateLibrary>
297 </configOptions>
298 <library>jersey2</library>
299 <groupId>${project.groupId}</groupId>
300 <artifactId>${project.artifactId}-java-sdk</artifactId>
301 <artifactVersion>${project.version}</artifactVersion>
302 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
303 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
304 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
305 </configuration>
306 </execution>
307 </executions>
308 </plugin>
309 <plugin>
310 <artifactId>exec-maven-plugin</artifactId>
311 <groupId>org.codehaus.mojo</groupId>
312 <version>1.5.0</version>
313 <executions>
314 <execution>
315 <id>swagger-generate-sources</id>
316 <phase>generate-sources</phase>
317 <goals>
318 <goal>exec</goal>
319 </goals>
320 <configuration>
321 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
322 </configuration>
323 </execution>
324 </executions>
325 </plugin>
326 <plugin>
327 <groupId>org.apache.maven.plugins</groupId>
328 <artifactId>maven-clean-plugin</artifactId>
329 <version>3.0.0</version>
330 <executions>
331 <execution>
332 <id>clean-generated-files</id>
333 <phase>generate-sources</phase>
334 <goals>
335 <goal>clean</goal>
336 </goals>
337 <configuration>
338 <filesets>
339 <fileset>
340 <directory>${project.build.directory}/generated-sources</directory>
341 </fileset>
342 </filesets>
343 </configuration>
344 </execution>
345 </executions>
346 </plugin>
347 </plugins>
348 </build>
349 <dependencies>
350 <dependency>
351 <groupId>org.onap.msb.swagger-sdk</groupId>
352 <artifactId>swagger-sdk</artifactId>
353 <version>1.0.0</version>
354 </dependency>
355 </dependencies>
356 </profile>
357
358 <!-- End of profiles from ONAP oparent -->
Timoney, Dan (dt5972)0586da42019-07-17 10:43:14 -0400359
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400360
361 </profiles>
362
363
364 <dependencyManagement>
365 <dependencies>
366 <dependency>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400367 <groupId>org.onap.ccsdk.parent</groupId>
368 <artifactId>dependencies-bom</artifactId>
Timoney, Dan (dt5972)e45b6a22019-09-10 14:47:58 -0400369 <version>1.5.0-SNAPSHOT</version>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400370 <type>pom</type>
371 <scope>import</scope>
372 </dependency>
373 <dependency>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400374 <groupId>org.onap.ccsdk.sli.core</groupId>
375 <artifactId>sli-common</artifactId>
376 <version>${ccsdk.sli.core.version}</version>
377 </dependency>
378
379 <dependency>
380 <groupId>org.onap.ccsdk.sli.core</groupId>
381 <artifactId>sli-provider</artifactId>
382 <version>${ccsdk.sli.core.version}</version>
383 </dependency>
384 <dependency>
385 <groupId>org.onap.ccsdk.sli.core</groupId>
386 <artifactId>ccsdk-sli</artifactId>
387 <version>${ccsdk.sli.core.version}</version>
388 <type>xml</type>
389 <classifier>features</classifier>
390 </dependency>
391 <dependency>
392 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
393 <artifactId>aai-service-provider</artifactId>
394 <version>${sdnctl.aai.service.version}</version>
395 </dependency>
396
397 <dependency>
398 <groupId>org.onap.ccsdk.sli.core</groupId>
399 <artifactId>dblib-provider</artifactId>
400 <version>${sdnctl.dblib.version}</version>
401 </dependency>
Timoney, Dan (dt5972)bbcacd22019-06-18 10:42:07 -0400402 <dependency>
403 <groupId>junit</groupId>
404 <artifactId>junit</artifactId>
405 <version>${junit.version}</version>
406 <scope>test</scope>
407 </dependency>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400408 </dependencies>
409
410 </dependencyManagement>
411
412
413 <reporting>
414 <plugins>
415 <plugin>
416 <artifactId>maven-javadoc-plugin</artifactId>
417 <version>2.10.4</version>
418 <configuration>
419 <failOnError>false</failOnError>
420 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
421 <docletArtifact>
422 <groupId>org.umlgraph</groupId>
423 <artifactId>umlgraph</artifactId>
424 <version>5.6</version>
425 </docletArtifact>
426 <additionalparam>-views</additionalparam>
427 <useStandardDocletOptions>true</useStandardDocletOptions>
428 <excludePackageNames>org.opendaylight.*</excludePackageNames>
429 </configuration>
430 <reportSets>
431 <reportSet>
432 <reports>
433 <report>javadoc-no-fork</report>
434 <report>test-javadoc-no-fork</report>
435 </reports>
436 </reportSet>
437 <reportSet>
438 <id>aggregate</id>
439 <reports>
440 <report>aggregate</report>
441 <report>test-aggregate</report>
442 </reports>
443 </reportSet>
444 </reportSets>
445 </plugin>
446 <plugin>
447 <groupId>org.apache.maven.plugins</groupId>
448 <artifactId>maven-jxr-plugin</artifactId>
449 <version>2.3</version>
450 <reportSets>
451 <reportSet>
452 <id>aggregate</id>
453 <reports>
454 <report>aggregate</report>
455 <report>test-aggregate</report>
456 </reports>
457 </reportSet>
458 </reportSets>
459 </plugin>
460
461 <plugin>
462 <artifactId>maven-surefire-plugin</artifactId>
463 <version>2.17</version>
464 </plugin>
465 <plugin>
466 <groupId>org.apache.maven.plugins</groupId>
467 <artifactId>maven-changelog-plugin</artifactId>
468 <version>2.3</version>
469 <reportSets>
470 <reportSet>
471 <id>dual-report</id>
472 <configuration>
473 <type>range</type>
474 <range>30</range>
475 </configuration>
476 <reports>
477 <report>changelog</report>
478 <report>file-activity</report>
479 </reports>
480 </reportSet>
481 </reportSets>
482 </plugin>
483 <plugin>
484 <groupId>org.codehaus.mojo</groupId>
485 <artifactId>taglist-maven-plugin</artifactId>
486 <version>2.4</version>
487 </plugin>
488 </plugins>
489 </reporting>
490
491
492 <pluginRepositories>
493 <pluginRepository>
494 <id>onap-public</id>
495 <url>${onap.nexus.public-url}</url>
496 <releases>
497 <enabled>true</enabled>
498 </releases>
499 <snapshots>
500 <enabled>true</enabled>
501 </snapshots>
502 </pluginRepository>
503 <pluginRepository>
504 <id>onap-staging</id>
505 <url>${onap.nexus.staging-url}</url>
506 <releases>
507 <enabled>true</enabled>
508 </releases>
509 <snapshots>
510 <enabled>true</enabled>
511 </snapshots>
512 </pluginRepository>
513 <pluginRepository>
514 <id>onap-snapshot</id>
515 <url>${onap.nexus.snapshot-url}</url>
516 <releases>
517 <enabled>false</enabled>
518 </releases>
519 <snapshots>
520 <enabled>true</enabled>
521 </snapshots>
522 </pluginRepository>
523 <pluginRepository>
524 <id>opendaylight-mirror</id>
525 <name>opendaylight-mirror</name>
526 <url>${opendaylight.nexus.public-url}</url>
527 <releases>
528 <enabled>true</enabled>
529 <updatePolicy>never</updatePolicy>
530 </releases>
531 <snapshots>
532 <enabled>false</enabled>
533 </snapshots>
534 </pluginRepository>
535 <pluginRepository>
536 <id>opendaylight-snapshot</id>
537 <name>opendaylight-snapshot</name>
538 <url>${opendaylight.nexus.snapshot-url}</url>
539 <releases>
540 <enabled>false</enabled>
541 </releases>
542 <snapshots>
543 <enabled>true</enabled>
544 </snapshots>
545 </pluginRepository>
546 <!-- Black Duck plugin dependencies -->
547 <pluginRepository>
548 <id>JCenter</id>
549 <name>JCenter Repository</name>
550 <url>http://jcenter.bintray.com</url>
551 </pluginRepository>
552
553 <pluginRepository>
554 <id>Restlet</id>
555 <name>Restlet Repository</name>
556 <url>http://maven.restlet.com</url>
557 </pluginRepository>
558 </pluginRepositories>
559
560
561 <repositories>
562 <repository>
563 <id>onap-public</id>
564 <url>https://nexus.onap.org/content/groups/public</url>
565 <releases>
566 <enabled>true</enabled>
567 <updatePolicy>never</updatePolicy>
568 </releases>
569 <snapshots>
570 <enabled>true</enabled>
571 <updatePolicy>always</updatePolicy>
572 </snapshots>
573 </repository>
574 <repository>
575 <id>onap-staging</id>
576 <url>https://nexus.onap.org/content/groups/staging</url>
577 <releases>
578 <enabled>true</enabled>
579 <updatePolicy>never</updatePolicy>
580 </releases>
581 <snapshots>
582 <enabled>true</enabled>
583 <updatePolicy>always</updatePolicy>
584 </snapshots>
585 </repository>
586 <repository>
587 <id>ecomp-release</id>
588 <name>onap-repository-releases</name>
589 <url>https://nexus.onap.org/content/repositories/releases</url>
590 <releases>
591 <enabled>true</enabled>
592 <updatePolicy>never</updatePolicy>
593 </releases>
594 <snapshots>
595 <enabled>false</enabled>
596 </snapshots>
597 </repository>
598 <repository>
599 <id>ecomp-snapshot</id>
600 <name>onap-repository-snapshots</name>
601 <url>https://nexus.onap.org/content/repositories/snapshots</url>
602 <releases>
603 <enabled>false</enabled>
604 </releases>
605 <snapshots>
606 <enabled>true</enabled>
607 </snapshots>
608 </repository>
609 <repository>
610 <id>opendaylight-mirror</id>
611 <name>opendaylight-mirror</name>
612 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
613 <releases>
614 <enabled>true</enabled>
615 <updatePolicy>never</updatePolicy>
616 </releases>
617 <snapshots>
618 <enabled>false</enabled>
619 </snapshots>
620 </repository>
621 <repository>
622 <id>opendaylight-snapshot</id>
623 <name>opendaylight-snapshot</name>
624 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
625 <releases>
626 <enabled>false</enabled>
627 </releases>
628 <snapshots>
629 <enabled>true</enabled>
630 </snapshots>
631 </repository>
632
633 </repositories>
634
635 <distributionManagement>
636 <repository>
637 <id>ecomp-releases</id>
Timoney, Dan (dt5972)98d374f2018-10-03 19:47:28 -0400638 <url>https://nexus.onap.org/content/repositories/releases</url>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400639 </repository>
640 <snapshotRepository>
641 <id>ecomp-snapshots</id>
Timoney, Dan (dt5972)98d374f2018-10-03 19:47:28 -0400642 <url>https://nexus.onap.org/content/repositories/snapshots</url>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400643 </snapshotRepository>
644 </distributionManagement>
645
646 <build>
647 <pluginManagement>
648 <plugins>
649
650 <!-- Plugins from ONAP oparent -->
651 <plugin>
652 <groupId>org.apache.maven.plugins</groupId>
653 <artifactId>maven-deploy-plugin</artifactId>
654 <!-- This version supports the "deployAtEnd" parameter -->
655 <version>2.8</version>
656 <configuration>
657 <skip/>
658 </configuration>
659 </plugin>
660
661 <plugin>
662 <groupId>org.apache.maven.plugins</groupId>
663 <artifactId>maven-site-plugin</artifactId>
664 <version>3.6</version>
665 <dependencies>
666 <dependency>
667 <groupId>org.apache.maven.wagon</groupId>
668 <artifactId>wagon-webdav-jackrabbit</artifactId>
669 <version>2.10</version>
670 </dependency>
671 <dependency>
672 <groupId>org.apache.maven.doxia</groupId>
673 <artifactId>doxia-core</artifactId>
674 <version>1.7</version>
675 </dependency>
676 <dependency>
677 <groupId>org.apache.maven.doxia</groupId>
678 <artifactId>doxia-sink-api</artifactId>
679 <version>1.7</version>
680 </dependency>
681 <dependency>
682 <groupId>org.apache.maven.doxia</groupId>
683 <artifactId>doxia-logging-api</artifactId>
684 <version>1.7</version>
685 </dependency>
686 </dependencies>
687 <executions>
688 <execution>
689 <id>attach-descriptor</id>
690 <goals>
691 <goal>attach-descriptor</goal>
692 </goals>
693 </execution>
694 </executions>
695 </plugin>
696 <plugin>
697 <artifactId>maven-checkstyle-plugin</artifactId>
698 <version>2.17</version>
699 <dependencies>
700 <dependency>
701 <groupId>org.onap.oparent</groupId>
702 <artifactId>checkstyle</artifactId>
703 <version>1.1.1</version>
704 </dependency>
705 </dependencies>
706 <executions>
707 <execution>
708 <id>check-license</id>
709 <goals>
710 <goal>check</goal>
711 </goals>
712 <phase>process-sources</phase>
713 <configuration>
714 <configLocation>onap-checkstyle/check-license.xml</configLocation>
715 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
716 <includeResources>false</includeResources>
717 <includeTestSourceDirectory>true</includeTestSourceDirectory>
718 <includeTestResources>false</includeTestResources>
719 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
720 <excludes>
721 </excludes>
722 <failsOnError>false</failsOnError>
723 <consoleOutput>true</consoleOutput>
724 </configuration>
725 </execution>
726 <execution>
727 <id>check-style</id>
728 <goals>
729 <goal>check</goal>
730 </goals>
731 <phase>process-sources</phase>
732 <configuration>
733 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
734 with minor changes -->
735 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
736 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
737 sources directory -->
738 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
739 <includeResources>true</includeResources>
740 <includeTestSourceDirectory>true</includeTestSourceDirectory>
741 <includeTestResources>true</includeTestResources>
742 <excludes>
743 </excludes>
744 <failsOnError>false</failsOnError>
745 <consoleOutput>true</consoleOutput>
746 </configuration>
747 </execution>
748 </executions>
749 </plugin>
750 <plugin>
751 <groupId>org.jacoco</groupId>
752 <artifactId>jacoco-maven-plugin</artifactId>
753 <version>${jacoco.version}</version>
754 <configuration>
755 <!-- Note: This exclusion list should match <sonar.exclusions> property
756 above -->
757 <excludes>
758 <exclude>**/gen/**</exclude>
759 <exclude>**/generated-sources/**</exclude>
760 <exclude>**/yang-gen/**</exclude>
761 <exclude>**/pax/**</exclude>
762 </excludes>
763 </configuration>
764 <executions>
765 <!-- Prepares the property pointing to the JaCoCo runtime agent which
766 is passed as VM argument when Maven the Surefire plugin is executed. -->
767 <execution>
768 <id>pre-unit-test</id>
769 <goals>
770 <goal>prepare-agent</goal>
771 </goals>
772 <configuration>
773 <!-- Sets the path to the file which contains the execution data. -->
774 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
775 <!-- Sets the name of the property containing the settings for JaCoCo
776 runtime agent. -->
777 <propertyName>surefireArgLine</propertyName>
778 </configuration>
779 </execution>
780 <!-- Ensures that the code coverage report for unit tests is created
781 after unit tests have been run. -->
782 <execution>
783 <id>post-unit-test</id>
784 <phase>test</phase>
785 <goals>
786 <goal>report</goal>
787 </goals>
788 <configuration>
789 <!-- Sets the path to the file which contains the execution data. -->
790 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
791 <!-- Sets the output directory for the code coverage report. -->
792 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
793 </configuration>
794 </execution>
795 <execution>
796 <id>pre-integration-test</id>
797 <phase>pre-integration-test</phase>
798 <goals>
799 <goal>prepare-agent</goal>
800 </goals>
801 <configuration>
802 <!-- Sets the path to the file which contains the execution data. -->
803 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
804 <!-- Sets the name of the property containing the settings for JaCoCo
805 runtime agent. -->
806 <propertyName>failsafeArgLine</propertyName>
807 </configuration>
808 </execution>
809 <!-- Ensures that the code coverage report for integration tests after
810 integration tests have been run. -->
811 <execution>
812 <id>post-integration-test</id>
813 <phase>post-integration-test</phase>
814 <goals>
815 <goal>report</goal>
816 </goals>
817 <configuration>
818 <!-- Sets the path to the file which contains the execution data. -->
819 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
820 <!-- Sets the output directory for the code coverage report. -->
821 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
822 </configuration>
823 </execution>
824 </executions>
825 </plugin>
826 <plugin>
827 <groupId>org.apache.maven.plugins</groupId>
828 <artifactId>maven-surefire-plugin</artifactId>
829 <version>2.19.1</version>
830 <configuration>
831 <!-- Sets the VM argument line used when unit tests are run. -->
832 <argLine>${surefireArgLine}</argLine>
833 <!-- Excludes integration tests when unit tests are run. -->
834 <excludes>
835 <exclude>**/IT*.java</exclude>
836 </excludes>
837 </configuration>
838 </plugin>
839 <plugin>
840 <groupId>org.apache.maven.plugins</groupId>
841 <artifactId>maven-failsafe-plugin</artifactId>
842 <version>2.19.1</version>
843 <executions>
844 <!-- Ensures that both integration-test and verify goals of the Failsafe
845 Maven plugin are executed. -->
846 <execution>
847 <id>integration-tests</id>
848 <goals>
849 <goal>integration-test</goal>
850 <goal>verify</goal>
851 </goals>
852 <configuration>
853 <!-- Sets the VM argument line used when integration tests are run. -->
854 <argLine>${failsafeArgLine}</argLine>
855 </configuration>
856 </execution>
857 </executions>
858 </plugin>
859 <plugin>
860 <groupId>org.apache.maven.plugins</groupId>
861 <artifactId>maven-compiler-plugin</artifactId>
862 <version>${maven.compile.plugin.version}</version>
863 <configuration>
864 <source>${java.version.source}</source>
865 <target>${java.version.target}</target>
866 </configuration>
867 </plugin>
868 <plugin>
869 <groupId>org.sonarsource.scanner.maven</groupId>
870 <artifactId>sonar-maven-plugin</artifactId>
871 <version>3.3.0.603</version>
872 </plugin>
873
874 <!-- End of plugins from ONAP oparent -->
875
876 <plugin>
877 <groupId>org.apache.maven.plugins</groupId>
878 <artifactId>maven-javadoc-plugin</artifactId>
879 <version>2.10</version>
880 <configuration>
881 <additionalDependencies>
882 <additionalDependency>
883 <groupId>org.slf4j</groupId>
884 <artifactId>slf4j-api</artifactId>
885 <version>${slf4j.version}</version>
886 </additionalDependency>
887 <additionalDependency>
888 <groupId>org.antlr</groupId>
889 <artifactId>antlr4</artifactId>
890 <version>${antlr.version}</version>
891 </additionalDependency>
892 <additionalDependency>
893 <groupId>org.antlr</groupId>
894 <artifactId>antlr4-runtime</artifactId>
895 <version>${antlr.version}</version>
896 </additionalDependency>
897
898 <additionalDependency>
899 <groupId>com.sun.jersey</groupId>
900 <artifactId>jersey-client</artifactId>
901 <version>${jersey.client.version}</version>
902 </additionalDependency>
903 <additionalDependency>
904 <groupId>com.sun.jersey</groupId>
905 <artifactId>jersey-core</artifactId>
906 <version>${jersey.version}</version>
907 </additionalDependency>
908 <additionalDependency>
909 <groupId>org.apache.httpcomponents</groupId>
910 <artifactId>httpcore-osgi</artifactId>
911 <version>${apache.httpcomponents.core.version}</version>
912 </additionalDependency>
913 <additionalDependency>
914 <groupId>org.apache.httpcomponents</groupId>
915 <artifactId>httpclient-osgi</artifactId>
916 <version>${apache.httpcomponents.client.version}</version>
917 </additionalDependency>
918 <additionalDependency>
919 <groupId>commons-lang</groupId>
920 <artifactId>commons-lang</artifactId>
921 <version>${commons.lang.version}</version>
922 </additionalDependency>
923 </additionalDependencies>
924 </configuration>
925
926 <executions>
927 <execution>
928 <id>aggregate</id>
929 <goals>
930 <goal>aggregate</goal>
931 </goals>
932 <phase>site</phase>
933
934 </execution>
935 </executions>
936 </plugin>
937
938 </plugins>
939
940 </pluginManagement>
941
942 <plugins>
943 <!-- Plugins from ONAP oparent -->
944 <plugin>
945 <artifactId>maven-checkstyle-plugin</artifactId>
946 </plugin>
947 <plugin>
948 <groupId>org.codehaus.mojo</groupId>
949 <artifactId>build-helper-maven-plugin</artifactId>
950 <version>1.12</version>
951 </plugin>
952 <!-- Jacoco / Sonar -->
953 <plugin>
954 <groupId>org.jacoco</groupId>
955 <artifactId>jacoco-maven-plugin</artifactId>
956 </plugin>
957 <plugin>
958 <groupId>org.apache.maven.plugins</groupId>
959 <artifactId>maven-surefire-plugin</artifactId>
960 </plugin>
961 <plugin>
962 <groupId>org.apache.maven.plugins</groupId>
963 <artifactId>maven-failsafe-plugin</artifactId>
964 </plugin>
965
966 <!-- End of plugins from ONAP oparent -->
967 <plugin>
968 <groupId>org.codehaus.mojo</groupId>
969 <artifactId>properties-maven-plugin</artifactId>
970 <version>1.0.0</version>
971 <executions>
972 <execution>
973 <goals>
974 <goal>set-system-properties</goal>
975 </goals>
976 <configuration>
977 <properties>
978 <property>
979 <name>maven.wagon.http.ssl.allowall</name>
980 <value>${ssl.allowall}</value>
981 </property>
982 <property>
983 <name>maven.wagon.http.ssl.insecure</name>
984 <value>${ssl.insecure}</value>
985 </property>
986 </properties>
987 </configuration>
988 </execution>
989 </executions>
990 </plugin>
991 <plugin>
Timoney, Dan (dt5972)a4b1a9f2018-09-18 13:53:34 -0400992 <groupId>org.codehaus.mojo</groupId>
993 <artifactId>versions-maven-plugin</artifactId>
994 <version>2.5</version>
995 <configuration>
996 <processAllModules>true</processAllModules>
997 </configuration>
998 </plugin>
999 <plugin>
1000 <artifactId>maven-scm-plugin</artifactId>
1001 <version>1.8.1</version>
1002 <configuration>
1003 <tag>${project.artifactId}-${project.version}</tag>
1004 </configuration>
1005 </plugin>
1006 </plugins>
1007 </build>
1008 <organization>
1009 <name>ONAP</name>
1010 </organization>
1011</project>