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