Last active
May 26, 2017 10:19
-
-
Save keyboardsamurai/baa959e2e8cd3b322225000e58bb20d6 to your computer and use it in GitHub Desktop.
pom.xml of the cloud contract project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.acme.foobar.core</groupId> | |
<artifactId>foobar-gizmo-service</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>foobar-gizmo-service</name> | |
<description>foobar Service</description> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>1.5.3.RELEASE</version> | |
<relativePath/> | |
</parent> | |
<scm> | |
<url>https://stash.acme.com/projects/LOG/repos/foobar-gizmo-service</url> | |
<connection>ssh://[email protected]:7999/log/foobar-gizmo-service.git</connection> | |
<developerConnection>ssh://[email protected]:7999/log/foobar-gizmo-service.git | |
</developerConnection> | |
<tag>HEAD</tag> | |
</scm> | |
<distributionManagement> | |
<repository> | |
<id>central</id> | |
<name>libs-release-local</name> | |
<url>https://artifactory.acme.com/artifactory/libs-release-local</url> | |
</repository> | |
<!--<snapshotRepository>--> | |
<!--<id>snapshots</id>--> | |
<!--<name>libs-snapshot-local</name>--> | |
<!--<url>https://artifactory.acme.com/artifactory/libs-snapshot-local</url>--> | |
<!--</snapshotRepository>--> | |
<snapshotRepository> | |
<id>snapshots</id> | |
<name>ext-snapshot-local</name> | |
<url>https://artifactory.acme.com/artifactory/ext-snapshot-local</url> | |
</snapshotRepository> | |
</distributionManagement> | |
<properties> | |
<bamboo.buildNumber>1.0-local-build</bamboo.buildNumber> | |
<docker.pushImage>false</docker.pushImage> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
<java.version>1.8</java.version> | |
<start-class>com.acme.foobar.core.service.Application</start-class> | |
<executable-jar.classifier>exec</executable-jar.classifier> | |
<!-- libs --> | |
<spring-boot.version>1.5.3.RELEASE</spring-boot.version> | |
<spring-cloud.version>Dalston.RELEASE</spring-cloud.version> | |
<spring-kafka.version>1.1.1.RELEASE</spring-kafka.version> | |
<spring-test.version>4.3.8.RELEASE</spring-test.version> | |
<springfox-swagger.version>2.4.0</springfox-swagger.version> | |
<acme-starter-logging.version>2.3.1</acme-starter-logging.version> | |
<commons-io.version>2.5</commons-io.version> | |
<everit-json.version>1.4.1</everit-json.version> | |
<google-cloud.version>0.7.0</google-cloud.version> | |
<!-- plugins --> | |
<maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version> | |
<duplicate-finder-maven-plugin.version>1.2.1</duplicate-finder-maven-plugin.version> | |
<!-- tests --> | |
<mockito.version>1.10.19</mockito.version> | |
<assertj-core.version>3.4.1</assertj-core.version> | |
<skip.unit.tests>false</skip.unit.tests> | |
<skip.integration.tests>false</skip.integration.tests> | |
<surefireArgLine /> | |
<failsafeArgLine /> | |
<!-- Sonar --> | |
<sonar.host.url>https://sonar.acme.com</sonar.host.url> | |
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> | |
<sonar.jacoco.reportPath>target/jacoco.exec</sonar.jacoco.reportPath> | |
</properties> | |
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-dependencies</artifactId> | |
<version>${spring-boot.version}</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-dependencies</artifactId> | |
<version>${spring-cloud.version}</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.kafka</groupId> | |
<artifactId>spring-kafka</artifactId> | |
<version>${spring-kafka.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.kafka</groupId> | |
<artifactId>spring-kafka-test</artifactId> | |
<version>${spring-kafka.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-test</artifactId> | |
<version>${spring-test.version}</version> | |
</dependency> | |
<!-- acme --> | |
<dependency> | |
<groupId>com.acme.digital</groupId> | |
<artifactId>acme-starter-logging</artifactId> | |
<version>${acme-starter-logging.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>commons-io</groupId> | |
<artifactId>commons-io</artifactId> | |
<version>${commons-io.version}</version> | |
</dependency> | |
<!-- JSON validation --> | |
<dependency> | |
<groupId>org.everit.json</groupId> | |
<artifactId>org.everit.json.schema</artifactId> | |
<version>${everit-json.version}</version> | |
</dependency> | |
<!-- Test --> | |
<dependency> | |
<groupId>org.mockito</groupId> | |
<artifactId>mockito-all</artifactId> | |
<version>${mockito.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<!-- swagger --> | |
<dependency> | |
<groupId>io.springfox</groupId> | |
<artifactId>springfox-swagger2</artifactId> | |
<version>${springfox-swagger.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>io.springfox</groupId> | |
<artifactId>springfox-swagger-ui</artifactId> | |
<version>${springfox-swagger.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.google.cloud</groupId> | |
<artifactId>google-cloud-datastore</artifactId> | |
<version>${google-cloud.version}</version> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-actuator</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-configuration-processor</artifactId> | |
<optional>true</optional> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-web</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-starter-config</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-security</artifactId> | |
</dependency> | |
<!-- JSON validation --> | |
<dependency> | |
<groupId>com.github.fge</groupId> | |
<artifactId>json-schema-validator</artifactId> | |
<version>2.2.6</version> | |
<exclusions> | |
<exclusion> | |
<groupId>net.sf.jopt-simple</groupId> | |
<artifactId>jopt-simple</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>com.google.code.findbugs</groupId> | |
<artifactId>jsr305</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>net.javacrumbs.json-unit</groupId> | |
<artifactId>json-unit</artifactId> | |
<version>1.21.0</version> | |
<scope>test</scope> | |
</dependency> | |
<!-- kafka --> | |
<dependency> | |
<groupId>org.springframework.kafka</groupId> | |
<artifactId>spring-kafka</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.kafka</groupId> | |
<artifactId>spring-kafka-test</artifactId> | |
<exclusions> | |
<exclusion> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-log4j12</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
<version>2.11.8</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>commons-io</groupId> | |
<artifactId>commons-io</artifactId> | |
</dependency> | |
<!-- test --> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-test</artifactId> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<groupId>com.jayway.jsonpath</groupId> | |
<artifactId>json-path</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>org.hamcrest</groupId> | |
<artifactId>hamcrest-core</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-starter-contract-stub-runner</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-starter-contract-verifier</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-contract-wiremock</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-test</artifactId> | |
<version>${spring-boot.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.mockito</groupId> | |
<artifactId>mockito-all</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.assertj</groupId> | |
<artifactId>assertj-core</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.security</groupId> | |
<artifactId>spring-security-test</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<!-- swagger --> | |
<dependency> | |
<groupId>io.springfox</groupId> | |
<artifactId>springfox-swagger2</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.springfox</groupId> | |
<artifactId>springfox-swagger-ui</artifactId> | |
</dependency> | |
<!-- acme --> | |
<dependency> | |
<groupId>com.acme.digital</groupId> | |
<artifactId>acme-starter-logging</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>com.acme.foobar.core</groupId> | |
<artifactId>foobar-kafka-testsupport</artifactId> | |
<version>1.0.6</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.datatype</groupId> | |
<artifactId>jackson-datatype-jsr310</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>javax.inject</groupId> | |
<artifactId>javax.inject</artifactId> | |
<version>1</version> | |
</dependency> | |
<dependency> | |
<groupId>com.acme.foobar.core</groupId> | |
<artifactId>foobar-data-model</artifactId> | |
<version>0.0.20</version> | |
</dependency> | |
<dependency> | |
<groupId>com.acme.foobar.core</groupId> | |
<artifactId>foobar-google-datastore-spring-15</artifactId> | |
<version>0.0.21-SNAPSHOT</version> | |
</dependency> | |
<dependency> | |
<groupId>com.google.cloud</groupId> | |
<artifactId>google-cloud-datastore</artifactId> | |
<version>0.7.0</version> | |
<exclusions> | |
<exclusion> | |
<groupId>javax.servlet</groupId> | |
<artifactId>servlet-api</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
</dependencies> | |
<build> | |
<!-- enable resource filtering --> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
<filtering>true</filtering> | |
</resource> | |
</resources> | |
<testResources> | |
<testResource> | |
<directory>src/test/resources</directory> | |
<filtering>true</filtering> | |
</testResource> | |
</testResources> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>${java.version}</source> | |
<target>${java.version}</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<configuration> | |
<addResources>false</addResources> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<argLine>${surefireArgLine}</argLine> | |
<skipTests>${skip.unit.tests}</skipTests> | |
<includes> | |
<include>**/*Tests.java</include> | |
<include>**/*Test.java</include> | |
</includes> | |
<excludes> | |
<exclude>**/Abstract*.java</exclude> | |
<exclude>**/*IT.java</exclude> | |
</excludes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<version>0.7.8</version> | |
<executions> | |
<execution> | |
<id>default-prepare-agent</id> | |
<goals> | |
<goal>prepare-agent</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>default-report</id> | |
<phase>test</phase> | |
<goals> | |
<goal>report</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>integration-test</id> | |
<goals> | |
<goal>integration-test</goal> | |
<goal>verify</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<argLine>${failsafeArgLine}</argLine> | |
<skipTests>${skip.integration.tests}</skipTests> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.sonarsource.scanner.maven</groupId> | |
<artifactId>sonar-maven-plugin</artifactId> | |
<version>3.2</version> | |
</plugin> | |
<!-- spring cloud contract verifier --> | |
<plugin> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-contract-maven-plugin</artifactId> | |
<version>1.1.0.RELEASE</version> | |
<extensions>true</extensions> | |
<configuration> | |
<testMode>EXPLICIT</testMode> | |
<packageWithBaseClasses>com.acme.foobar.core.service.config</packageWithBaseClasses> | |
<baseClassForTests>ContractVerifierBase</baseClassForTests> | |
</configuration> | |
<executions> | |
<execution> | |
<id>spring-cloud-generateTests</id> | |
<phase>compile</phase> | |
<goals> | |
<goal>generateTests</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>spring-cloud-generateStubs</id> | |
<phase>install</phase> | |
<goals> | |
<goal>generateStubs</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>buildDocker</id> | |
<properties> | |
<docker.registry>docker-registry.acme.com</docker.registry> | |
<docker.host>unix:///var/run/docker.sock</docker.host> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.spotify</groupId> | |
<artifactId>docker-maven-plugin</artifactId> | |
<version>0.4.13</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>build</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<dockerHost>${docker.host}</dockerHost> | |
<baseImage>${docker.registry}/acme-java</baseImage> | |
<imageName>${docker.registry}/${project.artifactId}</imageName> | |
<imageTags> | |
<imageTag>${bamboo.buildNumber}</imageTag> | |
<imageTag>latest</imageTag> | |
</imageTags> | |
<forceTags>true</forceTags> | |
<pushImage>${docker.pushImage}</pushImage> | |
<resources> | |
<resource> | |
<targetPath>/opt/acme</targetPath> | |
<directory>${project.build.directory}</directory> | |
<include>${project.build.finalName}.jar</include> | |
</resource> | |
</resources> | |
<env> | |
<JAR_FILE>/opt/acme/${project.build.finalName}.jar</JAR_FILE> | |
<JAVA_META_SIZE_TO_HEAP_QUOTA>30</JAVA_META_SIZE_TO_HEAP_QUOTA> | |
<SYSTEM_MEMORY>512</SYSTEM_MEMORY> | |
<!--<SERVICE_ADDITIONAL_JAVA_OPTS>-Dspring.profiles.active=prod -Dlogging.config=classpath:logging/logback-spring.xml</SERVICE_ADDITIONAL_JAVA_OPTS>--> | |
</env> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
<reporting> | |
<plugins> | |
<plugin> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<groupId>org.jacoco</groupId> | |
<version>0.7.8</version> | |
<reportSets> | |
<reportSet> | |
<reports> | |
<!-- select non-aggregate reports --> | |
<report>report</report> | |
</reports> | |
</reportSet> | |
</reportSets> | |
</plugin> | |
</plugins> | |
</reporting> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment