blob: ad6b7ba3161745ec467e24b2ad43718f436497f4 [file] [log] [blame]
Dan Timoney0f2db3f2018-01-25 16:23:27 -05001<?xml version="1.0" encoding="UTF-8"?>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04002<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05003 <modelVersion>4.0.0</modelVersion>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04004
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05005 <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/setup/src/main/template/pom-template.xml
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -04006 Any updates needed should be made to that template and not to the generated
7 pom.xml file -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05008 <parent>
9 <groupId>org.opendaylight.odlparent</groupId>
10 <artifactId>bundle-parent</artifactId>
Michael Dürre2c39a4d2020-07-06 06:22:15 +020011 <version>5.0.7</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050012 <relativePath/>
13 </parent>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050014
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050015 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>bundle-parent</artifactId>
Dan Timoneyaf076a92020-08-06 12:35:38 -040017 <version>2.0.1-SNAPSHOT</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050018 <packaging>pom</packaging>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050019
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050020 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
22 <url>http://wiki.onap.org</url>
23 <organization>
24 <name>ONAP</name>
25 </organization>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050026
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050027 <issueManagement>
28 <system>JIRA</system>
29 <url>https://jira.onap.org/</url>
30 </issueManagement>
31 <distributionManagement>
32 <repository>
33 <id>ecomp-releases</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050034 <url>${onap.nexus.release-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050035 </repository>
36 <snapshotRepository>
37 <id>ecomp-snapshots</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050038 <url>${onap.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050039 </snapshotRepository>
40 </distributionManagement>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050041
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050042 <properties>
Dan Timoney621888e2020-01-17 09:54:02 -050043 <!-- Sonar properties -->
44 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
45 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
46 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
47 <!-- Default Sonar configuration -->
48 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
49 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
50 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
51
52 <!-- Jacoco properties -->
53 <jacoco.version>0.8.5</jacoco.version>
54
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050055 <!-- properties from oparent -->
Michael Dürre2c39a4d2020-07-06 06:22:15 +020056 <maven.compiler.source>8</maven.compiler.source>
57 <maven.compiler.target>8</maven.compiler.target>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050058 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
59 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
60 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
61 <!-- sitePath may be overridden in the inheriting POM if desired -->
62 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
Singal, Kapil (ks220y)e14c10b2020-01-07 11:54:24 -050063
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050064 <!-- If following file exist, auto-generation of swagger.json will be done -->
65 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
66 <!-- If following file exist, auto-generation of sdk will be done -->
67 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
68 <!-- end of properties from oparent -->
Dan Timoney0f2db3f2018-01-25 16:23:27 -050069
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050070 <!-- ONAP repositories -->
71 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
72 <onap.nexus.port>443</onap.nexus.port>
73 <onap.nexus.protocol>https</onap.nexus.protocol>
74 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
75 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
76 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
77 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
78 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
79 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050080
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050081 <!-- OpenDaylight repositories -->
82 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
83 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050084
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050085 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Michael Dürre2c39a4d2020-07-06 06:22:15 +020086 <java.version.source>8</java.version.source>
87 <java.version.target>8</java.version.target>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050088 <bundle.plugin.version>2.5.0</bundle.plugin.version>
89 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
90 <features.file>features.xml</features.file>
91 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
92 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
93 <checkstyle.skip>true</checkstyle.skip>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050094
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +000095 <!-- logging-analytics versions -->
Smokowski, Kevin (ks6305)3c69d3a2020-03-24 15:56:42 +000096 <logging-analytics.version>1.6.6</logging-analytics.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -050097
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -050098 <!-- CCSDK component versions -->
Dan Timoney2fce2f52020-03-24 08:40:37 -040099 <ccsdk.cds.version>1.0.0-SNAPSHOT</ccsdk.cds.version>
Singal, Kapil (ks220y)31a81942020-08-21 11:30:21 -0400100 <ccsdk.features.version>1.0.1-SNAPSHOT</ccsdk.features.version>
101 <ccsdk.sli.core.version>1.0.1-SNAPSHOT</ccsdk.sli.core.version>
102 <ccsdk.sli.adaptors.version>1.0.1-SNAPSHOT</ccsdk.sli.adaptors.version>
103 <ccsdk.sli.northbound.version>1.0.1-SNAPSHOT</ccsdk.sli.northbound.version>
104 <ccsdk.sli.plugins.version>1.0.1-SNAPSHOT</ccsdk.sli.plugins.version>
Dan Timoney2fce2f52020-03-24 08:40:37 -0400105 <ccsdk.distribution.version>1.0.0-SNAPSHOT</ccsdk.distribution.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500106 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
107 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
108 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
109 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
110 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500111
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500112 <!-- Support libraries used by OpenDaylight -->
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200113 <odl.controller.mdsal.version>1.10.3</odl.controller.mdsal.version>
114 <odl.mdsal.version>4.0.14</odl.mdsal.version>
115 <odl.mdsal.model.version>2.0.14</odl.mdsal.model.version>
116 <odl.netconf.restconf.version>1.10.3</odl.netconf.restconf.version>
117 <odl.netconf.netconf.version>1.7.3</odl.netconf.netconf.version>
118 <odl.netconf.sal.rest.docgen.version>1.10.3</odl.netconf.sal.rest.docgen.version>
Timoney, Dan (dt5972)135e4072019-07-01 13:08:58 -0400119
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500120 <!-- Used by aaa, vtn -->
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200121 <commons.codec.version>1.13</commons.codec.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500122 <!-- Used by netconf, ovsdb -->
123 <commons.lang3.version>3.8.1</commons.lang3.version>
124 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
125 <commons.lang.version>2.6</commons.lang.version>
126 <!-- Used by neutron; see also controller, vtn -->
127 <commons.net.version>3.6</commons.net.version>
128 <!-- Used by neutron -->
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200129 <eclipse.persistence.version>2.7.4</eclipse.persistence.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500130 <!-- Used by aaa -->
131 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
132 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
133 <gson.version>2.8.5</gson.version>
134 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
135 <guava.version>25.1-jre</guava.version>
136 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400137 integration/distribution, snmp4sdn, toolkit, ttp -->
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200138 <jackson.version>2.9.10</jackson.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500139 <!-- Used by snmp4sdn, yangtools -->
140 <javassist.version>3.24.1-GA</javassist.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500141
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500142 <!-- FIXME remove all dependencies for jersey 1.17 after migration all projects -->
143 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all, snmp4sdn, toolkit -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500144 <jersey.version>2.25.1</jersey.version>
145 <!-- Used by sfc -->
146 <jersey.client.version>2.25.1</jersey.client.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500147
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500148 <!-- New packages for jersey migration 1.17 to 2.8 -->
149 <!-- appache.geronimo.bundle for DocGen -->
150 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
151 <org.json.version>20131018</org.json.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500152
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500153 <!-- Used everywhere -->
154 <junit.version>4.12</junit.version>
155 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
156 <logback.version>1.2.3</logback.version>
157 <!-- 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 -->
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200160 <netty.version>4.1.42.Final</netty.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500161 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500162 <slf4j.version>1.7.25</slf4j.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500163 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
Singal, Kapil (ks220y)b5adc452020-02-20 13:53:41 -0500164 <spring.version>4.3.25.RELEASE</spring.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500165
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500166 <!-- Extra support libraries used by SDN-C -->
167 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
168 <antlr.version>4.7.2</antlr.version>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500169
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500170 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
Timoney, Dan (dt5972)ebc00be2018-03-21 09:00:19 -0400171
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500172 <!-- Managed dependency versions -->
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500173 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
174 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500175 <derby.version>10.14.2.0</derby.version>
176 <eelf.version>1.0.0</eelf.version>
Timoney, Dan (dt5972)48f55772019-12-17 10:44:04 -0500177 <grpc.version>1.21.1</grpc.version>
178 <mariadb.connector.version>2.4.4</mariadb.connector.version>
179 <mariadb4j.version>2.4.0</mariadb4j.version>
180 <testng.version>6.14.3</testng.version>
Rich Tabedzkifce995d2020-03-11 11:06:57 -0400181 <tomcat-jdbc.version>9.0.30</tomcat-jdbc.version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500182 <jetty.version>9.4.12.v20180830</jetty.version>
183 <skip.karaf.featureTest>true</skip.karaf.featureTest>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500184 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500185 </properties>
Dan Timoney0f2db3f2018-01-25 16:23:27 -0500186
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500187 <dependencyManagement>
188 <dependencies>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500189 <!-- Note: If value in BOM conflicts with value inherited from
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400190 parent pom, inherited value takes precedence. This seems more like
191 a bug than a feature, but this is how maven 3.6 works -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500192 <dependency>
193 <groupId>org.onap.ccsdk.parent</groupId>
194 <artifactId>dependencies-odl-bom</artifactId>
Dan Timoneyaf076a92020-08-06 12:35:38 -0400195 <version>2.0.1-SNAPSHOT</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500196 <type>pom</type>
197 <scope>import</scope>
198 </dependency>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500199 <dependency>
200 <groupId>org.onap.logging-analytics</groupId>
201 <artifactId>logging-slf4j</artifactId>
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +0000202 <version>${logging-analytics.version}</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500203 </dependency>
204 <dependency>
205 <groupId>org.onap.logging-analytics</groupId>
206 <artifactId>logging-filter-base</artifactId>
Smokowski, Kevin (ks6305)9548ff82020-02-06 18:33:18 +0000207 <version>${logging-analytics.version}</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500208 </dependency>
Singal, Kapil (ks220y)ffff34a2020-02-27 11:02:51 -0500209 <dependency>
210 <groupId>junit</groupId>
211 <artifactId>junit</artifactId>
212 <version>${junit.version}</version>
213 <scope>test</scope>
214 </dependency>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500215 </dependencies>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500216 </dependencyManagement>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400217
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500218 <repositories>
219 <repository>
220 <id>onap-public</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500221 <url>${onap.nexus.public-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500222 <releases>
223 <enabled>true</enabled>
224 <updatePolicy>never</updatePolicy>
225 </releases>
226 <snapshots>
227 <enabled>true</enabled>
228 <updatePolicy>always</updatePolicy>
229 </snapshots>
230 </repository>
231 <repository>
232 <id>onap-staging</id>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500233 <url>${onap.nexus.staging-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500234 <releases>
235 <enabled>true</enabled>
236 <updatePolicy>never</updatePolicy>
237 </releases>
238 <snapshots>
239 <enabled>true</enabled>
240 <updatePolicy>always</updatePolicy>
241 </snapshots>
242 </repository>
243 <repository>
244 <id>ecomp-release</id>
245 <name>onap-repository-releases</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500246 <url>${onap.nexus.release-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500247 <releases>
248 <enabled>true</enabled>
249 <updatePolicy>never</updatePolicy>
250 </releases>
251 <snapshots>
252 <enabled>false</enabled>
253 </snapshots>
254 </repository>
255 <repository>
256 <id>ecomp-snapshot</id>
257 <name>onap-repository-snapshots</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500258 <url>${onap.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500259 <releases>
260 <enabled>false</enabled>
261 </releases>
262 <snapshots>
263 <enabled>true</enabled>
264 </snapshots>
265 </repository>
266 <repository>
267 <id>opendaylight-mirror</id>
268 <name>opendaylight-mirror</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500269 <url>${opendaylight.nexus.public-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500270 <releases>
271 <enabled>true</enabled>
272 <updatePolicy>never</updatePolicy>
273 </releases>
274 <snapshots>
275 <enabled>false</enabled>
276 </snapshots>
277 </repository>
278 <repository>
279 <id>opendaylight-snapshot</id>
280 <name>opendaylight-snapshot</name>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500281 <url>${opendaylight.nexus.snapshot-url}</url>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500282 <releases>
283 <enabled>false</enabled>
284 </releases>
285 <snapshots>
286 <enabled>true</enabled>
287 </snapshots>
288 </repository>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400289
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500290 </repositories>
291 <pluginRepositories>
292 <pluginRepository>
293 <id>onap-public</id>
294 <url>${onap.nexus.public-url}</url>
295 <releases>
296 <enabled>true</enabled>
297 </releases>
298 <snapshots>
299 <enabled>true</enabled>
300 </snapshots>
301 </pluginRepository>
302 <pluginRepository>
303 <id>onap-staging</id>
304 <url>${onap.nexus.staging-url}</url>
305 <releases>
306 <enabled>true</enabled>
307 </releases>
308 <snapshots>
309 <enabled>true</enabled>
310 </snapshots>
311 </pluginRepository>
312 <pluginRepository>
313 <id>onap-snapshot</id>
314 <url>${onap.nexus.snapshot-url}</url>
315 <releases>
316 <enabled>false</enabled>
317 </releases>
318 <snapshots>
319 <enabled>true</enabled>
320 </snapshots>
321 </pluginRepository>
322 <pluginRepository>
323 <id>opendaylight-mirror</id>
324 <name>opendaylight-mirror</name>
325 <url>${opendaylight.nexus.public-url}</url>
326 <releases>
327 <enabled>true</enabled>
328 <updatePolicy>never</updatePolicy>
329 </releases>
330 <snapshots>
331 <enabled>false</enabled>
332 </snapshots>
333 </pluginRepository>
334 <pluginRepository>
335 <id>opendaylight-snapshot</id>
336 <name>opendaylight-snapshot</name>
337 <url>${opendaylight.nexus.snapshot-url}</url>
338 <releases>
339 <enabled>false</enabled>
340 </releases>
341 <snapshots>
342 <enabled>true</enabled>
343 </snapshots>
344 </pluginRepository>
345 <!-- Black Duck plugin dependencies -->
346 <pluginRepository>
347 <id>JCenter</id>
348 <name>JCenter Repository</name>
349 <url>http://jcenter.bintray.com</url>
350 </pluginRepository>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400351
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500352 <pluginRepository>
353 <id>Restlet</id>
354 <name>Restlet Repository</name>
355 <url>http://maven.restlet.com</url>
356 </pluginRepository>
357 </pluginRepositories>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400358
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500359 <build>
360 <pluginManagement>
361 <plugins>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500362 <!-- Plugins from ONAP version (parent of oparent) -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500363 <plugin>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-deploy-plugin</artifactId>
366 <!-- This version supports the "deployAtEnd" parameter -->
367 <version>2.8</version>
368 <configuration>
369 <skip/>
370 </configuration>
371 </plugin>
372 <plugin>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-site-plugin</artifactId>
375 <version>3.6</version>
376 <dependencies>
377 <dependency>
378 <groupId>org.apache.maven.wagon</groupId>
379 <artifactId>wagon-webdav-jackrabbit</artifactId>
380 <version>2.10</version>
381 </dependency>
382 </dependencies>
383 </plugin>
384 <plugin>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-enforcer-plugin</artifactId>
387 <version>3.0.0-M2</version>
388 <executions>
389 <execution>
390 <id>enforce-property</id>
391 <goals>
392 <goal>enforce</goal>
393 </goals>
394 <configuration>
395 <rules>
396 <requireProperty>
397 <property>onap.nexus.url</property>
398 <message>You must set a onap.nexus.url property in your
399 ~/.m2/settings.xml. See oparent/settings.xml for an example.
400 </message>
401 </requireProperty>
402 </rules>
403 <fail>true</fail>
404 </configuration>
405 </execution>
406 <execution>
407 <id>enforce-no-snapshots</id>
408 <goals>
409 <goal>enforce</goal>
410 </goals>
411 <configuration>
412 <rules>
413 <requireReleaseDeps>
414 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
415 <onlyWhenRelease>true</onlyWhenRelease>
416 <level>WARN</level>
417 </requireReleaseDeps>
418 </rules>
419 </configuration>
420 </execution>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200421 <execution>
422 <id>enforce-maven</id>
423 <goals>
424 <goal>enforce</goal>
425 </goals>
426 <configuration>
427 <rules>
428 <requireJavaVersion>
429 <version>8</version>
430 </requireJavaVersion>
431 <requireMavenVersion>
432 <version>[3.5.0,)</version>
433 </requireMavenVersion>
434 </rules>
435 </configuration>
436 </execution>
437 <execution>
438 <id>enforce-banned-dependencies</id>
439 <goals>
440 <goal>enforce</goal>
441 </goals>
442 <configuration>
443 <rules>
444 <bannedDependencies>
445 <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
446 <excludes>
447 <exclude>org.mockito:mockito-all</exclude>
448 <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
449 </excludes>
450 </bannedDependencies>
451 </rules>
452 <fail>true</fail>
453 </configuration>
454 </execution>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500455 </executions>
456 </plugin>
457 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
458 <plugin>
459 <groupId>org.sonarsource.scanner.maven</groupId>
460 <artifactId>sonar-maven-plugin</artifactId>
Dan Timoney621888e2020-01-17 09:54:02 -0500461 <version>${sonar.scanner.version}</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500462 </plugin>
463 <!-- end of plugins from ONAP version (parent of oparent) -->
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400464
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500465 <!-- Plugins from ONAP oparent -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500466 <plugin>
467 <groupId>org.apache.maven.plugins</groupId>
468 <artifactId>maven-surefire-plugin</artifactId>
469 <version>2.22.0</version>
470 <configuration>
471 <!-- Sets the VM argument line used when unit tests are run. -->
472 <argLine>${surefireArgLine}</argLine>
473 <!-- Excludes integration tests when unit tests are run. -->
474 <excludes>
475 <exclude>**/IT*.java</exclude>
476 </excludes>
477 </configuration>
478 </plugin>
479 <plugin>
480 <groupId>org.apache.maven.plugins</groupId>
481 <artifactId>maven-failsafe-plugin</artifactId>
482 <version>2.22.0</version>
483 <executions>
484 <!-- Ensures that both integration-test and verify goals of the Failsafe
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400485 Maven plugin are executed. -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500486 <execution>
487 <id>integration-tests</id>
488 <goals>
489 <goal>integration-test</goal>
490 <goal>verify</goal>
491 </goals>
492 <configuration>
493 <!-- Sets the VM argument line used when integration tests are run. -->
494 <argLine>${failsafeArgLine}</argLine>
495 </configuration>
496 </execution>
497 </executions>
498 </plugin>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400499
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500500 <!-- End of plugins from ONAP oparent -->
501 <plugin>
502 <groupId>org.codehaus.mojo</groupId>
503 <artifactId>properties-maven-plugin</artifactId>
504 <version>1.0.0</version>
505 <executions>
506 <execution>
507 <goals>
508 <goal>set-system-properties</goal>
509 </goals>
510 <configuration>
511 <properties>
512 <property>
513 <name>maven.wagon.http.ssl.allowall</name>
514 <value>${ssl.allowall}</value>
515 </property>
516 <property>
517 <name>maven.wagon.http.ssl.insecure</name>
518 <value>${ssl.insecure}</value>
519 </property>
520 </properties>
521 </configuration>
522 </execution>
523 </executions>
524 </plugin>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400525
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500526 <plugin>
527 <groupId>org.codehaus.mojo</groupId>
528 <artifactId>versions-maven-plugin</artifactId>
529 <version>2.5</version>
530 <configuration>
531 <processAllModules>true</processAllModules>
532 </configuration>
533 </plugin>
534 <plugin>
535 <artifactId>maven-scm-plugin</artifactId>
536 <version>1.8.1</version>
537 <configuration>
538 <tag>${project.artifactId}-${project.version}</tag>
539 </configuration>
540 </plugin>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500541 <plugin>
542 <groupId>com.github.ferstl</groupId>
543 <artifactId>depgraph-maven-plugin</artifactId>
544 <version>3.3.0</version>
545 <configuration>
546 <graphFormat>text</graphFormat>
547 <outputFileName>${dependency-list.file}</outputFileName>
548 <outputDirectory>${project.basedir}</outputDirectory>
549 <transitiveExcludes>*</transitiveExcludes>
550 <showVersions>true</showVersions>
Timoney, Dan (dt5972)cc0c96a2019-12-11 10:04:52 -0500551 <showGroupIds>true</showGroupIds>
Timoney, Dan (dt5972)94fcbc22019-12-10 09:18:51 -0500552 </configuration>
553 </plugin>
Michael Dürre66430cc2020-08-24 14:39:08 +0200554 <plugin>
555 <groupId>de.jacks-it-lab</groupId>
556 <artifactId>frontend-maven-plugin</artifactId>
557 <version>1.7.2</version>
558 </plugin>
559 <plugin>
560 <groupId>com.github.alexcojocaru</groupId>
561 <artifactId>elasticsearch-maven-plugin</artifactId>
562 <version>6.16</version>
563 <configuration>
564 <version>7.1.1</version>
565 </configuration>
566 </plugin>
Dan Timoneye816a592020-09-03 08:56:01 -0400567 <plugin>
568 <groupId>org.apache.maven.plugins</groupId>
569 <artifactId>maven-javadoc-plugin</artifactId>
570 <version>3.2.0</version>
571 <configuration>
572 <failOnError>false</failOnError>
573 </configuration>
574 </plugin>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500575 </plugins>
576 </pluginManagement>
577 <plugins>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400578
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500579 <!-- Plugins from oparent version (parent of oparent) -->
580 <plugin>
581 <groupId>org.apache.maven.plugins</groupId>
582 <artifactId>maven-deploy-plugin</artifactId>
583 </plugin>
584 <plugin>
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-site-plugin</artifactId>
587 </plugin>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500588 <!-- end of plugins from oparent version (parent of oparent) -->
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400589
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500590 <!-- Plugins from oparent -->
591 <plugin>
592 <artifactId>maven-checkstyle-plugin</artifactId>
593 <version>2.17</version>
594 <dependencies>
595 <dependency>
596 <groupId>org.onap.oparent</groupId>
597 <artifactId>checkstyle</artifactId>
598 <version>1.2.2</version>
599 </dependency>
600 </dependencies>
601 <executions>
602 <execution>
603 <id>onap-license</id>
604 <goals>
605 <goal>check</goal>
606 </goals>
607 <phase>process-sources</phase>
608 <configuration>
609 <configLocation>onap-checkstyle/check-license.xml</configLocation>
610 <includeResources>false</includeResources>
611 <includeTestSourceDirectory>true</includeTestSourceDirectory>
612 <includeTestResources>false</includeTestResources>
613 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
614 <excludes>
615 </excludes>
616 <consoleOutput>true</consoleOutput>
617 <failOnViolation>false</failOnViolation>
618 </configuration>
619 </execution>
620 <execution>
621 <id>onap-java-style</id>
622 <goals>
623 <goal>check</goal>
624 </goals>
625 <phase>process-sources</phase>
626 <configuration>
627 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400628 with minor changes -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500629 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500630 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500631 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
632 <includeResources>true</includeResources>
633 <includeTestSourceDirectory>true</includeTestSourceDirectory>
634 <includeTestResources>true</includeTestResources>
635 <excludes>
636 </excludes>
637 <consoleOutput>true</consoleOutput>
638 <failOnViolation>false</failOnViolation>
639 </configuration>
640 </execution>
641 </executions>
642 </plugin>
643 <plugin>
644 <groupId>org.codehaus.mojo</groupId>
645 <artifactId>build-helper-maven-plugin</artifactId>
646 <version>1.12</version>
647 </plugin>
648 <!-- Jacoco / Sonar -->
649 <plugin>
650 <groupId>org.jacoco</groupId>
651 <artifactId>jacoco-maven-plugin</artifactId>
Dan Timoney621888e2020-01-17 09:54:02 -0500652 <version>${jacoco.version}</version>
653 <executions>
654 <execution>
655 <id>pre-unit-test</id>
656 <goals>
657 <goal>prepare-agent</goal>
658 </goals>
659 <configuration>
660 <!-- Sets the path to the file which contains the execution data. -->
661 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500662 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500663 <propertyName>surefireArgLine</propertyName>
664 </configuration>
665 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500666 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500667 <execution>
668 <id>post-unit-test</id>
669 <phase>test</phase>
670 <goals>
671 <goal>report</goal>
672 </goals>
673 <configuration>
674 <!-- Sets the path to the file which contains the execution data. -->
675 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
676 <!-- Sets the output directory for the code coverage report. -->
677 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
678 </configuration>
679 </execution>
680 <execution>
681 <id>pre-integration-test</id>
682 <phase>pre-integration-test</phase>
683 <goals>
684 <goal>prepare-agent</goal>
685 </goals>
686 <configuration>
687 <!-- Sets the path to the file which contains the execution data. -->
688 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500689 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500690 <propertyName>failsafeArgLine</propertyName>
691 </configuration>
692 </execution>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500693 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
Dan Timoney621888e2020-01-17 09:54:02 -0500694 <execution>
695 <id>post-integration-test</id>
696 <phase>post-integration-test</phase>
697 <goals>
698 <goal>report</goal>
699 </goals>
700 <configuration>
701 <!-- Sets the path to the file which contains the execution data. -->
702 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
703 <!-- Sets the output directory for the code coverage report. -->
704 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
705 </configuration>
706 </execution>
707 <execution>
708 <id>default-prepare-agent</id>
709 <goals>
710 <goal>prepare-agent</goal>
711 </goals>
712 </execution>
713 <execution>
714 <id>default-report</id>
715 <phase>prepare-package</phase>
716 <goals>
717 <goal>report</goal>
718 </goals>
719 </execution>
720 <execution>
721 <id>default-check</id>
722 <goals>
723 <goal>check</goal>
724 </goals>
725 <configuration>
726 <rules>
727 <rule>
728 <element>PACKAGE</element>
729 <limits>
730 <limit>
731 <counter>COMPLEXITY</counter>
732 <value>COVEREDRATIO</value>
733 <minimum>0.0</minimum>
734 </limit>
735 </limits>
736 </rule>
737 </rules>
738 </configuration>
739 </execution>
740 </executions>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500741 </plugin>
742 <plugin>
743 <groupId>org.apache.maven.plugins</groupId>
744 <artifactId>maven-surefire-plugin</artifactId>
745 </plugin>
746 <plugin>
747 <groupId>org.apache.maven.plugins</groupId>
748 <artifactId>maven-failsafe-plugin</artifactId>
749 </plugin>
750 <!-- end of plugins from oparent -->
751 <plugin>
752 <groupId>org.apache.maven.plugins</groupId>
753 <artifactId>maven-javadoc-plugin</artifactId>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500754 <executions>
755 <execution>
756 <id>attach-javadocs</id>
757 <goals>
758 <goal>jar</goal>
759 </goals>
760 <configuration>
761 <additionalparam>-Xdoclint:none</additionalparam>
762 </configuration>
763 </execution>
764 </executions>
765 </plugin>
Michael Dürre2c39a4d2020-07-06 06:22:15 +0200766 <plugin>
767 <artifactId>maven-enforcer-plugin</artifactId>
768 <version>3.0.0-M2</version>
769 <executions>
770 <execution>
771 <id>enforce-property</id>
772 <goals>
773 <goal>enforce</goal>
774 </goals>
775 <configuration>
776 <rules>
777 <requireProperty>
778 <property>onap.nexus.url</property>
779 <message>You must set a onap.nexus.url property in your
780 ~/.m2/settings.xml. See oparent/settings.xml for an example.</message>
781 </requireProperty>
782 </rules>
783 <fail>true</fail>
784 </configuration>
785 </execution>
786 <execution>
787 <id>enforce-no-snapshots</id>
788 <goals>
789 <goal>enforce</goal>
790 </goals>
791 <configuration>
792 <rules>
793 <requireReleaseDeps>
794 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
795 <onlyWhenRelease>true</onlyWhenRelease>
796 <level>WARN</level>
797 </requireReleaseDeps>
798 </rules>
799 </configuration>
800 </execution>
801 <execution>
802 <id>enforce-maven</id>
803 <goals>
804 <goal>enforce</goal>
805 </goals>
806 <configuration>
807 <rules>
808 <requireJavaVersion>
809 <version>1.8.0</version>
810 </requireJavaVersion>
811 <requireMavenVersion>
812 <version>[3.5.0,)</version>
813 </requireMavenVersion>
814 </rules>
815 </configuration>
816 </execution>
817 <execution>
818 <id>enforce-banned-dependencies</id>
819 <goals>
820 <goal>enforce</goal>
821 </goals>
822 <configuration>
823 <rules>
824 <bannedDependencies>
825 <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
826 <excludes>
827 <exclude>org.mockito:mockito-all</exclude>
828<!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
829 </excludes>
830 </bannedDependencies>
831 </rules>
832 <fail>true</fail>
833 </configuration>
834 </execution>
835 </executions>
836 </plugin>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500837 </plugins>
838 </build>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400839
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500840 <reporting>
841 <plugins>
842 <plugin>
843 <artifactId>maven-javadoc-plugin</artifactId>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500844 <configuration>
845 <failOnError>false</failOnError>
846 <additionalparam>-Xdoclint:none</additionalparam>
847 </configuration>
848 </plugin>
849 </plugins>
850 </reporting>
Singal, Kapil (ks220y)2e8a4da2019-10-01 22:31:50 -0400851
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500852 <profiles>
853 <!-- Profiles from ONAP oparent -->
854 <profile>
855 <id>generate-json</id>
856 <activation>
857 <file>
858 <exists>${swagger-properties}</exists>
859 </file>
860 <property>
861 <name>swagger-sdk.generate-json</name>
862 </property>
863 </activation>
864 <build>
865 <plugins>
866 <plugin>
867 <groupId>org.codehaus.mojo</groupId>
868 <artifactId>properties-maven-plugin</artifactId>
869 <version>1.0.0</version>
870 <executions>
871 <execution>
872 <phase>initialize</phase>
873 <goals>
874 <goal>read-project-properties</goal>
875 </goals>
876 <configuration>
877 <files>
878 <file>${basedir}/src/main/resources/swagger.properties</file>
879 </files>
880 </configuration>
881 </execution>
882 </executions>
883 </plugin>
884 <plugin>
885 <groupId>com.github.kongchen</groupId>
886 <artifactId>swagger-maven-plugin</artifactId>
887 <version>3.1.4</version>
888 <configuration>
889 <apiSources>
890 <apiSource>
891 <locations>${api-rest-package}</locations>
892 <schemes>http,https</schemes>
893 <host>${api-host-ip}:${api-host-port}</host>
894 <basePath>${api-base-path}</basePath>
895 <info>
896 <title>${api-title}</title>
897 <version>${api-version}</version>
898 <description>${api-description}</description>
899 <license>
900 <name>${api-license}</name>
901 </license>
902 </info>
903 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
904 </apiSource>
905 </apiSources>
906 </configuration>
907 <executions>
908 <execution>
909 <phase>compile</phase>
910 <goals>
911 <goal>generate</goal>
912 </goals>
913 </execution>
914 </executions>
915 </plugin>
916 <plugin>
917 <groupId>org.apache.maven.plugins</groupId>
918 <artifactId>maven-install-plugin</artifactId>
919 <version>2.3.1</version>
920 <executions>
921 <execution>
922 <id>install-file-id</id>
923 <phase>install</phase>
924 <goals>
925 <goal>install-file</goal>
926 </goals>
927 <configuration>
928 <file>${basedir}/src/main/resources/swagger.json</file>
929 <groupId>${project.groupId}</groupId>
930 <artifactId>${project.artifactId}-swagger-schema</artifactId>
931 <version>${project.version}</version>
932 <packaging>json</packaging>
933 </configuration>
934 </execution>
935 </executions>
936 </plugin>
937 </plugins>
938 </build>
939 </profile>
940 <profile>
941 <id>generate-sdk</id>
942 <activation>
943 <file>
944 <exists>${swagger-json}</exists>
945 </file>
946 <property>
947 <name>swagger-sdk.generate-java-sdk</name>
948 </property>
949 </activation>
950 <build>
951 <plugins>
952 <plugin>
953 <groupId>org.apache.maven.plugins</groupId>
954 <artifactId>maven-antrun-plugin</artifactId>
955 <version>1.8</version>
956 <executions>
957 <execution>
958 <phase>initialize</phase>
959 <id>ant-create-script</id>
960 <configuration>
961 <exportAntProperties>true</exportAntProperties>
962 <tasks>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500963 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500964 <condition property="is_windows" value="true">
965 <os family="windows"/>
966 </condition>
967 <condition property="isLinux" value="true">
968 <os family="unix"/>
969 </condition>
970 <if>
971 <equals arg1="${is_windows}" arg2="true"/>
972 <then>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500973 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
974 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500975 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500976 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500977 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
978 </then>
979 <else>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500980 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
981 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500982 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500983 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500984 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500985 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -0500986 </else>
987 </if>
988 </tasks>
989 </configuration>
990 <goals>
991 <goal>run</goal>
992 </goals>
993 </execution>
994 </executions>
995 <dependencies>
996 <dependency>
997 <groupId>ant-contrib</groupId>
998 <artifactId>ant-contrib</artifactId>
999 <version>1.0b3</version>
1000 <exclusions>
1001 <exclusion>
1002 <groupId>ant</groupId>
1003 <artifactId>ant</artifactId>
1004 </exclusion>
1005 </exclusions>
1006 </dependency>
1007 </dependencies>
1008 </plugin>
1009 <plugin>
1010 <groupId>io.swagger</groupId>
1011 <artifactId>swagger-codegen-maven-plugin</artifactId>
1012 <version>2.2.1</version>
1013 <executions>
1014 <execution>
1015 <goals>
1016 <goal>generate</goal>
1017 </goals>
1018 <configuration>
1019 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
1020 <output>${project.build.directory}/generated-sources</output>
1021 <language>java</language>
1022 <configOptions>
1023 <dateLibrary>joda</dateLibrary>
1024 </configOptions>
1025 <library>jersey2</library>
1026 <groupId>${project.groupId}</groupId>
1027 <artifactId>${project.artifactId}-java-sdk</artifactId>
1028 <artifactVersion>${project.version}</artifactVersion>
1029 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
1030 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
1031 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1032 </configuration>
1033 </execution>
1034 </executions>
1035 </plugin>
1036 <plugin>
1037 <groupId>org.codehaus.mojo</groupId>
1038 <artifactId>exec-maven-plugin</artifactId>
1039 <version>1.5.0</version>
1040 <executions>
1041 <execution>
1042 <id>swagger-generate-sources</id>
1043 <phase>generate-sources</phase>
1044 <goals>
1045 <goal>exec</goal>
1046 </goals>
1047 <configuration>
1048 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1049 </configuration>
1050 </execution>
1051 </executions>
1052 </plugin>
1053 <plugin>
1054 <groupId>org.apache.maven.plugins</groupId>
1055 <artifactId>maven-clean-plugin</artifactId>
1056 <version>3.0.0</version>
1057 <executions>
1058 <execution>
1059 <id>clean-generated-files</id>
1060 <phase>generate-sources</phase>
1061 <goals>
1062 <goal>clean</goal>
1063 </goals>
1064 <configuration>
1065 <filesets>
1066 <fileset>
1067 <directory>${project.build.directory}/generated-sources</directory>
1068 </fileset>
1069 </filesets>
1070 </configuration>
1071 </execution>
1072 </executions>
1073 </plugin>
1074 </plugins>
1075 </build>
1076 <dependencies>
1077 <dependency>
1078 <groupId>org.onap.msb.swagger-sdk</groupId>
1079 <artifactId>swagger-sdk</artifactId>
1080 <version>1.0.0</version>
1081 </dependency>
1082 </dependencies>
1083 </profile>
Timoney, Dan (dt5972)008b52b2019-12-06 09:10:09 -05001084 <profile>
1085 <id>sonar-jacoco-aggregate</id>
1086 <activation>
1087 <property>
1088 <name>onap.jacoco.aggregateFile</name>
1089 </property>
1090 </activation>
1091 <build>
1092 <plugins>
1093 <plugin>
1094 <groupId>org.jacoco</groupId>
1095 <artifactId>jacoco-maven-plugin</artifactId>
1096 <executions>
1097 <execution>
1098 <id>merge</id>
1099 <goals>
1100 <goal>merge</goal>
1101 </goals>
1102 <phase>generate-resources</phase>
1103 <configuration>
1104 <destFile>${onap.jacoco.aggregateFile}</destFile>
1105 <fileSets>
1106 <fileSet>
1107 <directory>${project.basedir}</directory>
1108 <includes>
1109 <include>**/target/code-coverage/*.exec</include>
1110 </includes>
1111 </fileSet>
1112 </fileSets>
1113 </configuration>
1114 </execution>
1115 </executions>
1116 </plugin>
1117 </plugins>
1118 </build>
1119 </profile>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001120 <!-- End of profiles from ONAP oparent -->
Timoney, Dan (dt5972)0586da42019-07-17 10:43:14 -04001121
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001122 <profile>
1123 <id>yang-compile</id>
1124 <activation>
1125 <file>
1126 <exists>src/main/yang</exists>
1127 </file>
1128 </activation>
1129 <build>
1130 <plugins>
1131 <plugin>
1132 <groupId>org.opendaylight.yangtools</groupId>
1133 <artifactId>yang-maven-plugin</artifactId>
Michael Dürre2c39a4d2020-07-06 06:22:15 +02001134 <version>3.0.11</version>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001135 <dependencies>
1136 <dependency>
1137 <groupId>org.opendaylight.mdsal</groupId>
1138 <artifactId>maven-sal-api-gen-plugin</artifactId>
1139 <version>${odl.mdsal.model.version}</version>
1140 <type>jar</type>
Michael Dürre2c39a4d2020-07-06 06:22:15 +02001141 <scope>compile</scope>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001142 </dependency>
1143 <dependency>
1144 <groupId>org.opendaylight.netconf</groupId>
1145 <artifactId>sal-rest-docgen-maven</artifactId>
1146 <version>${odl.netconf.sal.rest.docgen.version}</version>
1147 <type>jar</type>
1148 </dependency>
1149 </dependencies>
1150 <executions>
1151 <execution>
Singal, Kapil (ks220y)704554f2020-01-20 15:12:43 -05001152 <id>binding</id>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001153 <goals>
1154 <goal>generate-sources</goal>
1155 </goals>
1156 <configuration>
1157 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1158 <codeGenerators>
1159 <generator>
1160 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1161 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1162 </generator>
1163 <generator>
1164 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1165 <outputBaseDir>target/swagger</outputBaseDir>
1166 </generator>
1167 </codeGenerators>
1168 <inspectDependencies>true</inspectDependencies>
1169 </configuration>
1170 </execution>
1171 </executions>
1172 </plugin>
1173 </plugins>
1174 </build>
1175 </profile>
Singal, Kapil (ks220y)f15762d2019-12-03 10:48:17 -05001176 </profiles>
Dan Timoney0f2db3f2018-01-25 16:23:27 -05001177</project>