Gary Wu | 1c1fc78 | 2018-08-24 15:30:22 -0700 | [diff] [blame] | 1 | <?xml version="1.0"?> |
Benjamin, Max (mb388a) | f47919f | 2019-04-08 14:14:34 -0400 | [diff] [blame] | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | <parent> |
| 6 | <groupId>org.onap.oparent</groupId> |
| 7 | <artifactId>oparent</artifactId> |
| 8 | <version>1.2.1</version> |
| 9 | <relativePath /> |
| 10 | </parent> |
| 11 | <groupId>org.onap.so</groupId> |
| 12 | <artifactId>so</artifactId> |
| 13 | <packaging>pom</packaging> |
| 14 | <version>1.4.0-SNAPSHOT</version> |
| 15 | <name>so</name> |
| 16 | <description>This Maven project is responsible to build and package all child projects - contributions in the MSO project. |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 17 | This build can be configured to run Functional tests and to start/stop a jboss server + Mysql DB. |
| 18 | "mvn clean install -P with-integration-tests -Dintegration-tests-user=root -Dintegration-tests-group=root -Dintegration-tests-db-type=MYSQL" |
| 19 | </description> |
Benjamin, Max (mb388a) | f47919f | 2019-04-08 14:14:34 -0400 | [diff] [blame] | 20 | <organization> |
| 21 | <name>ONAP - SO</name> |
| 22 | <url>http://www.onap.org/</url> |
| 23 | </organization> |
| 24 | <modules> |
| 25 | <module>deployment-configs</module> |
| 26 | <module>common</module> |
| 27 | <module>mso-catalog-db</module> |
| 28 | <module>mso-api-handlers</module> |
| 29 | <module>adapters</module> |
| 30 | <module>asdc-controller</module> |
| 31 | <module>bpmn</module> |
| 32 | <module>cloudify-client</module> |
| 33 | <module>cxf-logging</module> |
| 34 | <module>so-monitoring</module> |
| 35 | <module>packages</module> |
| 36 | </modules> |
| 37 | <properties> |
| 38 | <project.mso.base.folder>.</project.mso.base.folder> |
| 39 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 40 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 41 | <sonar.language>java</sonar.language> |
| 42 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| 43 | <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> |
| 44 | <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 45 | <!--sonar.jacoco.itReportPath>${project.mso.base.folder}/packages/arquillian-unit-tests/target/mso-automated-tests/jacoco-it.exec</sonar.jacoco.itReportPath --> |
| 46 | <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero> |
| 47 | <sonar.projectVersion>${project.version}</sonar.projectVersion> |
| 48 | <sonar.cpd.exclusions>**/*</sonar.cpd.exclusions> |
| 49 | <jacoco.version>0.7.5.201505241946</jacoco.version> |
| 50 | <org.apache.maven.user-settings /> |
| 51 | <!-- TODO: update to version 1.4.0 for Dublin --> |
| 52 | <openstack.version>1.4.0-SNAPSHOT</openstack.version> |
| 53 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
| 54 | <originalClassifier>original</originalClassifier> |
| 55 | <docker.skip>true</docker.skip> |
| 56 | <docker.skip.build>true</docker.skip.build> |
| 57 | <docker.skip.push>true</docker.skip.push> |
| 58 | <docker.buildArg.project_version>${project.version}</docker.buildArg.project_version> |
| 59 | <docker.buildArg.artifact_id>${project.artifactId}</docker.buildArg.artifact_id> |
| 60 | <docker.buildArg.docker_repository>${dockerPullRepo}</docker.buildArg.docker_repository> |
| 61 | <enforcer.skip>true</enforcer.skip> |
| 62 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 63 | <releaseNexusPath>content/repositories/releases/</releaseNexusPath> |
| 64 | <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath> |
| 65 | <publicNexusPath>content/repositories/public/</publicNexusPath> |
| 66 | <siteNexusPath>content/sites/site/org/onap/so/${project.version}/</siteNexusPath> |
| 67 | <cxf.version>3.2.6</cxf.version> |
| 68 | <jax.ws.rs>2.1</jax.ws.rs> |
| 69 | <springboot.version>2.0.5.RELEASE</springboot.version> |
| 70 | <camunda.springboot.version>3.2.0</camunda.springboot.version> |
| 71 | <format.skipValidate>false</format.skipValidate> |
| 72 | <format.skipExecute>true</format.skipExecute> |
| 73 | </properties> |
| 74 | <distributionManagement> |
| 75 | <repository> |
| 76 | <id>ecomp-releases</id> |
| 77 | <url>${nexusproxy}/${releaseNexusPath}</url> |
| 78 | </repository> |
| 79 | <snapshotRepository> |
| 80 | <id>ecomp-snapshots</id> |
| 81 | <url>${nexusproxy}/${snapshotNexusPath}</url> |
| 82 | </snapshotRepository> |
| 83 | <site> |
| 84 | <id>ecomp-site</id> |
| 85 | <url>dav:${nexusproxy}${siteNexusPath}</url> |
| 86 | </site> |
| 87 | </distributionManagement> |
| 88 | <reporting> |
| 89 | <plugins> |
| 90 | <plugin> |
| 91 | <groupId>org.apache.maven.plugins</groupId> |
| 92 | <artifactId>maven-javadoc-plugin</artifactId> |
| 93 | <version>2.10.4</version> |
| 94 | <configuration> |
| 95 | <failOnError>false</failOnError> |
| 96 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 97 | <docletArtifact> |
| 98 | <groupId>org.umlgraph</groupId> |
| 99 | <artifactId>umlgraph</artifactId> |
| 100 | <version>5.6</version> |
| 101 | </docletArtifact> |
| 102 | <additionalparam>-views</additionalparam> |
| 103 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 104 | </configuration> |
| 105 | </plugin> |
| 106 | </plugins> |
| 107 | </reporting> |
| 108 | <!-- configure build --> |
| 109 | <!-- *********************************************************************************************************** --> |
| 110 | <!-- Plugins and repositories --> |
| 111 | <pluginRepositories> |
| 112 | <pluginRepository> |
| 113 | <id>central</id> |
| 114 | <url>http://repo1.maven.org/maven2</url> |
| 115 | </pluginRepository> |
| 116 | <pluginRepository> |
| 117 | <id>restlet</id> |
| 118 | <url>http://maven.restlet.com</url> |
| 119 | </pluginRepository> |
| 120 | <pluginRepository> |
| 121 | <id>ecomp-public</id> |
| 122 | <url>${nexusproxy}/${publicNexusPath}</url> |
| 123 | <snapshots> |
| 124 | <enabled>false</enabled> |
| 125 | </snapshots> |
| 126 | </pluginRepository> |
| 127 | <pluginRepository> |
| 128 | <id>ecomp-release</id> |
| 129 | <url>${nexusproxy}/${releaseNexusPath}</url> |
| 130 | <snapshots> |
| 131 | <enabled>false</enabled> |
| 132 | </snapshots> |
| 133 | </pluginRepository> |
| 134 | <pluginRepository> |
| 135 | <id>ecomp-snapshots</id> |
| 136 | <url>${nexusproxy}/${snapshotNexusPath}</url> |
| 137 | <releases> |
| 138 | <enabled>false</enabled> |
| 139 | </releases> |
| 140 | </pluginRepository> |
| 141 | </pluginRepositories> |
| 142 | <repositories> |
| 143 | <repository> |
| 144 | <id>ecomp-public</id> |
| 145 | <url>https://nexus.onap.org/content/repositories/public/</url> |
| 146 | <snapshots> |
| 147 | <enabled>false</enabled> |
| 148 | </snapshots> |
| 149 | </repository> |
| 150 | <repository> |
| 151 | <id>ecomp-releases</id> |
| 152 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 153 | <snapshots> |
| 154 | <enabled>false</enabled> |
| 155 | </snapshots> |
| 156 | </repository> |
| 157 | <repository> |
| 158 | <id>ecomp-snapshots</id> |
| 159 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 160 | <releases> |
| 161 | <enabled>false</enabled> |
| 162 | </releases> |
| 163 | </repository> |
| 164 | <repository> |
| 165 | <id>camunda-bpm</id> |
| 166 | <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm/</url> |
| 167 | </repository> |
| 168 | <repository> |
| 169 | <id>camunda-public</id> |
| 170 | <url>https://app.camunda.com/nexus/content/groups/public</url> |
| 171 | </repository> |
| 172 | <repository> |
| 173 | <!-- TODO: remove from ONAP environemnt --> |
| 174 | <id>onap-releases</id> |
| 175 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 176 | <snapshots> |
| 177 | <enabled>false</enabled> |
| 178 | </snapshots> |
| 179 | </repository> |
| 180 | <repository> |
| 181 | <!-- TODO: remove from ONAP environemnt --> |
| 182 | <id>onap-snapshots</id> |
| 183 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 184 | <releases> |
| 185 | <enabled>false</enabled> |
| 186 | </releases> |
| 187 | </repository> |
| 188 | </repositories> |
| 189 | <!-- *********************************************************************************************************** --> |
| 190 | <!-- Build --> |
| 191 | <build> |
| 192 | <resources> |
| 193 | <resource> |
| 194 | <directory>src/main/resources</directory> |
| 195 | <filtering>true</filtering> |
| 196 | </resource> |
| 197 | <resource> |
| 198 | <directory>target/generated-sources/license</directory> |
| 199 | <includes> |
| 200 | <include>third-party-licenses.txt</include> |
| 201 | </includes> |
| 202 | </resource> |
| 203 | <resource> |
| 204 | <directory>target/generated-resources/licenses</directory> |
| 205 | <includes> |
| 206 | <include>*.*</include> |
| 207 | </includes> |
| 208 | <targetPath>third-party-licenses</targetPath> |
| 209 | </resource> |
| 210 | </resources> |
| 211 | <plugins> |
| 212 | <plugin> |
| 213 | <groupId>org.sonatype.plugins</groupId> |
| 214 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 215 | <version>1.6.7</version> |
| 216 | <extensions>true</extensions> |
| 217 | <configuration> |
| 218 | <nexusUrl>${nexusproxy}</nexusUrl> |
| 219 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 220 | <serverId>ecomp-staging</serverId> |
| 221 | </configuration> |
| 222 | </plugin> |
| 223 | <plugin> |
| 224 | <groupId>org.apache.maven.plugins</groupId> |
| 225 | <artifactId>maven-deploy-plugin</artifactId> |
| 226 | <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter --> |
| 227 | <configuration> |
| 228 | <skip /> |
| 229 | </configuration> |
| 230 | </plugin> |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 231 | |
Benjamin, Max (mb388a) | f47919f | 2019-04-08 14:14:34 -0400 | [diff] [blame] | 232 | <plugin> |
| 233 | <groupId>org.apache.maven.plugins</groupId> |
| 234 | <artifactId>maven-compiler-plugin</artifactId> |
| 235 | <version>3.6.1</version> |
| 236 | <configuration> |
| 237 | <debug>true</debug> |
| 238 | <compilerArgument>-Xlint</compilerArgument> |
| 239 | <verbose>true</verbose> |
| 240 | <showDeprecation>true</showDeprecation> |
| 241 | <showWarnings>true</showWarnings> |
| 242 | <source>1.8</source> |
| 243 | <target>1.8</target> |
| 244 | <compilerArgs> |
| 245 | <arg>-parameters</arg> |
| 246 | </compilerArgs> |
| 247 | </configuration> |
| 248 | </plugin> |
| 249 | <plugin> |
| 250 | <groupId>org.apache.maven.plugins</groupId> |
| 251 | <artifactId>maven-ejb-plugin</artifactId> |
| 252 | <version>2.2.1</version> |
| 253 | <configuration> |
| 254 | <ejbVersion>3.0</ejbVersion> |
| 255 | <archive> |
| 256 | <manifest> |
| 257 | <addClasspath>true</addClasspath> |
| 258 | </manifest> |
| 259 | </archive> |
| 260 | </configuration> |
| 261 | </plugin> |
| 262 | <plugin> |
| 263 | <groupId>org.apache.maven.plugins</groupId> |
| 264 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 265 | <version>2.17</version> |
| 266 | <configuration> |
| 267 | <skip>true</skip> |
| 268 | <includes>**/org/openecomp/**/*.java</includes> |
| 269 | <configLocation>/google_checks.xml</configLocation> |
| 270 | </configuration> |
| 271 | </plugin> |
| 272 | <plugin> |
| 273 | <groupId>org.codehaus.mojo</groupId> |
| 274 | <artifactId>findbugs-maven-plugin</artifactId> |
| 275 | <version>2.5.2</version> |
| 276 | <configuration> |
| 277 | <includeFilterFile>project-configs/code-tools/findbugs_include_filter.xml</includeFilterFile> |
| 278 | <nested>true</nested> |
| 279 | <findbugsXmlOutput>true</findbugsXmlOutput> |
| 280 | <findbugsXmlWithMessages>true</findbugsXmlWithMessages> |
| 281 | <xmlOutput>true</xmlOutput> |
| 282 | </configuration> |
| 283 | </plugin> |
| 284 | <plugin> |
| 285 | <groupId>org.codehaus.mojo</groupId> |
| 286 | <artifactId>sonar-maven-plugin</artifactId> |
| 287 | <version>5.1</version> |
| 288 | </plugin> |
| 289 | <plugin> |
| 290 | <artifactId>maven-scm-plugin</artifactId> |
| 291 | <version>1.8.1</version> |
| 292 | <configuration> |
| 293 | <tag>${project.artifactId}-${project.version}</tag> |
| 294 | </configuration> |
| 295 | </plugin> |
| 296 | <plugin> |
| 297 | <groupId>org.apache.maven.plugins</groupId> |
| 298 | <artifactId>maven-javadoc-plugin</artifactId> |
| 299 | <version>2.9</version> |
| 300 | </plugin> |
| 301 | <plugin> |
| 302 | <groupId>org.apache.maven.plugins</groupId> |
| 303 | <artifactId>maven-site-plugin</artifactId> |
| 304 | <version>3.6</version> |
| 305 | <dependencies> |
| 306 | <dependency> |
| 307 | <groupId>org.apache.maven.wagon</groupId> |
| 308 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 309 | <version>2.10</version> |
| 310 | </dependency> |
| 311 | </dependencies> |
| 312 | </plugin> |
| 313 | <plugin> |
| 314 | <groupId>org.codehaus.mojo</groupId> |
| 315 | <artifactId>cobertura-maven-plugin</artifactId> |
| 316 | <version>2.5.2</version> |
| 317 | <configuration> |
| 318 | <formats> |
| 319 | <format>xml</format> |
| 320 | </formats> |
| 321 | </configuration> |
| 322 | </plugin> |
| 323 | <plugin> |
| 324 | <groupId>org.codehaus.mojo</groupId> |
| 325 | <artifactId>versions-maven-plugin</artifactId> |
| 326 | <version>1.3.1</version> |
| 327 | </plugin> |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 328 | |
Benjamin, Max (mb388a) | f47919f | 2019-04-08 14:14:34 -0400 | [diff] [blame] | 329 | <plugin> |
| 330 | <groupId>com.fortify.ps.maven.plugin</groupId> |
| 331 | <artifactId>sca-maven-plugin</artifactId> |
| 332 | <version>4.20</version> |
| 333 | <configuration> |
| 334 | <buildId>mso-${project.version}</buildId> |
| 335 | <source>1.8</source> |
| 336 | </configuration> |
| 337 | </plugin> |
| 338 | <plugin> |
| 339 | <groupId>org.jacoco</groupId> |
| 340 | <artifactId>jacoco-maven-plugin</artifactId> |
| 341 | <version>${jacoco.version}</version> |
| 342 | <executions> |
| 343 | <execution> |
| 344 | <id>default-prepare-agent</id> |
| 345 | <goals> |
| 346 | <goal>prepare-agent</goal> |
| 347 | </goals> |
| 348 | </execution> |
| 349 | <execution> |
| 350 | <id>default-report</id> |
| 351 | <goals> |
| 352 | <goal>report</goal> |
| 353 | </goals> |
| 354 | </execution> |
| 355 | </executions> |
| 356 | </plugin> |
| 357 | <plugin> |
| 358 | <groupId>org.codehaus.mojo</groupId> |
| 359 | <artifactId>license-maven-plugin</artifactId> |
| 360 | <version>1.15</version> |
| 361 | <configuration> |
| 362 | <inceptionYear>2017</inceptionYear> |
| 363 | <projectName>ONAP - SO</projectName> |
| 364 | <licenseName>apache_v2</licenseName> |
| 365 | <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage> |
| 366 | <emptyLineAfterHeader>true</emptyLineAfterHeader> |
| 367 | <trimHeaderLine>true</trimHeaderLine> |
| 368 | <processStartTag>============LICENSE_START=======================================================</processStartTag> |
| 369 | <sectionDelimiter>================================================================================</sectionDelimiter> |
| 370 | <processEndTag>============LICENSE_END=========================================================</processEndTag> |
| 371 | <includes> |
| 372 | <include>**/*.java</include> |
| 373 | <include>**/*.groovy</include> |
| 374 | </includes> |
| 375 | <excludes> |
| 376 | <exclude>**/com/att/**</exclude> |
| 377 | </excludes> |
| 378 | </configuration> |
| 379 | <executions> |
| 380 | <execution> |
| 381 | <id>verify-headers</id> |
| 382 | <goals> |
| 383 | <goal>check-file-header</goal> |
| 384 | </goals> |
| 385 | <configuration> |
| 386 | <failOnNotUptodateHeader>true</failOnNotUptodateHeader> |
| 387 | <failOnMissingHeader>true</failOnMissingHeader> |
| 388 | </configuration> |
| 389 | </execution> |
| 390 | </executions> |
| 391 | </plugin> |
| 392 | <plugin> |
| 393 | <groupId>org.codehaus.gmaven</groupId> |
| 394 | <artifactId>groovy-maven-plugin</artifactId> |
| 395 | <version>2.0</version> |
| 396 | <executions> |
| 397 | <!-- set absolute base path from super pom --> |
| 398 | <execution> |
| 399 | <id>find-basepath</id> |
| 400 | <phase>validate</phase> |
| 401 | <goals> |
| 402 | <goal>execute</goal> |
| 403 | </goals> |
| 404 | <configuration> |
| 405 | <source> |
| 406 | <![CDATA[ |
| 407 | import java.io.File; |
| 408 | log.info('## define projects super pom absolute path through basepath_marker') |
| 409 | String p = "basepath_marker"; |
| 410 | File f = null; |
| 411 | if( p != null ) { |
| 412 | def _max_child_poms = 0 |
| 413 | while( _max_child_poms++ < 5 ) { |
| 414 | f = new File( p ); |
| 415 | if( f.exists() ) { |
| 416 | break; |
| 417 | } |
| 418 | p = "../" + p; |
| 419 | } |
| 420 | } |
| 421 | if( f != null ) { |
| 422 | String basePath = f.getCanonicalPath(); |
| 423 | basePath = basePath.substring( 0, basePath.lastIndexOf( File.separator ) ); |
| 424 | project.properties['base-path'] = basePath.replace( '\\' , '/'); |
| 425 | log.info(' - used base path = ' + project.properties['base-path'] ); |
| 426 | } else { |
| 427 | log.error( 'Could not find basepath_marker marker file!' ); |
| 428 | System.stop( 0 ); |
| 429 | } |
| 430 | ]]> |
| 431 | </source> |
| 432 | </configuration> |
| 433 | </execution> |
| 434 | </executions> |
| 435 | </plugin> |
| 436 | <plugin> |
| 437 | <groupId>net.revelc.code.formatter</groupId> |
| 438 | <artifactId>formatter-maven-plugin</artifactId> |
| 439 | <version>2.9.0</version> |
| 440 | <executions> |
| 441 | <execution> |
| 442 | <id>format-java</id> |
| 443 | <goals> |
| 444 | <goal>format</goal> |
| 445 | </goals> |
| 446 | <configuration> |
| 447 | <skip>${format.skipExecute}</skip> |
| 448 | <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile> |
| 449 | </configuration> |
| 450 | </execution> |
| 451 | <execution> |
| 452 | <id>format-xml</id> |
| 453 | <goals> |
| 454 | <goal>format</goal> |
| 455 | </goals> |
| 456 | <configuration> |
| 457 | <skip>${format.skipExecute}</skip> |
| 458 | <sourceDirectory>${project.basedir}</sourceDirectory> |
| 459 | <configXmlFile>${base-path}/project-configs/code-tools/pom-format.properties</configXmlFile> |
| 460 | <includes> |
| 461 | <include>${project.basedir}/pom.xml</include> |
| 462 | </includes> |
| 463 | </configuration> |
| 464 | </execution> |
| 465 | <execution> |
| 466 | <id>validate-java</id> |
| 467 | <goals> |
| 468 | <goal>validate</goal> |
| 469 | </goals> |
| 470 | <configuration> |
| 471 | <skip>${format.skipValidate}</skip> |
| 472 | <configFile>${base-path}/project-configs/code-tools/onap-eclipse-format.xml</configFile> |
| 473 | </configuration> |
| 474 | </execution> |
| 475 | <execution> |
| 476 | <id>validate-poms</id> |
| 477 | <goals> |
| 478 | <goal>validate</goal> |
| 479 | </goals> |
| 480 | <configuration> |
| 481 | <skip>${format.skipValidate}</skip> |
| 482 | <configFile>${base-path}/project-configs/code-tools/pom-format.properties</configFile> |
| 483 | <includes> |
| 484 | <include>${project.basedir}/pom.xml</include> |
| 485 | </includes> |
| 486 | </configuration> |
| 487 | </execution> |
| 488 | </executions> |
| 489 | <dependencies> |
| 490 | <dependency> |
| 491 | <groupId>com.fasterxml.jackson.core</groupId> |
| 492 | <artifactId>jackson-annotations</artifactId> |
| 493 | <version>2.9.8</version> |
| 494 | </dependency> |
| 495 | </dependencies> |
| 496 | </plugin> |
| 497 | </plugins> |
| 498 | <pluginManagement> |
| 499 | <plugins> |
| 500 | <plugin> |
| 501 | <groupId>io.fabric8</groupId> |
| 502 | <artifactId>fabric8-maven-plugin</artifactId> |
| 503 | <version>3.5.33</version> |
| 504 | <configuration> |
| 505 | <skip>${docker.skip}</skip> |
| 506 | <skipBuild>${docker.skip.build}</skipBuild> |
| 507 | <skipPush>${docker.skip.push}</skipPush> |
| 508 | <dockerHost>${docker.newHost}</dockerHost> <!-- 1. Update address to your local docker VM. 2. Add IP to your NO_PROXY environment variable --> |
| 509 | <certPath>${docker.host.cert.path}</certPath><!-- Add -Ddocker.host.cert.pat="path to your local certs directory" |
| 510 | to maven build command --> |
| 511 | <pushRegistry>${dockerPushRepo}</pushRegistry> <!-- Update .m2/settings.xml Add server id settings.dockerRepository, username, and password --> |
| 512 | <pullRegistry>${dockerPullRepo}</pullRegistry> <!-- If docker repo is not public. Update .m2/settings.xml Add server id settings.dockerRepository, username, and password --> |
| 513 | <images> |
| 514 | <image> |
| 515 | <alias>service</alias> |
| 516 | <name>${artifactId}:${project.version}</name> |
| 517 | <build> |
| 518 | <dockerFileDir>${project.build.directory}</dockerFileDir> |
| 519 | </build> |
| 520 | </image> |
| 521 | </images> |
| 522 | </configuration> |
| 523 | <executions> |
| 524 | <execution> |
| 525 | <id>start</id> |
| 526 | <goals> |
| 527 | <goal>build</goal> |
| 528 | <goal>push</goal> |
| 529 | </goals> |
| 530 | </execution> |
| 531 | </executions> |
| 532 | </plugin> |
| 533 | <plugin> |
| 534 | <groupId>org.apache.maven.plugins</groupId> |
| 535 | <artifactId>maven-surefire-plugin</artifactId> |
| 536 | <version>2.20</version> |
| 537 | <configuration> |
| 538 | <systemPropertyVariables> |
| 539 | <so.log.level>DEBUG</so.log.level> |
| 540 | </systemPropertyVariables> |
| 541 | <rerunFailingTestsCount>2</rerunFailingTestsCount> |
| 542 | <parallel>classes</parallel> |
| 543 | <useUnlimitedThreads>false</useUnlimitedThreads> |
| 544 | <threadCount>1</threadCount> |
| 545 | </configuration> |
| 546 | </plugin> |
| 547 | <plugin> |
| 548 | <groupId>org.apache.maven.plugins</groupId> |
| 549 | <artifactId>maven-failsafe-plugin</artifactId> |
| 550 | <version>2.20</version> |
| 551 | <configuration> |
| 552 | <skip>true</skip> |
| 553 | <systemPropertyVariables> |
| 554 | <so.log.level>DEBUG</so.log.level> |
| 555 | </systemPropertyVariables> |
| 556 | <rerunFailingTestsCount>2</rerunFailingTestsCount> |
| 557 | </configuration> |
| 558 | </plugin> |
| 559 | <plugin> |
| 560 | <groupId>org.apache.maven.plugins</groupId> |
| 561 | <artifactId>maven-dependency-plugin</artifactId> |
| 562 | <executions> |
| 563 | <execution> |
| 564 | <id>extract-docker-file</id> |
| 565 | <goals> |
| 566 | <goal>unpack</goal> |
| 567 | </goals> |
| 568 | <configuration> |
| 569 | <artifactItems> |
| 570 | <artifactItem> |
| 571 | <groupId>org.onap.so</groupId> |
| 572 | <artifactId>deployment-configs</artifactId> |
| 573 | <version>${project.version}</version> |
| 574 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 575 | <includes>*,scripts/**,certs/**, logger/*.xml</includes> |
| 576 | <excludes>Kubernetes</excludes> |
| 577 | </artifactItem> |
| 578 | </artifactItems> |
| 579 | </configuration> |
| 580 | </execution> |
| 581 | </executions> |
| 582 | </plugin> |
| 583 | <plugin> |
| 584 | <groupId>org.apache.maven.plugins</groupId> |
| 585 | <artifactId>maven-jar-plugin</artifactId> |
| 586 | <version>3.0.2</version> |
| 587 | <executions> |
| 588 | <execution> |
| 589 | <id>tests</id> |
| 590 | <goals> |
| 591 | <goal>test-jar</goal> |
| 592 | </goals> |
| 593 | <configuration> |
| 594 | <skip>false</skip> |
| 595 | </configuration> |
| 596 | </execution> |
| 597 | <execution> |
| 598 | <id>original</id> |
| 599 | <phase>package</phase> |
| 600 | <goals> |
| 601 | <goal>jar</goal> |
| 602 | </goals> |
| 603 | <configuration> |
| 604 | <classifier>${originalClassifier}</classifier> |
| 605 | <includes> |
| 606 | <include>**</include> |
| 607 | </includes> |
| 608 | </configuration> |
| 609 | </execution> |
| 610 | </executions> |
| 611 | </plugin> |
| 612 | <plugin> |
| 613 | <groupId>org.springframework.boot</groupId> |
| 614 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 615 | <version>${springboot.version}</version> |
| 616 | <executions> |
| 617 | <execution> |
| 618 | <id>build-info</id> |
| 619 | <goals> |
| 620 | <goal>build-info</goal> |
| 621 | </goals> |
| 622 | </execution> |
| 623 | </executions> |
| 624 | </plugin> |
| 625 | </plugins> |
| 626 | </pluginManagement> |
| 627 | </build> |
| 628 | <!-- *********************************************************************************************************** --> |
| 629 | <!-- Dependencies --> |
| 630 | <dependencies> |
| 631 | <dependency> |
| 632 | <groupId>com.fasterxml.jackson.core</groupId> |
| 633 | <artifactId>jackson-core</artifactId> |
| 634 | </dependency> |
| 635 | <dependency> |
| 636 | <groupId>com.fasterxml.jackson.module</groupId> |
| 637 | <artifactId>jackson-module-jaxb-annotations</artifactId> |
| 638 | </dependency> |
| 639 | <dependency> |
| 640 | <groupId>com.fasterxml.jackson.core</groupId> |
| 641 | <artifactId>jackson-databind</artifactId> |
| 642 | </dependency> |
| 643 | <dependency> |
| 644 | <groupId>com.fasterxml.jackson.core</groupId> |
| 645 | <artifactId>jackson-annotations</artifactId> |
| 646 | </dependency> |
| 647 | <dependency> |
| 648 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 649 | <artifactId>jackson-jaxrs-base</artifactId> |
| 650 | </dependency> |
| 651 | <dependency> |
| 652 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 653 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 654 | </dependency> |
| 655 | <dependency> |
| 656 | <groupId>javax.ws.rs</groupId> |
| 657 | <artifactId>javax.ws.rs-api</artifactId> |
| 658 | <version>${jax.ws.rs}</version> |
| 659 | </dependency> |
| 660 | <dependency> |
| 661 | <groupId>javax.annotation</groupId> |
| 662 | <artifactId>javax.annotation-api</artifactId> |
| 663 | <version>1.3.1</version> |
| 664 | </dependency> |
| 665 | <dependency> |
| 666 | <groupId>javax.inject</groupId> |
| 667 | <artifactId>javax.inject</artifactId> |
| 668 | <version>1</version> |
| 669 | </dependency> |
| 670 | <dependency> |
| 671 | <groupId>org.mockito</groupId> |
| 672 | <artifactId>mockito-core</artifactId> |
| 673 | </dependency> |
| 674 | <dependency> |
| 675 | <groupId>org.hamcrest</groupId> |
| 676 | <artifactId>hamcrest-core</artifactId> |
| 677 | </dependency> |
| 678 | <dependency> |
| 679 | <groupId>org.hamcrest</groupId> |
| 680 | <artifactId>hamcrest-library</artifactId> |
| 681 | </dependency> |
| 682 | <dependency> |
| 683 | <groupId>junit</groupId> |
| 684 | <artifactId>junit</artifactId> |
| 685 | <scope>test</scope> |
| 686 | </dependency> |
| 687 | <dependency> |
| 688 | <groupId>xmlunit</groupId> |
| 689 | <artifactId>xmlunit</artifactId> |
| 690 | <version>1.6</version> |
| 691 | <scope>test</scope> |
| 692 | </dependency> |
| 693 | <dependency> |
| 694 | <groupId>com.github.tomakehurst</groupId> |
| 695 | <artifactId>wiremock-standalone</artifactId> |
| 696 | <version>2.13.0</version> |
| 697 | <scope>test</scope> |
| 698 | <exclusions> |
| 699 | <exclusion> |
| 700 | <groupId>org.mortbay.jetty</groupId> |
| 701 | <artifactId>jetty</artifactId> |
| 702 | </exclusion> |
| 703 | <exclusion> |
| 704 | <groupId>com.google.guava</groupId> |
| 705 | <artifactId>guava</artifactId> |
| 706 | </exclusion> |
| 707 | <exclusion> |
| 708 | <groupId>com.fasterxml.jackson.core</groupId> |
| 709 | <artifactId>jackson-core</artifactId> |
| 710 | </exclusion> |
| 711 | <exclusion> |
| 712 | <groupId>com.fasterxml.jackson.core</groupId> |
| 713 | <artifactId>jackson-annotations</artifactId> |
| 714 | </exclusion> |
| 715 | <exclusion> |
| 716 | <groupId>com.fasterxml.jackson.core</groupId> |
| 717 | <artifactId>jackson-databind</artifactId> |
| 718 | </exclusion> |
| 719 | <exclusion> |
| 720 | <groupId>org.apache.httpcomponents</groupId> |
| 721 | <artifactId>httpclient</artifactId> |
| 722 | </exclusion> |
| 723 | <exclusion> |
| 724 | <groupId>org.skyscreamer</groupId> |
| 725 | <artifactId>jsonassert</artifactId> |
| 726 | </exclusion> |
| 727 | <exclusion> |
| 728 | <groupId>xmlunit</groupId> |
| 729 | <artifactId>xmlunit</artifactId> |
| 730 | </exclusion> |
| 731 | <exclusion> |
| 732 | <groupId>com.jayway.jsonpath</groupId> |
| 733 | <artifactId>json-path</artifactId> |
| 734 | </exclusion> |
| 735 | <exclusion> |
| 736 | <groupId>net.sf.jopt-simple</groupId> |
| 737 | <artifactId>jopt-simple</artifactId> |
| 738 | </exclusion> |
| 739 | </exclusions> |
| 740 | </dependency> |
| 741 | <dependency> |
| 742 | <groupId>com.openpojo</groupId> |
| 743 | <artifactId>openpojo</artifactId> |
| 744 | <version>0.8.10</version> |
| 745 | </dependency> |
| 746 | <dependency> |
| 747 | <groupId>com.shazam</groupId> |
| 748 | <artifactId>shazamcrest</artifactId> |
| 749 | <version>0.11</version> |
| 750 | <scope>test</scope> |
| 751 | <exclusions> |
| 752 | <exclusion> |
| 753 | <groupId>com.google.guava</groupId> |
| 754 | <artifactId>guava</artifactId> |
| 755 | </exclusion> |
| 756 | <exclusion> |
| 757 | <groupId>org.apache.commons</groupId> |
| 758 | <artifactId>commons-lang3</artifactId> |
| 759 | </exclusion> |
| 760 | </exclusions> |
| 761 | </dependency> |
| 762 | <dependency> |
| 763 | <groupId>org.assertj</groupId> |
| 764 | <artifactId>assertj-core</artifactId> |
| 765 | <version>3.11.1</version> |
| 766 | <scope>test</scope> |
| 767 | </dependency> |
| 768 | <dependency> |
| 769 | <groupId>com.googlecode.junit-toolbox</groupId> |
| 770 | <artifactId>junit-toolbox</artifactId> |
| 771 | <version>2.4</version> |
| 772 | </dependency> |
| 773 | </dependencies> |
| 774 | <dependencyManagement> |
| 775 | <dependencies> |
| 776 | <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient --> |
| 777 | <!-- force use of version 4.5 everywhere in transient deps, aligned on WildFly 10 version --> |
| 778 | <dependency> |
| 779 | <groupId>org.apache.httpcomponents</groupId> |
| 780 | <artifactId>httpcore</artifactId> |
| 781 | <version>4.4.4</version> |
| 782 | <scope>compile</scope> |
| 783 | </dependency> |
| 784 | <dependency> |
| 785 | <groupId>commons-codec</groupId> |
| 786 | <artifactId>commons-codec</artifactId> |
| 787 | <version>1.10</version> |
| 788 | <scope>compile</scope> |
| 789 | </dependency> |
| 790 | <dependency> |
| 791 | <groupId>commons-io</groupId> |
| 792 | <artifactId>commons-io</artifactId> |
| 793 | <version>2.5</version> |
| 794 | <scope>compile</scope> |
| 795 | </dependency> |
| 796 | <dependency> |
| 797 | <groupId>com.sun.xml.fastinfoset</groupId> |
| 798 | <artifactId>FastInfoset</artifactId> |
| 799 | <version>1.2.13</version> |
| 800 | <scope>compile</scope> |
| 801 | </dependency> |
| 802 | <dependency> |
| 803 | <groupId>org.springframework.boot</groupId> |
| 804 | <artifactId>spring-boot-dependencies</artifactId> |
| 805 | <version>${springboot.version}</version> |
| 806 | <type>pom</type> |
| 807 | <scope>import</scope> |
| 808 | </dependency> |
| 809 | <dependency> |
| 810 | <groupId>org.yaml</groupId> |
| 811 | <artifactId>snakeyaml</artifactId> |
| 812 | <version>1.23</version> |
| 813 | </dependency> |
| 814 | <dependency> |
| 815 | <groupId>javax.interceptor</groupId> |
| 816 | <artifactId>javax.interceptor-api</artifactId> |
| 817 | <version>1.2.2</version> |
| 818 | </dependency> |
| 819 | <dependency> |
| 820 | <groupId>org.springframework.boot</groupId> |
| 821 | <artifactId>spring-boot-starter-test</artifactId> |
| 822 | <version>${springboot.version}</version> |
| 823 | <exclusions> |
| 824 | <exclusion> |
| 825 | <groupId>com.vaadin.external.google</groupId> |
| 826 | <artifactId>android-json</artifactId> |
| 827 | </exclusion> |
| 828 | </exclusions> |
| 829 | </dependency> |
| 830 | <dependency> |
| 831 | <groupId>net.javacrumbs.shedlock</groupId> |
| 832 | <artifactId>shedlock-spring</artifactId> |
| 833 | <version>0.18.2</version> |
| 834 | </dependency> |
| 835 | <dependency> |
| 836 | <groupId>net.javacrumbs.shedlock</groupId> |
| 837 | <artifactId>shedlock-provider-jdbc-template</artifactId> |
| 838 | <version>0.18.2</version> |
| 839 | </dependency> |
| 840 | <dependency> |
| 841 | <groupId>org.flywaydb</groupId> |
| 842 | <artifactId>flyway-core</artifactId> |
| 843 | <version>5.1.4</version> |
| 844 | </dependency> |
| 845 | <dependency> |
| 846 | <groupId>org.json</groupId> |
| 847 | <artifactId>json</artifactId> |
| 848 | <version>20140107</version> |
| 849 | </dependency> |
| 850 | <dependency> |
| 851 | <groupId>org.yaml</groupId> |
| 852 | <artifactId>snakeyaml</artifactId> |
| 853 | <version>1.19</version> |
| 854 | </dependency> |
| 855 | </dependencies> |
| 856 | </dependencyManagement> |
| 857 | <profiles> |
| 858 | <profile> |
| 859 | <id>docker-image-build</id> |
| 860 | <properties> |
| 861 | <docker.skip>false</docker.skip> |
| 862 | <docker.skip.build>false</docker.skip.build> |
| 863 | <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation> |
| 864 | </properties> |
| 865 | </profile> |
| 866 | <profile> |
| 867 | <id>docker-image-build-push</id> |
| 868 | <properties> |
| 869 | <docker.skip>false</docker.skip> |
| 870 | <docker.skip.build>false</docker.skip.build> |
| 871 | <docker.skip.push>false</docker.skip.push> |
| 872 | <fabric8.skipResourceValidation>true</fabric8.skipResourceValidation> |
| 873 | </properties> |
| 874 | </profile> |
| 875 | <profile> |
| 876 | <id>format</id> |
| 877 | <properties> |
| 878 | <format.skipValidate>true</format.skipValidate> |
| 879 | <format.skipExecute>false</format.skipExecute> |
| 880 | </properties> |
| 881 | </profile> |
| 882 | <profile> |
| 883 | <id>m2e</id> |
| 884 | <activation> |
| 885 | <property> |
| 886 | <name>m2e.version</name> |
| 887 | </property> |
| 888 | </activation> |
| 889 | <properties> |
| 890 | <originalClassifier /> |
| 891 | </properties> |
| 892 | </profile> |
| 893 | </profiles> |
JulienBe | ec92b1a | 2017-02-06 11:22:26 +0100 | [diff] [blame] | 894 | </project> |