blob: 7947e71bb4bd9bab8fb4885c496b3cf93b01b3d1 [file] [log] [blame]
Dan Timoney0f2db3f2018-01-25 16:23:27 -05001<?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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
5
6 <modelVersion>4.0.0</modelVersion>
7 <packaging>pom</packaging>
8 <groupId>org.onap.ccsdk.parent</groupId>
9 <artifactId>mdsal-it-parent</artifactId>
Dan Timoney3e77e072018-02-08 15:36:37 -050010 <version>1.0.1-SNAPSHOT</version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050011
12 <parent>
13 <groupId>org.opendaylight.controller</groupId>
14 <artifactId>mdsal-it-parent</artifactId>
15 <version>1.6.1</version>
16 <relativePath />
17 </parent>
18
19
20 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21 <url>http://wiki.onap.org</url>
22 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
23
24
25 <issueManagement>
26 <system>JIRA</system>
27 <url>https://jira.onap.org/</url>
28 </issueManagement>
29
Timoney, Dan (dt5972)b02ff952018-03-05 11:01:26 -050030 <properties>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050031
32 <!--- properties from oparent -->
33 <maven.compiler.source>1.8</maven.compiler.source>
34 <maven.compiler.target>1.8</maven.compiler.target>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
37 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
38 <!-- sitePath may be overridden in the inheriting POM if desired -->
39 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
40 <jacoco.version>0.7.7.201606060606</jacoco.version>
41 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
42 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
43 <!-- Default Sonar configuration -->
44 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
45 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
46 <!-- Note: This list should match jacoco-maven-plugin's exclusion
47 list below -->
48 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
49 <!-- If following file exist, auto-generation of swagger.json will
50 be done -->
51 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
52 <!-- If following file exist, auto-generation of sdk will be done -->
53 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
54 <!--- end of properties from oparent -->
55
56 <!-- ONAP repositories -->
57 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
58 <onap.nexus.port>443</onap.nexus.port>
59 <onap.nexus.protocol>https</onap.nexus.protocol>
60 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
61 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
62 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
63 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
64 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
65 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
66
67
68 <!-- OpenDaylight repositories -->
69 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
70 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
71
72
73 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
74 <java.version.source>1.8</java.version.source>
75 <java.version.target>1.8</java.version.target>
76 <bundle.plugin.version>2.5.0</bundle.plugin.version>
77 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
78 <features.file>features.xml</features.file>
79 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
80 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
81 <checkstyle.skip>true</checkstyle.skip>
82
83
84 <sonar.language>java</sonar.language>
85 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
86 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
87 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
88 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
89 <sonar.projectVersion>${project.version}</sonar.projectVersion>
90
91
92
93
94 <!-- CCSDK component versions -->
Dan Timoney3e77e072018-02-08 15:36:37 -050095 <ccsdk.sli.core.version>0.2.1-SNAPSHOT</ccsdk.sli.core.version>
96 <ccsdk.sli.adaptors.version>0.2.1-SNAPSHOT</ccsdk.sli.adaptors.version>
97 <ccsdk.sli.northbound.version>0.2.1-SNAPSHOT</ccsdk.sli.northbound.version>
98 <ccsdk.sli.plugins.version>0.2.1-SNAPSHOT</ccsdk.sli.plugins.version>
Timoney, Dan (dt5972)b02ff952018-03-05 11:01:26 -050099 <ccsdl.distribution.version>0.2.1-SNAPSHOT</ccsdl.distribution.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500100 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
101 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
102 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
103 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
104 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
105
Timoney, Dan (dt5972)b02ff952018-03-05 11:01:26 -0500106
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500107 <!-- Support libraries used by OpenDaylight -->
Timoney, Dan (dt5972)b02ff952018-03-05 11:01:26 -0500108 <odl.mdsal.version>1.6.1</odl.mdsal.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500109 <!-- Used by aaa, vtn -->
110 <commons.codec.version>1.10</commons.codec.version>
111 <!-- Used by netconf, ovsdb -->
Dan Timoneyf680cc62018-02-15 10:09:28 -0500112 <commons.lang3.version>3.6</commons.lang3.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500113 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
114 <commons.lang.version>2.6</commons.lang.version>
115 <!-- Used by neutron; see also controller, vtn -->
Dan Timoneyf680cc62018-02-15 10:09:28 -0500116 <commons.net.version>3.6</commons.net.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500117 <!-- Used by neutron -->
118 <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
119 <!-- Used by aaa -->
120 <felix.dependencymanager.version>4.3.0</felix.dependencymanager.version>
121 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
Dan Timoneyf680cc62018-02-15 10:09:28 -0500122 <gson.version>2.7</gson.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500123 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
Dan Timoneyf680cc62018-02-15 10:09:28 -0500124 <guava.version>22.0</guava.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500125 <!-- Used by lispflowmapping, sxp, vtn/manager -->
126 <hamcrest.version>1.3</hamcrest.version>
127 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
128 integration/distribution, snmp4sdn, toolkit, ttp -->
129 <jackson.version>2.3.2</jackson.version>
130 <!-- Used by snmp4sdn, yangtools -->
131 <javassist.version>3.20.0-GA</javassist.version>
132
133 <!-- FIXME remove all dependencies for jersey 1.17 after migration
134 all projects -->
135 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity,
136 defense4all, snmp4sdn, toolkit -->
137 <jersey.version>1.17</jersey.version>
138 <!-- Used by sfc -->
139 <jersey.client.version>1.17</jersey.client.version>
140
141 <!-- New packages for jersey migration 1.17 to 2.8 -->
142 <!-- appache.geronimo.bundle for DocGen -->
143 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
144 <org.json.version>20131018</org.json.version>
145
146 <!-- Used by sfc -->
Dan Timoneyf680cc62018-02-15 10:09:28 -0500147 <jettison.version>1.3.7</jettison.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500148 <!-- Used by persistence -->
149 <jsr305.api.version>3.0.0</jsr305.api.version>
150 <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560
151 is fixed (either in PowerMock or with a new JUnit release) -->
152 <!-- Used everywhere -->
153 <junit.version>4.11</junit.version>
154 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity,
155 toolkit -->
Dan Timoneyf680cc62018-02-15 10:09:28 -0500156 <logback.version>1.2.2</logback.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500157 <!-- Used by nic, sfc, sxp, tsdr -->
158 <mockito.version>1.10.19</mockito.version>
159 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
Dan Timoneyf680cc62018-02-15 10:09:28 -0500160 <netty.version>4.1.8.Final</netty.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500161 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also
162 affinity, toolkit -->
163 <slf4j.version>1.7.21</slf4j.version>
164 <!-- Used in integration/distribution; see also affinity, snmp4sdn,
165 toolkit, tsdr, ttp -->
Timoney, Dan (dt5972)b02ff952018-03-05 11:01:26 -0500166 <spring.version>5.0.4.RELEASE</spring.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500167
168
169
170 <!-- Extra support libraries used by SDN-C -->
171 <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
172 <jackson-annotations-version>${jackson.version}</jackson-annotations-version>
173 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
Dan Timoneyf680cc62018-02-15 10:09:28 -0500174 <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
175 <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
Timoney, Dan (dt5972)b02ff952018-03-05 11:01:26 -0500176 <antlr.version>4.7</antlr.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500177 <mysql.connector.version>5.1.39</mysql.connector.version>
178 <mariadb.connector.version>2.1.1</mariadb.connector.version>
179 <h2database.version>1.4.186</h2database.version>
180
181 <tomcat-jdbc.version>8.5.14</tomcat-jdbc.version>
182 </properties>
183
184
185 <profiles>
186 <!-- Profiles from ONAP oparent -->
187 <profile>
188 <id>generate-json</id>
189 <activation>
190 <file>
191 <exists>${swagger-properties}</exists>
192 </file>
193 <property>
194 <name>swagger-sdk.generate-json</name>
195 </property>
196 </activation>
197 <build>
198 <plugins>
199 <plugin>
200 <groupId>org.codehaus.mojo</groupId>
201 <artifactId>properties-maven-plugin</artifactId>
202 <version>1.0.0</version>
203 <executions>
204 <execution>
205 <phase>initialize</phase>
206 <goals>
207 <goal>read-project-properties</goal>
208 </goals>
209 <configuration>
210 <files>
211 <file>${basedir}/src/main/resources/swagger.properties</file>
212 </files>
213 </configuration>
214 </execution>
215 </executions>
216 </plugin>
217 <plugin>
218 <groupId>com.github.kongchen</groupId>
219 <artifactId>swagger-maven-plugin</artifactId>
220 <version>3.1.4</version>
221 <configuration>
222 <apiSources>
223 <apiSource>
224 <locations>${api-rest-package}</locations>
225 <schemes>http,https</schemes>
226 <host>${api-host-ip}:${api-host-port}</host>
227 <basePath>${api-base-path}</basePath>
228 <info>
229 <title>${api-title}</title>
230 <version>${api-version}</version>
231 <description>${api-description}</description>
232 <license>
233 <name>${api-license}</name>
234 </license>
235 </info>
236 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
237 </apiSource>
238 </apiSources>
239 </configuration>
240 <executions>
241 <execution>
242 <phase>compile</phase>
243 <goals>
244 <goal>generate</goal>
245 </goals>
246 </execution>
247 </executions>
248 </plugin>
249 <plugin>
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-install-plugin</artifactId>
252 <version>2.3.1</version>
253 <executions>
254 <execution>
255 <id>install-file-id</id>
256 <phase>install</phase>
257 <goals>
258 <goal>install-file</goal>
259 </goals>
260 <configuration>
261 <file>${basedir}/src/main/resources/swagger.json</file>
262 <groupId>${project.groupId}</groupId>
263 <artifactId>${project.artifactId}-swagger-schema</artifactId>
264 <version>${project.version}</version>
265 <packaging>json</packaging>
266 </configuration>
267 </execution>
268 </executions>
269 </plugin>
270 </plugins>
271 </build>
272 </profile>
273 <profile>
274 <id>generate-sdk</id>
275 <activation>
276 <file>
277 <exists>${swagger-json}</exists>
278 </file>
279 <property>
280 <name>swagger-sdk.generate-java-sdk</name>
281 </property>
282 </activation>
283 <build>
284 <plugins>
285 <plugin>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-antrun-plugin</artifactId>
288 <version>1.8</version>
289 <executions>
290 <execution>
291 <phase>initialize</phase>
292 <id>ant-create-script</id>
293 <configuration>
294 <exportAntProperties>true</exportAntProperties>
295 <tasks>
296
297 <taskdef
298 resource="net/sf/antcontrib/antlib.xml"
299 classpathref="maven.plugin.classpath" />
300 <condition property="is_windows"
301 value="true">
302 <os family="windows" />
303 </condition>
304 <condition property="isLinux"
305 value="true">
306 <os family="unix" />
307 </condition>
308 <if>
309 <equals arg1="${is_windows}"
310 arg2="true" />
311 <then>
312 <property
313 name="swagger.sdk.script.file"
314 value="generated-source-script.bat" />
315 <echo
316 file="${project.build.directory}${file.separator}generated-source-script.bat"
317 append="true"
318 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
319 <echo
320 file="${project.build.directory}${file.separator}generated-source-script.bat"
321 append="true"
322 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
323 </then>
324 <else>
325 <property
326 name="swagger.sdk.script.file"
327 value="generated-source-script.sh" />
328 <echo
329 file="${project.build.directory}${file.separator}generated-source-script.sh"
330 append="true"
331 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
332 <echo
333 file="${project.build.directory}${file.separator}generated-source-script.sh"
334 append="true"
335 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
336 <chmod
337 file="${project.build.directory}${file.separator}generated-source-script.sh"
338 perm="755" />
339 </else>
340 </if>
341 </tasks>
342 </configuration>
343 <goals>
344 <goal>run</goal>
345 </goals>
346 </execution>
347 </executions>
348 <dependencies>
349 <dependency>
350 <groupId>ant-contrib</groupId>
351 <artifactId>ant-contrib</artifactId>
352 <version>1.0b3</version>
353 <exclusions>
354 <exclusion>
355 <artifactId>ant</artifactId>
356 <groupId>ant</groupId>
357 </exclusion>
358 </exclusions>
359 </dependency>
360 </dependencies>
361 </plugin>
362 <plugin>
363 <groupId>io.swagger</groupId>
364 <artifactId>swagger-codegen-maven-plugin</artifactId>
365 <version>2.2.1</version>
366 <executions>
367 <execution>
368 <goals>
369 <goal>generate</goal>
370 </goals>
371 <configuration>
372 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
373 <output>${project.build.directory}/generated-sources</output>
374 <language>java</language>
375 <configOptions>
376 <dateLibrary>joda</dateLibrary>
377 </configOptions>
378 <library>jersey2</library>
379 <groupId>${project.groupId}</groupId>
380 <artifactId>${project.artifactId}-java-sdk</artifactId>
381 <artifactVersion>${project.version}</artifactVersion>
382 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
383 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
384 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
385 </configuration>
386 </execution>
387 </executions>
388 </plugin>
389 <plugin>
390 <artifactId>exec-maven-plugin</artifactId>
391 <groupId>org.codehaus.mojo</groupId>
392 <version>1.5.0</version>
393 <executions>
394 <execution>
395 <id>swagger-generate-sources</id>
396 <phase>generate-sources</phase>
397 <goals>
398 <goal>exec</goal>
399 </goals>
400 <configuration>
401 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
402 </configuration>
403 </execution>
404 </executions>
405 </plugin>
406 <plugin>
407 <groupId>org.apache.maven.plugins</groupId>
408 <artifactId>maven-clean-plugin</artifactId>
409 <version>3.0.0</version>
410 <executions>
411 <execution>
412 <id>clean-generated-files</id>
413 <phase>generate-sources</phase>
414 <goals>
415 <goal>clean</goal>
416 </goals>
417 <configuration>
418 <filesets>
419 <fileset>
420 <directory>${project.build.directory}/generated-sources</directory>
421 </fileset>
422 </filesets>
423 </configuration>
424 </execution>
425 </executions>
426 </plugin>
427 </plugins>
428 </build>
429 <dependencies>
430 <dependency>
431 <groupId>org.onap.msb.swagger-sdk</groupId>
432 <artifactId>swagger-sdk</artifactId>
433 <version>1.0.0</version>
434 </dependency>
435 </dependencies>
436 </profile>
437
438 <!-- End of profiles from ONAP oparent -->
439
440 </profiles>
441
442
443 <dependencyManagement>
444 <dependencies>
445 <dependency>
446 <groupId>org.onap.sdnc.core</groupId>
447 <artifactId>sli-common</artifactId>
448 <version>${sdnctl.sli.version}</version>
449 </dependency>
450
451 <dependency>
452 <groupId>org.onap.sdnc.core</groupId>
453 <artifactId>sli-provider</artifactId>
454 <version>${sdnctl.sli.version}</version>
455 </dependency>
456
457 <dependency>
458 <groupId>org.onap.sdnc.core</groupId>
459 <artifactId>aai-service-provider</artifactId>
460 <version>${sdnctl.aai.service.version}</version>
461 </dependency>
462
463 <dependency>
464 <groupId>org.onap.sdnc.core</groupId>
465 <artifactId>dblib-provider</artifactId>
466 <version>${sdnctl.dblib.version}</version>
467 </dependency>
468 </dependencies>
469
470 </dependencyManagement>
471
472
473 <reporting>
474 <plugins>
475 <plugin>
476 <artifactId>maven-javadoc-plugin</artifactId>
477 <version>2.10.4</version>
478 <configuration>
479 <failOnError>false</failOnError>
480 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
481 <docletArtifact>
482 <groupId>org.umlgraph</groupId>
483 <artifactId>umlgraph</artifactId>
484 <version>5.6</version>
485 </docletArtifact>
486 <additionalparam>-views</additionalparam>
487 <useStandardDocletOptions>true</useStandardDocletOptions>
488 <excludePackageNames>org.opendaylight.*</excludePackageNames>
489 <additionalDependencies>
490 <additionalDependency>
491 <groupId>org.slf4j</groupId>
492 <artifactId>slf4j-api</artifactId>
493 <version>${slf4j.version}</version>
494 </additionalDependency>
495 <additionalDependency>
496 <groupId>org.antlr</groupId>
497 <artifactId>antlr4</artifactId>
498 <version>${antlr.version}</version>
499 </additionalDependency>
500 <additionalDependency>
501 <groupId>org.antlr</groupId>
502 <artifactId>antlr4-runtime</artifactId>
503 <version>${antlr.version}</version>
504 </additionalDependency>
505
506 <additionalDependency>
507 <groupId>com.sun.jersey</groupId>
508 <artifactId>jersey-client</artifactId>
509 <version>${jersey.json.version}</version>
510 </additionalDependency>
511 <additionalDependency>
512 <groupId>com.sun.jersey</groupId>
513 <artifactId>jersey-core</artifactId>
514 <version>${jersey.json.version}</version>
515 </additionalDependency>
516 <additionalDependency>
517 <groupId>org.apache.httpcomponents</groupId>
518 <artifactId>httpcore-osgi</artifactId>
519 <version>${apache.httpcomponents.core.version}</version>
520 </additionalDependency>
521 <additionalDependency>
522 <groupId>org.apache.httpcomponents</groupId>
523 <artifactId>httpclient-osgi</artifactId>
524 <version>${apache.httpcomponents.client.version}</version>
525 </additionalDependency>
526 <additionalDependency>
527 <groupId>com.fasterxml.jackson.core</groupId>
528 <artifactId>jackson-databind</artifactId>
529 <version>${fasterxml.jackson.version}</version>
530 </additionalDependency>
531 <additionalDependency>
532 <groupId>com.fasterxml.jackson.core</groupId>
533 <artifactId>jackson-annotations</artifactId>
534 <version>${fasterxml.jackson.version}</version>
535 </additionalDependency>
536 <additionalDependency>
537 <groupId>com.fasterxml.jackson.core</groupId>
538 <artifactId>jackson-core</artifactId>
539 <version>${fasterxml.jackson.version}</version>
540 </additionalDependency>
541 <additionalDependency>
542 <groupId>commons-lang</groupId>
543 <artifactId>commons-lang</artifactId>
544 <version>${commons.lang.version}</version>
545 </additionalDependency>
546 </additionalDependencies>
547 </configuration>
548 <reportSets>
549 <reportSet>
550 <reports>
551 <report>javadoc-no-fork</report>
552 <report>test-javadoc-no-fork</report>
553 </reports>
554 </reportSet>
555 <reportSet>
556 <id>aggregate</id>
557 <reports>
558 <report>aggregate</report>
559 <report>test-aggregate</report>
560 </reports>
561 </reportSet>
562 </reportSets>
563 </plugin>
564 <plugin>
565 <groupId>org.apache.maven.plugins</groupId>
566 <artifactId>maven-jxr-plugin</artifactId>
567 <version>2.3</version>
568 <reportSets>
569 <reportSet>
570 <id>aggregate</id>
571 <reports>
572 <report>aggregate</report>
573 <report>test-aggregate</report>
574 </reports>
575 </reportSet>
576 </reportSets>
577 </plugin>
578
579 <plugin>
580 <artifactId>maven-surefire-plugin</artifactId>
581 <version>2.17</version>
582 </plugin>
583 <plugin>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-changelog-plugin</artifactId>
586 <version>2.3</version>
587 <reportSets>
588 <reportSet>
589 <id>dual-report</id>
590 <configuration>
591 <type>range</type>
592 <range>30</range>
593 </configuration>
594 <reports>
595 <report>changelog</report>
596 <report>file-activity</report>
597 </reports>
598 </reportSet>
599 </reportSets>
600 </plugin>
601 <plugin>
602 <groupId>org.codehaus.mojo</groupId>
603 <artifactId>taglist-maven-plugin</artifactId>
604 <version>2.4</version>
605 </plugin>
606 </plugins>
607 </reporting>
608
609
610 <pluginRepositories>
611 <pluginRepository>
612 <id>onap-public</id>
613 <url>${onap.nexus.public-url}</url>
614 <releases>
615 <enabled>true</enabled>
616 </releases>
617 <snapshots>
618 <enabled>true</enabled>
619 </snapshots>
620 </pluginRepository>
621 <pluginRepository>
622 <id>onap-snapshot</id>
623 <url>${onap.nexus.snapshot-url}</url>
624 <releases>
625 <enabled>false</enabled>
626 </releases>
627 <snapshots>
628 <enabled>true</enabled>
629 </snapshots>
630 </pluginRepository>
631 <pluginRepository>
632 <id>opendaylight-mirror</id>
633 <name>opendaylight-mirror</name>
634 <url>${opendaylight.nexus.public-url}</url>
635 <releases>
636 <enabled>true</enabled>
637 <updatePolicy>never</updatePolicy>
638 </releases>
639 <snapshots>
640 <enabled>false</enabled>
641 </snapshots>
642 </pluginRepository>
643 <pluginRepository>
644 <id>opendaylight-snapshot</id>
645 <name>opendaylight-snapshot</name>
646 <url>${opendaylight.nexus.snapshot-url}</url>
647 <releases>
648 <enabled>false</enabled>
649 </releases>
650 <snapshots>
651 <enabled>true</enabled>
652 </snapshots>
653 </pluginRepository>
654 <!-- Black Duck plugin dependencies -->
655 <pluginRepository>
656 <id>JCenter</id>
657 <name>JCenter Repository</name>
658 <url>http://jcenter.bintray.com</url>
659 </pluginRepository>
660
661 <pluginRepository>
662 <id>Restlet</id>
663 <name>Restlet Repository</name>
664 <url>http://maven.restlet.com</url>
665 </pluginRepository>
666 </pluginRepositories>
667
668
669 <repositories>
670 <repository>
671 <id>onap-public</id>
672 <url>https://nexus.onap.org/content/groups/public</url>
673 <releases>
674 <enabled>true</enabled>
675 <updatePolicy>never</updatePolicy>
676 </releases>
677 <snapshots>
678 <enabled>true</enabled>
679 <updatePolicy>always</updatePolicy>
680 </snapshots>
681 </repository>
682 <repository>
683 <id>onap-staging</id>
684 <url>https://nexus.onap.org/content/groups/staging</url>
685 <releases>
686 <enabled>true</enabled>
687 <updatePolicy>never</updatePolicy>
688 </releases>
689 <snapshots>
690 <enabled>true</enabled>
691 <updatePolicy>always</updatePolicy>
692 </snapshots>
693 </repository>
694 <repository>
695 <id>ecomp-release</id>
696 <name>onap-repository-releases</name>
697 <url>https://nexus.onap.org/content/repositories/releases</url>
698 <releases>
699 <enabled>true</enabled>
700 <updatePolicy>never</updatePolicy>
701 </releases>
702 <snapshots>
703 <enabled>false</enabled>
704 </snapshots>
705 </repository>
706 <repository>
707 <id>ecomp-snapshot</id>
708 <name>onap-repository-snapshots</name>
709 <url>https://nexus.onap.org/content/repositories/snapshots</url>
710 <releases>
711 <enabled>false</enabled>
712 </releases>
713 <snapshots>
714 <enabled>true</enabled>
715 </snapshots>
716 </repository>
717 <repository>
718 <id>opendaylight-mirror</id>
719 <name>opendaylight-mirror</name>
720 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
721 <releases>
722 <enabled>true</enabled>
723 <updatePolicy>never</updatePolicy>
724 </releases>
725 <snapshots>
726 <enabled>false</enabled>
727 </snapshots>
728 </repository>
729 <repository>
730 <id>opendaylight-snapshot</id>
731 <name>opendaylight-snapshot</name>
732 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
733 <releases>
734 <enabled>false</enabled>
735 </releases>
736 <snapshots>
737 <enabled>true</enabled>
738 </snapshots>
739 </repository>
740
741 </repositories>
742
Dan Timoney45ddb6c2018-02-06 10:19:20 -0500743
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500744 <distributionManagement>
745 <repository>
746 <id>ecomp-releases</id>
Dan Timoney45ddb6c2018-02-06 10:19:20 -0500747 <url>http://nexus.onap.org/content/repositories/releases</url>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500748 </repository>
749 <snapshotRepository>
750 <id>ecomp-snapshots</id>
Dan Timoney45ddb6c2018-02-06 10:19:20 -0500751 <url>http://nexus.onap.org/content/repositories/snapshots</url>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500752 </snapshotRepository>
753 </distributionManagement>
754
755 <build>
756 <pluginManagement>
757 <plugins>
758
759 <!-- Plugins from ONAP oparent -->
760 <plugin>
761 <groupId>org.apache.maven.plugins</groupId>
762 <artifactId>maven-deploy-plugin</artifactId>
763 <!-- This version supports the "deployAtEnd" parameter -->
764 <version>2.8</version>
765 <configuration>
766 <skip />
767 </configuration>
768 </plugin>
769
770 <plugin>
771 <groupId>org.apache.maven.plugins</groupId>
772 <artifactId>maven-site-plugin</artifactId>
773 <version>3.6</version>
774 <dependencies>
775 <dependency>
776 <groupId>org.apache.maven.wagon</groupId>
777 <artifactId>wagon-webdav-jackrabbit</artifactId>
778 <version>2.10</version>
779 </dependency>
780 <dependency>
781 <groupId>org.apache.maven.doxia</groupId>
782 <artifactId>doxia-core</artifactId>
783 <version>1.7</version>
784 </dependency>
785 <dependency>
786 <groupId>org.apache.maven.doxia</groupId>
787 <artifactId>doxia-sink-api</artifactId>
788 <version>1.7</version>
789 </dependency>
790 <dependency>
791 <groupId>org.apache.maven.doxia</groupId>
792 <artifactId>doxia-logging-api</artifactId>
793 <version>1.7</version>
794 </dependency>
795 </dependencies>
796 <executions>
797 <execution>
798 <id>attach-descriptor</id>
799 <goals>
800 <goal>attach-descriptor</goal>
801 </goals>
802 </execution>
803 </executions>
804 </plugin>
805 <plugin>
806 <artifactId>maven-checkstyle-plugin</artifactId>
807 <version>2.17</version>
808 <dependencies>
809 <dependency>
810 <groupId>org.onap.oparent</groupId>
811 <artifactId>checkstyle</artifactId>
812 <version>1.1.0-SNAPSHOT</version>
813 </dependency>
814 </dependencies>
815 <executions>
816 <execution>
817 <id>check-license</id>
818 <goals>
819 <goal>check</goal>
820 </goals>
821 <phase>process-sources</phase>
822 <configuration>
823 <configLocation>onap-checkstyle/check-license.xml</configLocation>
824 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
825 <includeResources>false</includeResources>
826 <includeTestSourceDirectory>true</includeTestSourceDirectory>
827 <includeTestResources>false</includeTestResources>
828 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
829 <excludes>
830 </excludes>
831 <failsOnError>false</failsOnError>
832 <consoleOutput>true</consoleOutput>
833 </configuration>
834 </execution>
835 <execution>
836 <id>check-style</id>
837 <goals>
838 <goal>check</goal>
839 </goals>
840 <phase>process-sources</phase>
841 <configuration>
842 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
843 with minor changes -->
844 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
845 <!-- <sourceDirectory> is needed so that
846 checkstyle ignores the generated sources directory -->
847 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
848 <includeResources>true</includeResources>
849 <includeTestSourceDirectory>true</includeTestSourceDirectory>
850 <includeTestResources>true</includeTestResources>
851 <excludes>
852 </excludes>
853 <failsOnError>false</failsOnError>
854 <consoleOutput>true</consoleOutput>
855 </configuration>
856 </execution>
857 </executions>
858 </plugin>
859 <plugin>
860 <groupId>org.jacoco</groupId>
861 <artifactId>jacoco-maven-plugin</artifactId>
862 <version>${jacoco.version}</version>
863 <configuration>
864 <!-- Note: This exclusion list should match <sonar.exclusions>
865 property above -->
866 <excludes>
867 <exclude>**/gen/**</exclude>
868 <exclude>**/generated-sources/**</exclude>
869 <exclude>**/yang-gen/**</exclude>
870 <exclude>**/pax/**</exclude>
871 </excludes>
872 </configuration>
873 <executions>
874 <!-- Prepares the property pointing to the JaCoCo
875 runtime agent which is passed as VM argument when Maven the Surefire plugin
876 is executed. -->
877 <execution>
878 <id>pre-unit-test</id>
879 <goals>
880 <goal>prepare-agent</goal>
881 </goals>
882 <configuration>
883 <!-- Sets the path to the file which contains
884 the execution data. -->
885 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
886 <!-- Sets the name of the property containing
887 the settings for JaCoCo runtime agent. -->
888 <propertyName>surefireArgLine</propertyName>
889 </configuration>
890 </execution>
891 <!-- Ensures that the code coverage report for unit
892 tests is created after unit tests have been run. -->
893 <execution>
894 <id>post-unit-test</id>
895 <phase>test</phase>
896 <goals>
897 <goal>report</goal>
898 </goals>
899 <configuration>
900 <!-- Sets the path to the file which contains
901 the execution data. -->
902 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
903 <!-- Sets the output directory for the code
904 coverage report. -->
905 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
906 </configuration>
907 </execution>
908 <execution>
909 <id>pre-integration-test</id>
910 <phase>pre-integration-test</phase>
911 <goals>
912 <goal>prepare-agent</goal>
913 </goals>
914 <configuration>
915 <!-- Sets the path to the file which contains
916 the execution data. -->
917 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
918 <!-- Sets the name of the property containing
919 the settings for JaCoCo runtime agent. -->
920 <propertyName>failsafeArgLine</propertyName>
921 </configuration>
922 </execution>
923 <!-- Ensures that the code coverage report for integration
924 tests after integration tests have been run. -->
925 <execution>
926 <id>post-integration-test</id>
927 <phase>post-integration-test</phase>
928 <goals>
929 <goal>report</goal>
930 </goals>
931 <configuration>
932 <!-- Sets the path to the file which contains
933 the execution data. -->
934 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
935 <!-- Sets the output directory for the code
936 coverage report. -->
937 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
938 </configuration>
939 </execution>
940 </executions>
941 </plugin>
942 <plugin>
943 <groupId>org.apache.maven.plugins</groupId>
944 <artifactId>maven-surefire-plugin</artifactId>
945 <version>2.19.1</version>
946 <configuration>
947 <!-- Sets the VM argument line used when unit tests
948 are run. -->
949 <argLine>${surefireArgLine}</argLine>
950 <!-- Excludes integration tests when unit tests are
951 run. -->
952 <excludes>
953 <exclude>**/IT*.java</exclude>
954 </excludes>
955 </configuration>
956 </plugin>
957 <plugin>
958 <groupId>org.apache.maven.plugins</groupId>
959 <artifactId>maven-failsafe-plugin</artifactId>
960 <version>2.19.1</version>
961 <executions>
962 <!-- Ensures that both integration-test and verify
963 goals of the Failsafe Maven plugin are executed. -->
964 <execution>
965 <id>integration-tests</id>
966 <goals>
967 <goal>integration-test</goal>
968 <goal>verify</goal>
969 </goals>
970 <configuration>
971 <!-- Sets the VM argument line used when
972 integration tests are run. -->
973 <argLine>${failsafeArgLine}</argLine>
974 </configuration>
975 </execution>
976 </executions>
977 </plugin>
978 <plugin>
979 <groupId>org.apache.maven.plugins</groupId>
980 <artifactId>maven-compiler-plugin</artifactId>
981 <version>${maven.compile.plugin.version}</version>
982 <configuration>
983 <source>${java.version.source}</source>
984 <target>${java.version.target}</target>
985 </configuration>
986 </plugin>
987 <plugin>
988 <groupId>org.sonarsource.scanner.maven</groupId>
989 <artifactId>sonar-maven-plugin</artifactId>
990 <version>3.3.0.603</version>
991 </plugin>
992
993 <!-- End of plugins from ONAP oparent -->
994
995 <plugin>
996 <groupId>org.apache.maven.plugins</groupId>
997 <artifactId>maven-javadoc-plugin</artifactId>
998 <version>2.10</version>
999 <configuration>
1000 <additionalDependencies>
1001 <additionalDependency>
1002 <groupId>org.slf4j</groupId>
1003 <artifactId>slf4j-api</artifactId>
1004 <version>${slf4j.version}</version>
1005 </additionalDependency>
1006 <additionalDependency>
1007 <groupId>org.antlr</groupId>
1008 <artifactId>antlr4</artifactId>
1009 <version>${antlr.version}</version>
1010 </additionalDependency>
1011 <additionalDependency>
1012 <groupId>org.antlr</groupId>
1013 <artifactId>antlr4-runtime</artifactId>
1014 <version>${antlr.version}</version>
1015 </additionalDependency>
1016
1017 <additionalDependency>
1018 <groupId>com.sun.jersey</groupId>
1019 <artifactId>jersey-client</artifactId>
1020 <version>${jersey.client.version}</version>
1021 </additionalDependency>
1022 <additionalDependency>
1023 <groupId>com.sun.jersey</groupId>
1024 <artifactId>jersey-core</artifactId>
1025 <version>${jersey.version}</version>
1026 </additionalDependency>
1027 <additionalDependency>
1028 <groupId>org.apache.httpcomponents</groupId>
1029 <artifactId>httpcore-osgi</artifactId>
1030 <version>${apache.httpcomponents.core.version}</version>
1031 </additionalDependency>
1032 <additionalDependency>
1033 <groupId>org.apache.httpcomponents</groupId>
1034 <artifactId>httpclient-osgi</artifactId>
1035 <version>${apache.httpcomponents.client.version}</version>
1036 </additionalDependency>
1037 <additionalDependency>
1038 <groupId>com.fasterxml.jackson.core</groupId>
1039 <artifactId>jackson-databind</artifactId>
1040 <version>${jackson.version}</version>
1041 </additionalDependency>
1042 <additionalDependency>
1043 <groupId>com.fasterxml.jackson.core</groupId>
1044 <artifactId>jackson-annotations</artifactId>
1045 <version>${jackson.version}</version>
1046 </additionalDependency>
1047 <additionalDependency>
1048 <groupId>com.fasterxml.jackson.core</groupId>
1049 <artifactId>jackson-core</artifactId>
1050 <version>${jackson.version}</version>
1051 </additionalDependency>
1052 <additionalDependency>
1053 <groupId>commons-lang</groupId>
1054 <artifactId>commons-lang</artifactId>
1055 <version>${commons.lang.version}</version>
1056 </additionalDependency>
1057 </additionalDependencies>
1058 </configuration>
1059
1060 <executions>
1061 <execution>
1062 <id>aggregate</id>
1063 <goals>
1064 <goal>aggregate</goal>
1065 </goals>
1066 <phase>site</phase>
1067
1068 </execution>
1069 </executions>
1070 </plugin>
1071 <plugin>
1072 <artifactId>maven-source-plugin</artifactId>
1073 <version>2.1.1</version>
1074 <executions>
1075 <execution>
1076 <id>bundle-sources</id>
1077 <phase>package</phase>
1078 <goals>
1079 <!-- produce source artifact for main project
1080 sources -->
1081 <goal>jar-no-fork</goal>
1082
1083 <!-- produce source artifact for project
1084 test sources -->
1085 <goal>test-jar-no-fork</goal>
1086 </goals>
1087 </execution>
1088 </executions>
1089 </plugin>
1090
1091
1092 </plugins>
1093
1094 </pluginManagement>
1095
1096 <plugins>
1097 <!-- Plugins from ONAP oparent -->
1098 <plugin>
1099 <artifactId>maven-checkstyle-plugin</artifactId>
1100 </plugin>
1101 <plugin>
1102 <groupId>org.codehaus.mojo</groupId>
1103 <artifactId>build-helper-maven-plugin</artifactId>
1104 <version>1.12</version>
1105 </plugin>
1106 <!-- Jacoco / Sonar -->
1107 <plugin>
1108 <groupId>org.jacoco</groupId>
1109 <artifactId>jacoco-maven-plugin</artifactId>
1110 </plugin>
1111 <plugin>
1112 <groupId>org.apache.maven.plugins</groupId>
1113 <artifactId>maven-surefire-plugin</artifactId>
1114 </plugin>
1115 <plugin>
1116 <groupId>org.apache.maven.plugins</groupId>
1117 <artifactId>maven-failsafe-plugin</artifactId>
1118 </plugin>
1119
1120 <!-- End of plugins from ONAP oparent -->
1121 <plugin>
1122 <groupId>org.codehaus.mojo</groupId>
1123 <artifactId>properties-maven-plugin</artifactId>
1124 <version>1.0.0</version>
1125 <executions>
1126 <execution>
1127 <goals>
1128 <goal>set-system-properties</goal>
1129 </goals>
1130 <configuration>
1131 <properties>
1132 <property>
1133 <name>maven.wagon.http.ssl.allowall</name>
1134 <value>${ssl.allowall}</value>
1135 </property>
1136 <property>
1137 <name>maven.wagon.http.ssl.insecure</name>
1138 <value>${ssl.insecure}</value>
1139 </property>
1140 </properties>
1141 </configuration>
1142 </execution>
1143 </executions>
1144 </plugin>
1145 <plugin>
1146 <groupId>org.sonatype.plugins</groupId>
1147 <artifactId>nexus-staging-maven-plugin</artifactId>
1148 <version>1.6.7</version>
1149 <extensions>true</extensions>
1150 <configuration>
1151 <nexusUrl>${onap.nexus.url}</nexusUrl>
1152 <stagingProfileId>176c31dfe190a</stagingProfileId>
1153 <serverId>ecomp-staging</serverId>
1154 </configuration>
1155 </plugin>
1156 <plugin>
1157 <groupId>org.codehaus.mojo</groupId>
1158 <artifactId>versions-maven-plugin</artifactId>
Dan Timoney1f55bc82018-02-12 10:35:37 -05001159 <version>2.5</version>
1160 <configuration>
1161 <processAllModules>true</processAllModules>
1162 </configuration>
Dan Timoney0f2db3f2018-01-25 16:23:27 -05001163 </plugin>
1164 <plugin>
1165 <artifactId>maven-scm-plugin</artifactId>
1166 <version>1.8.1</version>
1167 <configuration>
1168 <tag>${project.artifactId}-${project.version}</tag>
1169 </configuration>
1170 </plugin>
1171 </plugins>
1172 </build>
1173 <organization>
1174 <name>ONAP</name>
1175 </organization>
1176</project>