Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 5 | |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 6 | <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/setup/src/main/template/pom-template.xml |
| 7 | Any updates needed should be made to that template and not to the generated |
| 8 | pom.xml file --> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 9 | |
| 10 | <modelVersion>4.0.0</modelVersion> |
| 11 | <packaging>pom</packaging> |
| 12 | <groupId>org.onap.ccsdk.parent</groupId> |
| 13 | <artifactId>${odlparent.artifactId}</artifactId> |
| 14 | <version>${project.version}</version> |
| 15 | |
| 16 | <parent> |
| 17 | <groupId>${odlparent.groupId}</groupId> |
| 18 | <artifactId>${odlparent.artifactId}</artifactId> |
| 19 | <version>${odlparent.version}</version> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 20 | <relativePath /> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 21 | </parent> |
| 22 | |
| 23 | |
| 24 | <name>ONAP :: \${project.groupId} :: \${project.artifactId}</name> |
| 25 | <url>http://wiki.onap.org</url> |
| 26 | <description>Root POM to be used in place of odlparent for CCSDK based projects</description> |
| 27 | |
| 28 | |
| 29 | <issueManagement> |
| 30 | <system>JIRA</system> |
| 31 | <url>https://jira.onap.org/</url> |
| 32 | </issueManagement> |
| 33 | |
| 34 | <properties> |
| 35 | |
| 36 | <!-- properties from oparent --> |
| 37 | <maven.compiler.source>1.8</maven.compiler.source> |
| 38 | <maven.compiler.target>1.8</maven.compiler.target> |
| 39 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 40 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 41 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
| 42 | <!-- sitePath may be overridden in the inheriting POM if desired --> |
| 43 | <sitePath>/content/sites/site/\${project.groupId}/\${project.artifactId}/\${project.version}</sitePath> |
| 44 | <jacoco.version>0.7.7.201606060606</jacoco.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.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec,target/code-coverage/jacoco-it.exec</sonar.jacoco.reportPaths> |
| 49 | <!-- Note: This list should match jacoco-maven-plugin's exclusion list |
| 50 | below --> |
| 51 | <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions> |
| 52 | <!-- If following file exist, auto-generation of swagger.json will be done --> |
| 53 | <swagger-properties>\${basedir}/src/main/resources/swagger.properties</swagger-properties> |
| 54 | <!-- If following file exist, auto-generation of sdk will be done --> |
| 55 | <swagger-json>\${basedir}/src/main/resources/swagger.json</swagger-json> |
| 56 | <!-- end of properties from oparent --> |
| 57 | |
| 58 | <!-- ONAP repositories --> |
| 59 | <onap.nexus.host>nexus.onap.org</onap.nexus.host> |
| 60 | <onap.nexus.port>443</onap.nexus.port> |
| 61 | <onap.nexus.protocol>https</onap.nexus.protocol> |
| 62 | <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url> |
| 63 | <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url> |
| 64 | <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url> |
| 65 | <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url> |
| 66 | <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id> |
| 67 | <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id> |
| 68 | |
| 69 | |
| 70 | <!-- OpenDaylight repositories --> |
| 71 | <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url> |
| 72 | <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url> |
| 73 | |
| 74 | |
| 75 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 76 | <java.version.source>1.8</java.version.source> |
| 77 | <java.version.target>1.8</java.version.target> |
| 78 | <bundle.plugin.version>2.5.0</bundle.plugin.version> |
| 79 | <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version> |
| 80 | <features.file>features.xml</features.file> |
| 81 | <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath> |
| 82 | <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath> |
| 83 | <checkstyle.skip>true</checkstyle.skip> |
| 84 | |
| 85 | |
| 86 | <sonar.language>java</sonar.language> |
| 87 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| 88 | <sonar.surefire.reportsPath>\${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> |
| 89 | <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero> |
| 90 | <sonar.projectVersion>\${project.version}</sonar.projectVersion> |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | <!-- CCSDK component versions --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 96 | <ccsdk.sli.core.version>0.6.0-SNAPSHOT</ccsdk.sli.core.version> |
| 97 | <ccsdk.sli.adaptors.version>0.6.0-SNAPSHOT</ccsdk.sli.adaptors.version> |
| 98 | <ccsdk.sli.northbound.version>0.6.0-SNAPSHOT</ccsdk.sli.northbound.version> |
| 99 | <ccsdk.sli.plugins.version>0.6.0-SNAPSHOT</ccsdk.sli.plugins.version> |
| 100 | <ccsdk.distribution.version>0.6.0-SNAPSHOT</ccsdk.distribution.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 101 | <sdnctl.sli.version>\${ccsdk.sli.core.version}</sdnctl.sli.version> |
| 102 | <sdnctl.aai.service.version>\${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version> |
| 103 | <sdnctl.dblib.version>\${ccsdk.sli.core.version}</sdnctl.dblib.version> |
| 104 | <sdnctl.mdsal.resource.version>\${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version> |
| 105 | <sdnctl.slipluginutils.version>\${ccsdk.sli.core.version}</sdnctl.slipluginutils.version> |
| 106 | |
| 107 | |
| 108 | <!-- Support libraries used by OpenDaylight --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 109 | <odl.controller.mdsal.version>1.9.1</odl.controller.mdsal.version> |
| 110 | <odl.mdsal.version>3.0.8</odl.mdsal.version> |
| 111 | <odl.mdsal.model.version>1.0.8</odl.mdsal.model.version> |
| 112 | <odl.netconf.restconf.version>1.9.1</odl.netconf.restconf.version> |
| 113 | <odl.netconf.netconf.version>1.6.1</odl.netconf.netconf.version> |
| 114 | <odl.netconf.sal.rest.docgen.version>1.9.1</odl.netconf.sal.rest.docgen.version> |
| 115 | |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 116 | <!-- Used by aaa, vtn --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 117 | <commons.codec.version>1.12</commons.codec.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 118 | <!-- Used by netconf, ovsdb --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 119 | <commons.lang3.version>3.8.1</commons.lang3.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 120 | <!-- Used by sfc, snmp4sdn; see also affinity, toolkit --> |
| 121 | <commons.lang.version>2.6</commons.lang.version> |
| 122 | <!-- Used by neutron; see also controller, vtn --> |
| 123 | <commons.net.version>3.6</commons.net.version> |
| 124 | <!-- Used by neutron --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 125 | <eclipse.persistence.version>2.7.3</eclipse.persistence.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 126 | <!-- Used by aaa --> |
| 127 | <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version> |
| 128 | <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn --> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 129 | <gson.version>2.8.5</gson.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 130 | <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 131 | <guava.version>25.1-jre</guava.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 132 | <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all, |
| 133 | integration/distribution, snmp4sdn, toolkit, ttp --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 134 | <jackson.version>2.9.8</jackson.version> |
| 135 | <jackson.bom.version>2.9.8</jackson.bom.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 136 | <!-- Used by snmp4sdn, yangtools --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 137 | <javassist.version>3.24.1-GA</javassist.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 138 | |
| 139 | <!-- FIXME remove all dependencies for jersey 1.17 after migration all |
| 140 | projects --> |
| 141 | <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all, |
| 142 | snmp4sdn, toolkit --> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 143 | <jersey.version>2.25.1</jersey.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 144 | <!-- Used by sfc --> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 145 | <jersey.client.version>2.25.1</jersey.client.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 146 | |
| 147 | <!-- New packages for jersey migration 1.17 to 2.8 --> |
| 148 | <!-- appache.geronimo.bundle for DocGen --> |
| 149 | <!-- Used by aaa, iotdm, netconf, ovsdb, sfc --> |
| 150 | <org.json.version>20131018</org.json.version> |
| 151 | |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 152 | |
| 153 | |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 154 | <!-- Used everywhere --> |
Stan Bonev | 29e82cf | 2019-05-09 14:52:16 -0400 | [diff] [blame] | 155 | <junit.version>4.12</junit.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 156 | <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit --> |
| 157 | <logback.version>1.2.3</logback.version> |
| 158 | <!-- Used by nic, sfc, sxp, tsdr --> |
| 159 | <mockito.version>1.10.19</mockito.version> |
| 160 | <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 161 | <netty.version>4.1.34.Final</netty.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 162 | <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, |
| 163 | toolkit --> |
| 164 | <slf4j.version>1.7.25</slf4j.version> |
| 165 | <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, |
| 166 | tsdr, ttp --> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 167 | <spring.version>4.3.24.RELEASE</spring.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 168 | |
| 169 | |
| 170 | |
| 171 | <!-- Extra support libraries used by SDN-C --> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 172 | <jackson-annotations-version>\${jackson.version}</jackson-annotations-version> |
| 173 | <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 174 | <antlr.version>4.7.2</antlr.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 175 | |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 176 | <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version> |
| 177 | |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 178 | |
| 179 | <!-- Managed dependency versions --> |
| 180 | <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version> |
| 181 | <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version> |
| 182 | <derby.version>10.14.2.0</derby.version> |
| 183 | <eelf.version>1.0.0</eelf.version> |
| 184 | <grpc.version>1.17.1</grpc.version> |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 185 | <mariadb.connector.version>2.1.1</mariadb.connector.version> |
| 186 | <mariadb4j.version>2.2.3</mariadb4j.version> |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 187 | <testng.version>6.11</testng.version> |
| 188 | <tomcat-jdbc.version>8.5.14</tomcat-jdbc.version> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 189 | <jetty.version>9.4.12.v20180830</jetty.version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 190 | <skip.karaf.featureTest>true</skip.karaf.featureTest> |
| 191 | </properties> |
| 192 | |
| 193 | <profiles> |
| 194 | <!-- Profiles from ONAP oparent --> |
| 195 | <profile> |
| 196 | <id>generate-json</id> |
| 197 | <activation> |
| 198 | <file> |
| 199 | <exists>\${swagger-properties}</exists> |
| 200 | </file> |
| 201 | <property> |
| 202 | <name>swagger-sdk.generate-json</name> |
| 203 | </property> |
| 204 | </activation> |
| 205 | <build> |
| 206 | <plugins> |
| 207 | <plugin> |
| 208 | <groupId>org.codehaus.mojo</groupId> |
| 209 | <artifactId>properties-maven-plugin</artifactId> |
| 210 | <version>1.0.0</version> |
| 211 | <executions> |
| 212 | <execution> |
| 213 | <phase>initialize</phase> |
| 214 | <goals> |
| 215 | <goal>read-project-properties</goal> |
| 216 | </goals> |
| 217 | <configuration> |
| 218 | <files> |
| 219 | <file>\${basedir}/src/main/resources/swagger.properties</file> |
| 220 | </files> |
| 221 | </configuration> |
| 222 | </execution> |
| 223 | </executions> |
| 224 | </plugin> |
| 225 | <plugin> |
| 226 | <groupId>com.github.kongchen</groupId> |
| 227 | <artifactId>swagger-maven-plugin</artifactId> |
| 228 | <version>3.1.4</version> |
| 229 | <configuration> |
| 230 | <apiSources> |
| 231 | <apiSource> |
| 232 | <locations>\${api-rest-package}</locations> |
| 233 | <schemes>http,https</schemes> |
| 234 | <host>\${api-host-ip}:\${api-host-port}</host> |
| 235 | <basePath>\${api-base-path}</basePath> |
| 236 | <info> |
| 237 | <title>\${api-title}</title> |
| 238 | <version>\${api-version}</version> |
| 239 | <description>\${api-description}</description> |
| 240 | <license> |
| 241 | <name>\${api-license}</name> |
| 242 | </license> |
| 243 | </info> |
| 244 | <swaggerDirectory>\${basedir}/src/main/resources</swaggerDirectory> |
| 245 | </apiSource> |
| 246 | </apiSources> |
| 247 | </configuration> |
| 248 | <executions> |
| 249 | <execution> |
| 250 | <phase>compile</phase> |
| 251 | <goals> |
| 252 | <goal>generate</goal> |
| 253 | </goals> |
| 254 | </execution> |
| 255 | </executions> |
| 256 | </plugin> |
| 257 | <plugin> |
| 258 | <groupId>org.apache.maven.plugins</groupId> |
| 259 | <artifactId>maven-install-plugin</artifactId> |
| 260 | <version>2.3.1</version> |
| 261 | <executions> |
| 262 | <execution> |
| 263 | <id>install-file-id</id> |
| 264 | <phase>install</phase> |
| 265 | <goals> |
| 266 | <goal>install-file</goal> |
| 267 | </goals> |
| 268 | <configuration> |
| 269 | <file>\${basedir}/src/main/resources/swagger.json</file> |
| 270 | <groupId>\${project.groupId}</groupId> |
| 271 | <artifactId>\${project.artifactId}-swagger-schema</artifactId> |
| 272 | <version>\${project.version}</version> |
| 273 | <packaging>json</packaging> |
| 274 | </configuration> |
| 275 | </execution> |
| 276 | </executions> |
| 277 | </plugin> |
| 278 | </plugins> |
| 279 | </build> |
| 280 | </profile> |
| 281 | <profile> |
| 282 | <id>generate-sdk</id> |
| 283 | <activation> |
| 284 | <file> |
| 285 | <exists>\${swagger-json}</exists> |
| 286 | </file> |
| 287 | <property> |
| 288 | <name>swagger-sdk.generate-java-sdk</name> |
| 289 | </property> |
| 290 | </activation> |
| 291 | <build> |
| 292 | <plugins> |
| 293 | <plugin> |
| 294 | <groupId>org.apache.maven.plugins</groupId> |
| 295 | <artifactId>maven-antrun-plugin</artifactId> |
| 296 | <version>1.8</version> |
| 297 | <executions> |
| 298 | <execution> |
| 299 | <phase>initialize</phase> |
| 300 | <id>ant-create-script</id> |
| 301 | <configuration> |
| 302 | <exportAntProperties>true</exportAntProperties> |
| 303 | <tasks> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 304 | <taskdef resource="net/sf/antcontrib/antlib.xml" |
| 305 | classpathref="maven.plugin.classpath" /> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 306 | <condition property="is_windows" value="true"> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 307 | <os family="windows" /> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 308 | </condition> |
| 309 | <condition property="isLinux" value="true"> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 310 | <os family="unix" /> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 311 | </condition> |
| 312 | <if> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 313 | <equals arg1="\${is_windows}" arg2="true" /> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 314 | <then> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 315 | <property name="swagger.sdk.script.file" |
| 316 | value="generated-source-script.bat" /> |
| 317 | <echo |
| 318 | file="\${project.build.directory}\${file.separator}generated-source-script.bat" |
| 319 | append="true" |
| 320 | message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}" /> |
| 321 | <echo |
| 322 | file="\${project.build.directory}\${file.separator}generated-source-script.bat" |
| 323 | append="true" |
| 324 | message="mvn clean install -Dmaven.test.skip=true\${line.separator}" /> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 325 | </then> |
| 326 | <else> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 327 | <property name="swagger.sdk.script.file" |
| 328 | value="generated-source-script.sh" /> |
| 329 | <echo |
| 330 | file="\${project.build.directory}\${file.separator}generated-source-script.sh" |
| 331 | append="true" |
| 332 | message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}" /> |
| 333 | <echo |
| 334 | file="\${project.build.directory}\${file.separator}generated-source-script.sh" |
| 335 | append="true" |
| 336 | message="mvn clean install -Dmaven.test.skip=true\${line.separator}" /> |
| 337 | <chmod |
| 338 | file="\${project.build.directory}\${file.separator}generated-source-script.sh" |
| 339 | perm="755" /> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 340 | </else> |
| 341 | </if> |
| 342 | </tasks> |
| 343 | </configuration> |
| 344 | <goals> |
| 345 | <goal>run</goal> |
| 346 | </goals> |
| 347 | </execution> |
| 348 | </executions> |
| 349 | <dependencies> |
| 350 | <dependency> |
| 351 | <groupId>ant-contrib</groupId> |
| 352 | <artifactId>ant-contrib</artifactId> |
| 353 | <version>1.0b3</version> |
| 354 | <exclusions> |
| 355 | <exclusion> |
| 356 | <artifactId>ant</artifactId> |
| 357 | <groupId>ant</groupId> |
| 358 | </exclusion> |
| 359 | </exclusions> |
| 360 | </dependency> |
| 361 | </dependencies> |
| 362 | </plugin> |
| 363 | <plugin> |
| 364 | <groupId>io.swagger</groupId> |
| 365 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
| 366 | <version>2.2.1</version> |
| 367 | <executions> |
| 368 | <execution> |
| 369 | <goals> |
| 370 | <goal>generate</goal> |
| 371 | </goals> |
| 372 | <configuration> |
| 373 | <inputSpec>\${basedir}/src/main/resources/swagger.json</inputSpec> |
| 374 | <output>\${project.build.directory}/generated-sources</output> |
| 375 | <language>java</language> |
| 376 | <configOptions> |
| 377 | <dateLibrary>joda</dateLibrary> |
| 378 | </configOptions> |
| 379 | <library>jersey2</library> |
| 380 | <groupId>\${project.groupId}</groupId> |
| 381 | <artifactId>\${project.artifactId}-java-sdk</artifactId> |
| 382 | <artifactVersion>\${project.version}</artifactVersion> |
| 383 | <modelPackage>\${project.groupId}.\${project.artifactId}.client.model</modelPackage> |
| 384 | <apiPackage>\${project.groupId}.\${project.artifactId}.client.api</apiPackage> |
| 385 | <invokerPackage>\${project.groupId}.\${project.artifactId}.client.invoker</invokerPackage> |
| 386 | </configuration> |
| 387 | </execution> |
| 388 | </executions> |
| 389 | </plugin> |
| 390 | <plugin> |
| 391 | <artifactId>exec-maven-plugin</artifactId> |
| 392 | <groupId>org.codehaus.mojo</groupId> |
| 393 | <version>1.5.0</version> |
| 394 | <executions> |
| 395 | <execution> |
| 396 | <id>swagger-generate-sources</id> |
| 397 | <phase>generate-sources</phase> |
| 398 | <goals> |
| 399 | <goal>exec</goal> |
| 400 | </goals> |
| 401 | <configuration> |
| 402 | <executable>\${project.build.directory}\${file.separator}\${swagger.sdk.script.file}</executable> |
| 403 | </configuration> |
| 404 | </execution> |
| 405 | </executions> |
| 406 | </plugin> |
| 407 | <plugin> |
| 408 | <groupId>org.apache.maven.plugins</groupId> |
| 409 | <artifactId>maven-clean-plugin</artifactId> |
| 410 | <version>3.0.0</version> |
| 411 | <executions> |
| 412 | <execution> |
| 413 | <id>clean-generated-files</id> |
| 414 | <phase>generate-sources</phase> |
| 415 | <goals> |
| 416 | <goal>clean</goal> |
| 417 | </goals> |
| 418 | <configuration> |
| 419 | <filesets> |
| 420 | <fileset> |
| 421 | <directory>\${project.build.directory}/generated-sources</directory> |
| 422 | </fileset> |
| 423 | </filesets> |
| 424 | </configuration> |
| 425 | </execution> |
| 426 | </executions> |
| 427 | </plugin> |
| 428 | </plugins> |
| 429 | </build> |
| 430 | <dependencies> |
| 431 | <dependency> |
| 432 | <groupId>org.onap.msb.swagger-sdk</groupId> |
| 433 | <artifactId>swagger-sdk</artifactId> |
| 434 | <version>1.0.0</version> |
| 435 | </dependency> |
| 436 | </dependencies> |
| 437 | </profile> |
| 438 | |
| 439 | <!-- End of profiles from ONAP oparent --> |
Timoney, Dan (dt5972) | 0586da4 | 2019-07-17 10:43:14 -0400 | [diff] [blame] | 440 | |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 441 | <profile> |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 442 | <id>yang-compile</id> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 443 | <activation> |
| 444 | <file> |
| 445 | <exists>src/main/yang</exists> |
| 446 | </file> |
| 447 | </activation> |
| 448 | <build> |
| 449 | <plugins> |
| 450 | <plugin> |
| 451 | <groupId>org.opendaylight.yangtools</groupId> |
| 452 | <artifactId>yang-maven-plugin</artifactId> |
Enbo Wang | 6e54283 | 2019-04-09 07:48:10 +0000 | [diff] [blame] | 453 | <version>2.1.8</version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 454 | <dependencies> |
| 455 | <dependency> |
| 456 | <groupId>org.opendaylight.mdsal</groupId> |
| 457 | <artifactId>maven-sal-api-gen-plugin</artifactId> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 458 | <version>\${odl.mdsal.model.version}</version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 459 | <type>jar</type> |
| 460 | </dependency> |
| 461 | <dependency> |
| 462 | <groupId>org.opendaylight.netconf</groupId> |
| 463 | <artifactId>sal-rest-docgen-maven</artifactId> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 464 | <version>\${odl.netconf.sal.rest.docgen.version}</version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 465 | <type>jar</type> |
| 466 | </dependency> |
| 467 | </dependencies> |
| 468 | <executions> |
| 469 | <execution> |
| 470 | <goals> |
| 471 | <goal>generate-sources</goal> |
| 472 | </goals> |
| 473 | <configuration> |
| 474 | <yangFilesRootDir>\${yang.file.directory}</yangFilesRootDir> |
| 475 | <codeGenerators> |
| 476 | <generator> |
| 477 | <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass> |
| 478 | <outputBaseDir>\${salGeneratorPath}</outputBaseDir> |
| 479 | </generator> |
| 480 | <generator> |
| 481 | <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass> |
| 482 | <outputBaseDir>target/swagger</outputBaseDir> |
| 483 | </generator> |
| 484 | </codeGenerators> |
| 485 | <inspectDependencies>true</inspectDependencies> |
| 486 | </configuration> |
| 487 | </execution> |
| 488 | </executions> |
| 489 | </plugin> |
| 490 | </plugins> |
| 491 | </build> |
| 492 | </profile> |
| 493 | |
| 494 | </profiles> |
| 495 | |
| 496 | |
| 497 | <dependencyManagement> |
| 498 | <dependencies> |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 499 | |
| 500 | <!-- Note: If value in BOM conflicts with value inherited from |
| 501 | parent pom, inherited value takes precedence. This seems more like |
| 502 | a bug than a feature, but this is how maven 3.6 works --> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 503 | <dependency> |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 504 | <groupId>org.onap.ccsdk.parent</groupId> |
| 505 | <artifactId>dependencies-odl-bom</artifactId> |
| 506 | <version>${project.version}</version> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 507 | <type>pom</type> |
| 508 | <scope>import</scope> |
| 509 | </dependency> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 510 | |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 511 | <!-- Override incorrect versions in ODL parent poms --> |
| 512 | <!-- to match versions actually installed in ODL Neon --> |
| 513 | <dependency> |
| 514 | <groupId>org.eclipse.jetty</groupId> |
| 515 | <artifactId>jetty-server</artifactId> |
| 516 | <version>9.4.12.v20180830</version> |
| 517 | </dependency> |
| 518 | <dependency> |
| 519 | <groupId>org.eclipse.jetty</groupId> |
| 520 | <artifactId>jetty-servlets</artifactId> |
| 521 | <version>9.4.12.v20180830</version> |
| 522 | </dependency> |
Stan Bonev | 29e82cf | 2019-05-09 14:52:16 -0400 | [diff] [blame] | 523 | <dependency> |
| 524 | <groupId>junit</groupId> |
| 525 | <artifactId>junit</artifactId> |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 526 | <version>4.12</version> |
Stan Bonev | 29e82cf | 2019-05-09 14:52:16 -0400 | [diff] [blame] | 527 | <scope>test</scope> |
| 528 | </dependency> |
Timoney, Dan (dt5972) | 135e407 | 2019-07-01 13:08:58 -0400 | [diff] [blame^] | 529 | <dependency> |
| 530 | <groupId>org.codehaus.jettison</groupId> |
| 531 | <artifactId>jettison</artifactId> |
| 532 | <version>1.3.8</version> |
| 533 | </dependency> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 534 | <dependency> |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 535 | <groupId>com.google.protobuf</groupId> |
| 536 | <artifactId>protobuf-java</artifactId> |
| 537 | <version>3.6.1</version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 538 | </dependency> |
| 539 | </dependencies> |
| 540 | |
| 541 | </dependencyManagement> |
| 542 | |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 543 | <pluginRepositories> |
| 544 | <pluginRepository> |
| 545 | <id>onap-public</id> |
| 546 | <url>\${onap.nexus.public-url}</url> |
| 547 | <releases> |
| 548 | <enabled>true</enabled> |
| 549 | </releases> |
| 550 | <snapshots> |
| 551 | <enabled>true</enabled> |
| 552 | </snapshots> |
| 553 | </pluginRepository> |
| 554 | <pluginRepository> |
| 555 | <id>onap-staging</id> |
| 556 | <url>\${onap.nexus.staging-url}</url> |
| 557 | <releases> |
| 558 | <enabled>true</enabled> |
| 559 | </releases> |
| 560 | <snapshots> |
| 561 | <enabled>true</enabled> |
| 562 | </snapshots> |
| 563 | </pluginRepository> |
| 564 | <pluginRepository> |
| 565 | <id>onap-snapshot</id> |
| 566 | <url>\${onap.nexus.snapshot-url}</url> |
| 567 | <releases> |
| 568 | <enabled>false</enabled> |
| 569 | </releases> |
| 570 | <snapshots> |
| 571 | <enabled>true</enabled> |
| 572 | </snapshots> |
| 573 | </pluginRepository> |
| 574 | <pluginRepository> |
| 575 | <id>opendaylight-mirror</id> |
| 576 | <name>opendaylight-mirror</name> |
| 577 | <url>\${opendaylight.nexus.public-url}</url> |
| 578 | <releases> |
| 579 | <enabled>true</enabled> |
| 580 | <updatePolicy>never</updatePolicy> |
| 581 | </releases> |
| 582 | <snapshots> |
| 583 | <enabled>false</enabled> |
| 584 | </snapshots> |
| 585 | </pluginRepository> |
| 586 | <pluginRepository> |
| 587 | <id>opendaylight-snapshot</id> |
| 588 | <name>opendaylight-snapshot</name> |
| 589 | <url>\${opendaylight.nexus.snapshot-url}</url> |
| 590 | <releases> |
| 591 | <enabled>false</enabled> |
| 592 | </releases> |
| 593 | <snapshots> |
| 594 | <enabled>true</enabled> |
| 595 | </snapshots> |
| 596 | </pluginRepository> |
| 597 | <!-- Black Duck plugin dependencies --> |
| 598 | <pluginRepository> |
| 599 | <id>JCenter</id> |
| 600 | <name>JCenter Repository</name> |
| 601 | <url>http://jcenter.bintray.com</url> |
| 602 | </pluginRepository> |
| 603 | |
| 604 | <pluginRepository> |
| 605 | <id>Restlet</id> |
| 606 | <name>Restlet Repository</name> |
| 607 | <url>http://maven.restlet.com</url> |
| 608 | </pluginRepository> |
| 609 | </pluginRepositories> |
| 610 | |
| 611 | |
| 612 | <repositories> |
| 613 | <repository> |
| 614 | <id>onap-public</id> |
| 615 | <url>https://nexus.onap.org/content/groups/public</url> |
| 616 | <releases> |
| 617 | <enabled>true</enabled> |
| 618 | <updatePolicy>never</updatePolicy> |
| 619 | </releases> |
| 620 | <snapshots> |
| 621 | <enabled>true</enabled> |
| 622 | <updatePolicy>always</updatePolicy> |
| 623 | </snapshots> |
| 624 | </repository> |
| 625 | <repository> |
| 626 | <id>onap-staging</id> |
| 627 | <url>https://nexus.onap.org/content/groups/staging</url> |
| 628 | <releases> |
| 629 | <enabled>true</enabled> |
| 630 | <updatePolicy>never</updatePolicy> |
| 631 | </releases> |
| 632 | <snapshots> |
| 633 | <enabled>true</enabled> |
| 634 | <updatePolicy>always</updatePolicy> |
| 635 | </snapshots> |
| 636 | </repository> |
| 637 | <repository> |
| 638 | <id>ecomp-release</id> |
| 639 | <name>onap-repository-releases</name> |
| 640 | <url>https://nexus.onap.org/content/repositories/releases</url> |
| 641 | <releases> |
| 642 | <enabled>true</enabled> |
| 643 | <updatePolicy>never</updatePolicy> |
| 644 | </releases> |
| 645 | <snapshots> |
| 646 | <enabled>false</enabled> |
| 647 | </snapshots> |
| 648 | </repository> |
| 649 | <repository> |
| 650 | <id>ecomp-snapshot</id> |
| 651 | <name>onap-repository-snapshots</name> |
| 652 | <url>https://nexus.onap.org/content/repositories/snapshots</url> |
| 653 | <releases> |
| 654 | <enabled>false</enabled> |
| 655 | </releases> |
| 656 | <snapshots> |
| 657 | <enabled>true</enabled> |
| 658 | </snapshots> |
| 659 | </repository> |
| 660 | <repository> |
| 661 | <id>opendaylight-mirror</id> |
| 662 | <name>opendaylight-mirror</name> |
| 663 | <url>https://nexus.opendaylight.org/content/repositories/public/</url> |
| 664 | <releases> |
| 665 | <enabled>true</enabled> |
| 666 | <updatePolicy>never</updatePolicy> |
| 667 | </releases> |
| 668 | <snapshots> |
| 669 | <enabled>false</enabled> |
| 670 | </snapshots> |
| 671 | </repository> |
| 672 | <repository> |
| 673 | <id>opendaylight-snapshot</id> |
| 674 | <name>opendaylight-snapshot</name> |
| 675 | <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url> |
| 676 | <releases> |
| 677 | <enabled>false</enabled> |
| 678 | </releases> |
| 679 | <snapshots> |
| 680 | <enabled>true</enabled> |
| 681 | </snapshots> |
| 682 | </repository> |
| 683 | |
| 684 | </repositories> |
| 685 | |
| 686 | <distributionManagement> |
| 687 | <repository> |
| 688 | <id>ecomp-releases</id> |
| 689 | <url>https://nexus.onap.org/content/repositories/releases</url> |
| 690 | </repository> |
| 691 | <snapshotRepository> |
| 692 | <id>ecomp-snapshots</id> |
| 693 | <url>https://nexus.onap.org/content/repositories/snapshots</url> |
| 694 | </snapshotRepository> |
| 695 | </distributionManagement> |
| 696 | |
| 697 | <build> |
| 698 | <pluginManagement> |
| 699 | <plugins> |
| 700 | |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 701 | <!-- Plugins from ONAP version (parent of oparent) --> |
Timoney, Dan (dt5972) | e3948b0 | 2019-03-04 11:49:26 -0500 | [diff] [blame] | 702 | |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 703 | <plugin> |
| 704 | <groupId>org.apache.maven.plugins</groupId> |
| 705 | <artifactId>maven-deploy-plugin</artifactId> |
| 706 | <!-- This version supports the "deployAtEnd" parameter --> |
| 707 | <version>2.8</version> |
| 708 | <configuration> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 709 | <skip /> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 710 | </configuration> |
| 711 | </plugin> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 712 | <plugin> |
| 713 | <groupId>org.apache.maven.plugins</groupId> |
| 714 | <artifactId>maven-site-plugin</artifactId> |
| 715 | <version>3.6</version> |
| 716 | <dependencies> |
| 717 | <dependency> |
| 718 | <groupId>org.apache.maven.wagon</groupId> |
| 719 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 720 | <version>2.10</version> |
| 721 | </dependency> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 722 | </dependencies> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 723 | </plugin> |
| 724 | <plugin> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 725 | <groupId>org.apache.maven.plugins</groupId> |
| 726 | <artifactId>maven-enforcer-plugin</artifactId> |
| 727 | <version>3.0.0-M2</version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 728 | <executions> |
| 729 | <execution> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 730 | <id>enforce-property</id> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 731 | <goals> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 732 | <goal>enforce</goal> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 733 | </goals> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 734 | <configuration> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 735 | <rules> |
| 736 | <requireProperty> |
| 737 | <property>onap.nexus.url</property> |
| 738 | <message>You must set a onap.nexus.url property in your |
| 739 | ~/.m2/settings.xml. See oparent/settings.xml for an example.</message> |
| 740 | </requireProperty> |
| 741 | </rules> |
| 742 | <fail>true</fail> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 743 | </configuration> |
| 744 | </execution> |
| 745 | <execution> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 746 | <id>enforce-no-snapshots</id> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 747 | <goals> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 748 | <goal>enforce</goal> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 749 | </goals> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 750 | <configuration> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 751 | <rules> |
| 752 | <requireReleaseDeps> |
| 753 | <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot> |
| 754 | <onlyWhenRelease>true</onlyWhenRelease> |
Timoney, Dan (dt5972) | 5c5d1f0 | 2019-01-14 10:44:23 -0500 | [diff] [blame] | 755 | <level>WARN</level> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 756 | </requireReleaseDeps> |
| 757 | </rules> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 758 | </configuration> |
| 759 | </execution> |
| 760 | </executions> |
| 761 | </plugin> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 762 | <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin --> |
| 763 | <plugin> |
| 764 | <groupId>org.sonarsource.scanner.maven</groupId> |
| 765 | <artifactId>sonar-maven-plugin</artifactId> |
| 766 | <version>3.2</version> |
| 767 | </plugin> |
| 768 | <!-- end of plugins from ONAP version (parent of oparent) --> |
| 769 | |
| 770 | <!-- Plugins from ONAP oparent --> |
| 771 | |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 772 | <plugin> |
| 773 | <groupId>org.jacoco</groupId> |
| 774 | <artifactId>jacoco-maven-plugin</artifactId> |
| 775 | <version>\${jacoco.version}</version> |
| 776 | <configuration> |
| 777 | <!-- Note: This exclusion list should match <sonar.exclusions> property |
| 778 | above --> |
| 779 | <excludes> |
| 780 | <exclude>**/gen/**</exclude> |
| 781 | <exclude>**/generated-sources/**</exclude> |
| 782 | <exclude>**/yang-gen/**</exclude> |
| 783 | <exclude>**/pax/**</exclude> |
| 784 | </excludes> |
| 785 | </configuration> |
| 786 | <executions> |
| 787 | <!-- Prepares the property pointing to the JaCoCo runtime agent which |
| 788 | is passed as VM argument when Maven the Surefire plugin is executed. --> |
| 789 | <execution> |
| 790 | <id>pre-unit-test</id> |
| 791 | <goals> |
| 792 | <goal>prepare-agent</goal> |
| 793 | </goals> |
| 794 | <configuration> |
| 795 | <!-- Sets the path to the file which contains the execution data. --> |
| 796 | <destFile>\${project.build.directory}/code-coverage/jacoco-ut.exec</destFile> |
| 797 | <!-- Sets the name of the property containing the settings for JaCoCo |
| 798 | runtime agent. --> |
| 799 | <propertyName>surefireArgLine</propertyName> |
| 800 | </configuration> |
| 801 | </execution> |
| 802 | <!-- Ensures that the code coverage report for unit tests is created |
| 803 | after unit tests have been run. --> |
| 804 | <execution> |
| 805 | <id>post-unit-test</id> |
| 806 | <phase>test</phase> |
| 807 | <goals> |
| 808 | <goal>report</goal> |
| 809 | </goals> |
| 810 | <configuration> |
| 811 | <!-- Sets the path to the file which contains the execution data. --> |
| 812 | <dataFile>\${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> |
| 813 | <!-- Sets the output directory for the code coverage report. --> |
| 814 | <outputDirectory>\${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> |
| 815 | </configuration> |
| 816 | </execution> |
| 817 | <execution> |
| 818 | <id>pre-integration-test</id> |
| 819 | <phase>pre-integration-test</phase> |
| 820 | <goals> |
| 821 | <goal>prepare-agent</goal> |
| 822 | </goals> |
| 823 | <configuration> |
| 824 | <!-- Sets the path to the file which contains the execution data. --> |
| 825 | <destFile>\${project.build.directory}/code-coverage/jacoco-it.exec</destFile> |
| 826 | <!-- Sets the name of the property containing the settings for JaCoCo |
| 827 | runtime agent. --> |
| 828 | <propertyName>failsafeArgLine</propertyName> |
| 829 | </configuration> |
| 830 | </execution> |
| 831 | <!-- Ensures that the code coverage report for integration tests after |
| 832 | integration tests have been run. --> |
| 833 | <execution> |
| 834 | <id>post-integration-test</id> |
| 835 | <phase>post-integration-test</phase> |
| 836 | <goals> |
| 837 | <goal>report</goal> |
| 838 | </goals> |
| 839 | <configuration> |
| 840 | <!-- Sets the path to the file which contains the execution data. --> |
| 841 | <dataFile>\${project.build.directory}/code-coverage/jacoco-it.exec</dataFile> |
| 842 | <!-- Sets the output directory for the code coverage report. --> |
| 843 | <outputDirectory>\${project.reporting.outputDirectory}/jacoco-it</outputDirectory> |
| 844 | </configuration> |
| 845 | </execution> |
| 846 | </executions> |
| 847 | </plugin> |
| 848 | <plugin> |
| 849 | <groupId>org.apache.maven.plugins</groupId> |
| 850 | <artifactId>maven-surefire-plugin</artifactId> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 851 | <version>2.22.0</version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 852 | <configuration> |
| 853 | <!-- Sets the VM argument line used when unit tests are run. --> |
| 854 | <argLine>\${surefireArgLine}</argLine> |
| 855 | <!-- Excludes integration tests when unit tests are run. --> |
| 856 | <excludes> |
| 857 | <exclude>**/IT*.java</exclude> |
| 858 | </excludes> |
| 859 | </configuration> |
| 860 | </plugin> |
| 861 | <plugin> |
| 862 | <groupId>org.apache.maven.plugins</groupId> |
| 863 | <artifactId>maven-failsafe-plugin</artifactId> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 864 | <version>2.22.0</version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 865 | <executions> |
| 866 | <!-- Ensures that both integration-test and verify goals of the Failsafe |
| 867 | Maven plugin are executed. --> |
| 868 | <execution> |
| 869 | <id>integration-tests</id> |
| 870 | <goals> |
| 871 | <goal>integration-test</goal> |
| 872 | <goal>verify</goal> |
| 873 | </goals> |
| 874 | <configuration> |
| 875 | <!-- Sets the VM argument line used when integration tests are run. --> |
| 876 | <argLine>\${failsafeArgLine}</argLine> |
| 877 | </configuration> |
| 878 | </execution> |
| 879 | </executions> |
| 880 | </plugin> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 881 | |
| 882 | <!-- End of plugins from ONAP oparent --> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 883 | <plugin> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 884 | <groupId>org.codehaus.mojo</groupId> |
| 885 | <artifactId>properties-maven-plugin</artifactId> |
| 886 | <version>1.0.0</version> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 887 | <executions> |
| 888 | <execution> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 889 | <goals> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 890 | <goal>set-system-properties</goal> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 891 | </goals> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 892 | <configuration> |
| 893 | <properties> |
| 894 | <property> |
| 895 | <name>maven.wagon.http.ssl.allowall</name> |
| 896 | <value>\${ssl.allowall}</value> |
| 897 | </property> |
| 898 | <property> |
| 899 | <name>maven.wagon.http.ssl.insecure</name> |
| 900 | <value>\${ssl.insecure}</value> |
| 901 | </property> |
| 902 | </properties> |
| 903 | </configuration> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 904 | </execution> |
| 905 | </executions> |
| 906 | </plugin> |
| 907 | |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 908 | <plugin> |
| 909 | <groupId>org.codehaus.mojo</groupId> |
| 910 | <artifactId>versions-maven-plugin</artifactId> |
| 911 | <version>2.5</version> |
| 912 | <configuration> |
| 913 | <processAllModules>true</processAllModules> |
| 914 | </configuration> |
| 915 | </plugin> |
| 916 | <plugin> |
| 917 | <artifactId>maven-scm-plugin</artifactId> |
| 918 | <version>1.8.1</version> |
| 919 | <configuration> |
| 920 | <tag>\${project.artifactId}-\${project.version}</tag> |
| 921 | </configuration> |
| 922 | </plugin> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 923 | </plugins> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 924 | </pluginManagement> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 925 | <plugins> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 926 | |
| 927 | <!-- Plugins from oparent version (parent of oparent) --> |
| 928 | <plugin> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 929 | <groupId>org.apache.maven.plugins</groupId> |
| 930 | <artifactId>maven-deploy-plugin</artifactId> |
| 931 | </plugin> |
| 932 | <plugin> |
| 933 | <groupId>org.apache.maven.plugins</groupId> |
| 934 | <artifactId>maven-site-plugin</artifactId> |
| 935 | </plugin> |
| 936 | <plugin> |
| 937 | <groupId>org.apache.maven.plugins</groupId> |
| 938 | <artifactId>maven-enforcer-plugin</artifactId> |
| 939 | </plugin> |
| 940 | <!-- end of plugins from oparent version (parent of oparent) --> |
| 941 | |
| 942 | <!-- Plugins from oparent --> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 943 | <plugin> |
| 944 | <artifactId>maven-checkstyle-plugin</artifactId> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 945 | <version>2.17</version> |
| 946 | <dependencies> |
| 947 | <dependency> |
| 948 | <groupId>org.onap.oparent</groupId> |
| 949 | <artifactId>checkstyle</artifactId> |
| 950 | <version>1.2.2</version> |
| 951 | </dependency> |
| 952 | </dependencies> |
| 953 | <executions> |
| 954 | <execution> |
| 955 | <id>onap-license</id> |
| 956 | <goals> |
| 957 | <goal>check</goal> |
| 958 | </goals> |
| 959 | <phase>process-sources</phase> |
| 960 | <configuration> |
| 961 | <configLocation>onap-checkstyle/check-license.xml</configLocation> |
| 962 | <includeResources>false</includeResources> |
| 963 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 964 | <includeTestResources>false</includeTestResources> |
| 965 | <sourceDirectory>\${project.build.sourceDirectory}</sourceDirectory> |
| 966 | <excludes> |
| 967 | </excludes> |
| 968 | <consoleOutput>true</consoleOutput> |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 969 | <failOnViolation>false</failOnViolation> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 970 | </configuration> |
| 971 | </execution> |
| 972 | <execution> |
| 973 | <id>onap-java-style</id> |
| 974 | <goals> |
| 975 | <goal>check</goal> |
| 976 | </goals> |
| 977 | <phase>process-sources</phase> |
| 978 | <configuration> |
| 979 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 980 | with minor changes --> |
| 981 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 982 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated |
| 983 | sources directory --> |
| 984 | <sourceDirectory>\${project.build.sourceDirectory}/src/main/java</sourceDirectory> |
| 985 | <includeResources>true</includeResources> |
| 986 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 987 | <includeTestResources>true</includeTestResources> |
| 988 | <excludes> |
| 989 | </excludes> |
| 990 | <consoleOutput>true</consoleOutput> |
Timoney, Dan (dt5972) | bbcacd2 | 2019-06-18 10:42:07 -0400 | [diff] [blame] | 991 | <failOnViolation>false</failOnViolation> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 992 | </configuration> |
| 993 | </execution> |
| 994 | </executions> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 995 | </plugin> |
| 996 | <plugin> |
| 997 | <groupId>org.codehaus.mojo</groupId> |
| 998 | <artifactId>build-helper-maven-plugin</artifactId> |
| 999 | <version>1.12</version> |
| 1000 | </plugin> |
| 1001 | <!-- Jacoco / Sonar --> |
| 1002 | <plugin> |
| 1003 | <groupId>org.jacoco</groupId> |
| 1004 | <artifactId>jacoco-maven-plugin</artifactId> |
| 1005 | </plugin> |
| 1006 | <plugin> |
| 1007 | <groupId>org.apache.maven.plugins</groupId> |
| 1008 | <artifactId>maven-surefire-plugin</artifactId> |
| 1009 | </plugin> |
| 1010 | <plugin> |
| 1011 | <groupId>org.apache.maven.plugins</groupId> |
| 1012 | <artifactId>maven-failsafe-plugin</artifactId> |
| 1013 | </plugin> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 1014 | <!-- end of plugins from oparent --> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 1015 | <plugin> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 1016 | <groupId>org.apache.maven.plugins</groupId> |
| 1017 | <artifactId>maven-javadoc-plugin</artifactId> |
| 1018 | <version>2.10.4</version> |
| 1019 | <executions> |
| 1020 | <execution> |
| 1021 | <id>attach-javadocs</id> |
| 1022 | <goals> |
| 1023 | <goal>jar</goal> |
| 1024 | </goals> |
| 1025 | <configuration> |
| 1026 | <additionalparam>-Xdoclint:none</additionalparam> |
| 1027 | </configuration> |
| 1028 | </execution> |
| 1029 | </executions> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 1030 | </plugin> |
| 1031 | </plugins> |
| 1032 | </build> |
Timoney, Dan (dt5972) | 79ddeb6 | 2018-12-20 08:41:05 -0500 | [diff] [blame] | 1033 | <reporting> |
| 1034 | <plugins> |
| 1035 | <plugin> |
| 1036 | <artifactId>maven-javadoc-plugin</artifactId> |
| 1037 | <version>2.10.4</version> |
| 1038 | <configuration> |
| 1039 | <failOnError>false</failOnError> |
| 1040 | <additionalparam>-Xdoclint:none</additionalparam> |
| 1041 | </configuration> |
| 1042 | </plugin> |
| 1043 | </plugins> |
| 1044 | </reporting> |
Timoney, Dan (dt5972) | 3beea0e | 2018-12-18 16:05:41 -0500 | [diff] [blame] | 1045 | <organization> |
| 1046 | <name>ONAP</name> |
| 1047 | </organization> |
| 1048 | </project> |