Created
May 20, 2015 08:42
-
-
Save eeichinger/04f926432fc10b20f74a to your computer and use it in GitHub Desktop.
A pom template, use for- set file encoding- compile java 8, target java 7 jvm- embed manifests with jenkins build info into jar and war- configure enforcer plugin- define various commonly used libs + versions (slf4j, logback, logstash, spring, spring-cloud, hystrix, rxjava, dropwizard, concordion, wiremock, guava, jolokia)
This file contains 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="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>@@GROUPID@@</groupId> | |
<artifactId>@@ARTIFACTID@@</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<description> | |
A default pom template - use for | |
- set file encoding | |
- compile java 8, target java 7 jvm | |
- embed manifests with jenkins build info into jar and war | |
- configure enforcer plugin | |
- define various commonly used libs + versions (spring, spring-cloud, hystrix, dropwizard, concordion, wiremock, guava, jolokia) | |
</description> | |
<properties> | |
<java.version>1.8</java.version> | |
<file.encoding>utf-8</file.encoding> | |
<maven.version>3.2.3</maven.version> | |
<project.build.sourceEncoding>${file.encoding}</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>${file.encoding}</project.reporting.outputEncoding> | |
<!-- JENKINS vars for embedding into manifest - taken from https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables --> | |
<ci-build-id>${env.BUILD_ID}</ci-build-id> | |
<ci-build-tag>${env.BUILD_TAG}</ci-build-tag> | |
<ci-build-url>${env.BUILD_URL}</ci-build-url> | |
<ci-svn-revision>${env.SVN_REVISION}</ci-svn-revision> | |
<!-- | |
library versions | |
--> | |
<spring.version>4.1.6.RELEASE </spring.version> | |
<spring-cloud-netflix.version>1.0.0.RELEASE</spring-cloud-netflix.version> | |
<spring-security.version>3.2.6.RELEASE</spring-security.version> | |
<!--<spring-security.version>4.0.1.RELEASE</spring-security.version>--> | |
<slf4j.version>1.7.12</slf4j.version> | |
<logback.version>1.1.3</logback.version> | |
<logstash.version>4.2</logstash.version> | |
<jackson.version>2.4.3</jackson.version> | |
<resteasy.version>3.0.11.Final</resteasy.version> | |
<json-path.version>0.9.1</json-path.version> | |
<!--<json-path.version>2.0.0</json-path.version>--> | |
<junit.version>4.11</junit.version> | |
<concordion.version>1.4.7</concordion.version> | |
<concordion-plus.version>1.1.3</concordion-plus.version> | |
<mockito.version>2.0.2-beta</mockito.version> | |
<httpcomponents.version>4.3.3</httpcomponents.version> | |
<hamcrest.version>1.3</hamcrest.version> | |
<wiremock.version>1.55</wiremock.version> | |
<joda-time.version>2.4</joda-time.version> | |
<guava.version>18.0</guava.version> | |
<servlet-api.version>3.0.1</servlet-api.version> | |
<lombok.version>1.16.4</lombok.version> | |
<snakeyaml.version>1.14</snakeyaml.version> | |
<jetty.version>9.2.3.v20140905</jetty.version> | |
<metrics.version>3.1.2</metrics.version> | |
<hystrix.version>1.4.0</hystrix.version> | |
<rxjava.version>1.0.11</rxjava.version> | |
<aspectj.version>1.8.5</aspectj.version> | |
<jolokia.version>1.2.3</jolokia.version> | |
</properties> | |
<prerequisites> | |
<maven>${maven.version}</maven> | |
</prerequisites> | |
<dependencyManagement> | |
<dependencies> | |
<!-- | |
Jolokia | |
--> | |
<dependency> | |
<groupId>org.jolokia</groupId> | |
<artifactId>jolokia-core</artifactId> | |
<version>${jolokia.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jolokia</groupId> | |
<artifactId>jolokia-jsr160</artifactId> | |
<version>${jolokia.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.googlecode.json-simple</groupId> | |
<artifactId>json-simple</artifactId> | |
<version>1.1.1</version> | |
</dependency> | |
<!-- dev support --> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>javax.servlet-api</artifactId> | |
<version>${servlet-api.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.glassfish</groupId> | |
<artifactId>javax.el</artifactId> | |
<version>3.0.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>commons-fileupload</groupId> | |
<artifactId>commons-fileupload</artifactId> | |
<version>1.2.2</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>commons-io</groupId> | |
<artifactId>commons-io</artifactId> | |
<version>2.4</version> | |
</dependency> | |
<dependency> | |
<groupId>commons-lang</groupId> | |
<artifactId>commons-lang</artifactId> | |
<version>2.6</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.commons</groupId> | |
<artifactId>commons-lang3</artifactId> | |
<version>3.2.1</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.httpcomponents</groupId> | |
<artifactId>httpclient</artifactId> | |
<version>${httpcomponents.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.httpcomponents</groupId> | |
<artifactId>httpcore</artifactId> | |
<version>${httpcomponents.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.httpcomponents</groupId> | |
<artifactId>httpcore-nio</artifactId> | |
<version>${httpcomponents.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.httpcomponents</groupId> | |
<artifactId>httpasyncclient</artifactId> | |
<version>4.1</version> | |
<exclusions> | |
<exclusion> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.httpcomponents</groupId> | |
<artifactId>httpmime</artifactId> | |
<version>${httpcomponents.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>net.minidev</groupId> | |
<artifactId>json-smart</artifactId> | |
<version>1.2</version> | |
</dependency> | |
<dependency> | |
<groupId>joda-time</groupId> | |
<artifactId>joda-time</artifactId> | |
<version>${joda-time.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.google.guava</groupId> | |
<artifactId>guava</artifactId> | |
<version>${guava.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-core</artifactId> | |
<version>${jackson.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-databind</artifactId> | |
<version>${jackson.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-annotations</artifactId> | |
<version>${jackson.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.datatype</groupId> | |
<artifactId>jackson-datatype-joda</artifactId> | |
<version>${jackson.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.dataformat</groupId> | |
<artifactId>jackson-dataformat-xml</artifactId> | |
<version>${jackson.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.module</groupId> | |
<artifactId>jackson-module-jaxb-annotations</artifactId> | |
<version>${jackson.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.jaxrs</groupId> | |
<artifactId>jackson-jaxrs-json-provider</artifactId> | |
<version>${jackson.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>javax.ws.rs.jsr311</groupId> | |
<artifactId>jsr311-api</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<!-- | |
before upgrading json-path, make sure it's compatible with spring-test's JsonPathExpectationsHelper | |
json-path 1.0.0 changed the signature of JsonPath.compile() which causes spring-test 4.1.x to break | |
--> | |
<dependency> | |
<groupId>com.jayway.jsonpath</groupId> | |
<artifactId>json-path</artifactId> | |
<version>${json-path.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.jayway.jsonpath</groupId> | |
<artifactId>json-path-assert</artifactId> | |
<version>${json-path.version}</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<groupId>org.hamcrest</groupId> | |
<artifactId>hamcrest-library</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>org.hamcrest</groupId> | |
<artifactId>hamcrest-core</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>xml-apis</groupId> | |
<artifactId>xml-apis</artifactId> | |
<version>1.4.01</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>xmlunit</groupId> | |
<artifactId>xmlunit</artifactId> | |
<version>1.5</version> | |
</dependency> | |
<dependency> | |
<groupId>org.hamcrest</groupId> | |
<artifactId>hamcrest-all</artifactId> | |
<version>${hamcrest.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-validator</artifactId> | |
<version>5.1.3.Final</version> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>${junit.version}</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<groupId>org.hamcrest</groupId> | |
<artifactId>hamcrest-core</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.mockito</groupId> | |
<artifactId>mockito-core</artifactId> | |
<version>${mockito.version}</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<groupId>org.hamcrest</groupId> | |
<artifactId>hamcrest-core</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.concordion</groupId> | |
<artifactId>concordion</artifactId> | |
<version>${concordion.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.agileinsider</groupId> | |
<artifactId>concordion-plus</artifactId> | |
<version>${concordion-plus.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-framework-bom</artifactId> | |
<version>${spring.version}</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.security</groupId> | |
<artifactId>spring-security-bom</artifactId> | |
<version>${spring-security.version}</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-netflix</artifactId> | |
<version>${spring-cloud-netflix.version}</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-core</artifactId> | |
<version>${spring.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.security</groupId> | |
<artifactId>spring-security-openid</artifactId> | |
<version>${spring-security.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
<version>${slf4j.version}</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>log4j-over-slf4j</artifactId> | |
<version>${slf4j.version}</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>jcl-over-slf4j</artifactId> | |
<version>${slf4j.version}</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>ch.qos.logback</groupId> | |
<artifactId>logback-core</artifactId> | |
<version>${logback.version}</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>ch.qos.logback</groupId> | |
<artifactId>logback-classic</artifactId> | |
<version>${logback.version}</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>net.logstash.logback</groupId> | |
<artifactId>logstash-logback-encoder</artifactId> | |
<version>${logstash.version}</version> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<version>${lombok.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.eclipse.jetty</groupId> | |
<artifactId>jetty-runner</artifactId> | |
<version>${jetty.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>javax.annotation</groupId> | |
<artifactId>javax.annotation-api</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>com.ning</groupId> | |
<artifactId>async-http-client</artifactId> | |
<version>1.7.19</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.resteasy</groupId> | |
<artifactId>resteasy-bom</artifactId> | |
<version>${resteasy.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.resteasy</groupId> | |
<artifactId>resteasy-client</artifactId> | |
<version>${resteasy.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>javax.activation</groupId> | |
<artifactId>activation</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>org.jboss.spec.javax.annotation</groupId> | |
<artifactId>jboss-annotations-api_1.1_spec</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>net.jcip</groupId> | |
<artifactId>jcip-annotations</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.resteasy</groupId> | |
<artifactId>resteasy-jaxrs</artifactId> | |
<version>${resteasy.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>org.jboss.spec.javax.annotation</groupId> | |
<artifactId>jboss-annotations-api_1.1_spec</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>net.jcip</groupId> | |
<artifactId>jcip-annotations</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.resteasy</groupId> | |
<artifactId>resteasy-jaxb-provider</artifactId> | |
<version>${resteasy.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>com.sun.istack</groupId> | |
<artifactId>istack-commons-runtime</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>javax.xml.bind</groupId> | |
<artifactId>jsr173_api</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.resteasy</groupId> | |
<artifactId>resteasy-jackson-provider</artifactId> | |
<version>${resteasy.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.resteasy</groupId> | |
<artifactId>resteasy-yaml-provider</artifactId> | |
<version>${resteasy.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.yaml</groupId> | |
<artifactId>snakeyaml</artifactId> | |
<version>${snakeyaml.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.github.tomakehurst</groupId> | |
<artifactId>wiremock</artifactId> | |
<version>${wiremock.version}</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<groupId>log4j</groupId> | |
<artifactId>log4j</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>servlet-api</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>com.thoughtworks.paranamer</groupId> | |
<artifactId>paranamer</artifactId> | |
<version>2.5.6</version> | |
</dependency> | |
<dependency> | |
<groupId>com.mangofactory</groupId> | |
<artifactId>swagger-springmvc</artifactId> | |
<version>1.0.2</version> | |
<exclusions> | |
<exclusion> | |
<groupId>org.mockito</groupId> | |
<artifactId>mockito-all</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>commons-codec</groupId> | |
<artifactId>commons-codec</artifactId> | |
<version>1.6</version> | |
</dependency> | |
<dependency> | |
<groupId>commons-httpclient</groupId> | |
<artifactId>commons-httpclient</artifactId> | |
<version>3.1</version> | |
</dependency> | |
<dependency> | |
<groupId>net.hamnaberg.rest</groupId> | |
<artifactId>json-collection</artifactId> | |
<version>3.1.0</version> | |
</dependency> | |
<!-- new --> | |
<dependency> | |
<groupId>com.netflix.hystrix</groupId> | |
<artifactId>hystrix-core</artifactId> | |
<version>${hystrix.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.netflix.hystrix</groupId> | |
<artifactId>hystrix-javanica</artifactId> | |
<version>${hystrix.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>org.aspectj</groupId> | |
<artifactId>aspectjrt</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>com.google.code.findbugs</groupId> | |
<artifactId>jsr305</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>com.netflix.hystrix</groupId> | |
<artifactId>hystrix-request-servlet</artifactId> | |
<version>${hystrix.version}</version> | |
</dependency> | |
<!-- RxJava --> | |
<dependency> | |
<groupId>io.reactivex</groupId> | |
<artifactId>rxjava</artifactId> | |
<version>${rxjava.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>io.reactivex</groupId> | |
<artifactId>rxjava-joins</artifactId> | |
<version>0.22.0</version> | |
</dependency> | |
<dependency> | |
<groupId>io.reactivex</groupId> | |
<artifactId>rxjava-math</artifactId> | |
<version>1.0.0</version> | |
</dependency> | |
<dependency> | |
<groupId>io.reactivex</groupId> | |
<artifactId>rxjava-string</artifactId> | |
<version>0.22.0</version> | |
</dependency> | |
<dependency> | |
<groupId>io.reactivex</groupId> | |
<artifactId>rxjava-async-util</artifactId> | |
<version>0.21.0</version> | |
</dependency> | |
<dependency> | |
<groupId>io.reactivex</groupId> | |
<artifactId>rxjava-computation-expressions</artifactId> | |
<version>0.21.0</version> | |
</dependency> | |
<dependency> | |
<groupId>io.reactivex</groupId> | |
<artifactId>rxapache-http</artifactId> | |
<version>0.21.0</version> | |
</dependency> | |
<!-- including this doesn't work with target java 7/animal sniffer due to java 8 stream deps --> | |
<!-- | |
<dependency> | |
<groupId>io.reactivex</groupId> | |
<artifactId>rxjava-reactive-streams</artifactId> | |
<version>1.0.0</version> | |
</dependency> | |
--> | |
<!-- | |
Dropwizard Metrics | |
--> | |
<dependency> | |
<groupId>io.dropwizard.metrics</groupId> | |
<artifactId>metrics-core</artifactId> | |
<version>${metrics.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>io.dropwizard.metrics</groupId> | |
<artifactId>metrics-servlet</artifactId> | |
<version>${metrics.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>io.dropwizard.metrics</groupId> | |
<artifactId>metrics-logback</artifactId> | |
<version>${metrics.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>io.dropwizard.metrics</groupId> | |
<artifactId>metrics-healthchecks</artifactId> | |
<version>${metrics.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.aspectj</groupId> | |
<artifactId>aspectjrt</artifactId> | |
<version>${aspectj.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.aspectj</groupId> | |
<artifactId>aspectjweaver</artifactId> | |
<version>${aspectj.version}</version> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<!-- | |
dependencies apply to **ALL** modules, so be careful what to add here! | |
--> | |
<dependencies> | |
<!-- standard logging deps --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>jcl-over-slf4j</artifactId> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>log4j-over-slf4j</artifactId> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>ch.qos.logback</groupId> | |
<artifactId>logback-classic</artifactId> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>net.logstash.logback</groupId> | |
<artifactId>logstash-logback-encoder</artifactId> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<finalName>${project.artifactId}</finalName> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-clean-plugin</artifactId> | |
<version>2.5</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-source-plugin</artifactId> | |
<version>2.2.1</version> | |
<executions> | |
<execution> | |
<id>attach-sources</id> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-resources-plugin</artifactId> | |
<version>2.6</version> | |
<configuration> | |
<encoding>${file.encoding}</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.4</version> | |
<configuration> | |
<archive> | |
<manifest> | |
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> | |
</manifest> | |
<manifestEntries> | |
<ci-build-id>${ci-build-id}</ci-build-id> | |
<ci-build-tag>${ci-build-tag}</ci-build-tag> | |
<ci-build-url>${ci-build-url}</ci-build-url> | |
<ci-svn-revision>${ci-svn-revision}</ci-svn-revision> | |
</manifestEntries> | |
</archive> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-war-plugin</artifactId> | |
<version>2.4</version> | |
<configuration> | |
<attachClasses>true</attachClasses> | |
<archive> | |
<manifest> | |
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> | |
</manifest> | |
<manifestEntries> | |
<ci-build-id>${ci-build-id}</ci-build-id> | |
<ci-build-tag>${ci-build-tag}</ci-build-tag> | |
<ci-build-url>${ci-build-url}</ci-build-url> | |
<ci-svn-revision>${ci-svn-revision}</ci-svn-revision> | |
</manifestEntries> | |
</archive> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.16</version> | |
<configuration> | |
<useFile>false</useFile> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.maven.surefire</groupId> | |
<artifactId>surefire-junit47</artifactId> | |
<version>2.16</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<version>2.18.1</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>integration-test</goal> | |
<goal>verify</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<useFile>false</useFile> | |
<encoding>${project.build.sourceEncoding}</encoding> | |
<includes> | |
<include>**/*IT.*</include> | |
</includes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>2.4.2</version> | |
<configuration> | |
<goals>install</goals> | |
<autoVersionSubmodules>true</autoVersionSubmodules> | |
<!--<tagBase>http://subversion.sweng.ncr.com/svn/repos/ps/financial/spikes/team/branches/nepmigration/tags</tagBase>--> | |
<!-- arguments to pass through to the forked release build --> | |
<!--<arguments>-Djira.username=${jira.username} -Djira.password=${jira.password} -Djira.url=${jira.url}</arguments>--> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.3</version> | |
<configuration> | |
<encoding>${file.encoding}</encoding> | |
<source>${java.version}</source> | |
<target>${java.version}</target> | |
<testSource>${java.version}</testSource> | |
<testTarget>${java.version}</testTarget> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.eclipse.jetty</groupId> | |
<artifactId>jetty-maven-plugin</artifactId> | |
<version>${jetty.version}</version> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
</plugin> | |
<!-- | |
compile java 1.8, target java 1.7 | |
-> NOTE: need to set compiler plugin to source/target 1.8! | |
--> | |
<plugin> | |
<groupId>net.orfjackal.retrolambda</groupId> | |
<artifactId>retrolambda-maven-plugin</artifactId> | |
<version>2.0.2</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>process-main</goal> | |
<goal>process-test</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>animal-sniffer-maven-plugin</artifactId> | |
<version>1.14</version> | |
<executions> | |
<execution> | |
<id>signature-check</id> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>check</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<signature> | |
<groupId>org.codehaus.mojo.signature</groupId> | |
<artifactId>java17</artifactId> | |
<version>1.0</version> | |
</signature> | |
</configuration> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>net.orfjackal.retrolambda</groupId> | |
<artifactId>retrolambda-maven-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>animal-sniffer-maven-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.eclipse.jetty</groupId> | |
<artifactId>jetty-maven-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-source-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-enforcer-plugin</artifactId> | |
<version>1.3.1</version> | |
<configuration> | |
<rules> | |
<requireMavenVersion> | |
<version>${maven.version}</version> | |
</requireMavenVersion> | |
<requireJavaVersion> | |
<version>${java.version}</version> | |
</requireJavaVersion> | |
<requireReleaseDeps> | |
<message>No Snapshots dependencies allowed!</message> | |
<onlyWhenRelease>true</onlyWhenRelease> | |
</requireReleaseDeps> | |
<bannedDependencies> | |
<searchTransitive>true</searchTransitive> | |
<excludes> | |
<!-- Use new org.javassist instead --> | |
<exclude>javassist:javassist</exclude> | |
<exclude>org.mockito:mockito-all</exclude> | |
<!-- Use new org.aspectj instead --> | |
<exclude>aspectj:aspectj*</exclude> | |
<exclude>org.aspectj:aspectjrt</exclude> | |
<!-- Ban usage of other logging frameworks. If there are | |
3rd party frameworks using them, they should be picked | |
up via the slf4j bridges --> | |
<exclude>commons-logging</exclude> | |
<exclude>log4j</exclude> | |
<!-- Ban Spring frameworks older than 3.1 --> | |
<!-- TODO, this may need to change to be more specific as not | |
all spring sub modules follow the 3.2.X naming yet--> | |
<exclude>org.springframework:*</exclude> | |
<exclude>org.sl4fj:*</exclude> | |
<!-- | |
<exclude>org.springframework:*:(,${spring.version}),(${spring.version},)</exclude> | |
<exclude>org.slf4j:*:(,${slf4j.version}),(${slf4j.version},)</exclude> | |
--> | |
<!-- Should rather be using javax.servlet:javax.servlet-api:3.0.1 --> | |
<exclude>javax.servlet:servlet-api</exclude> | |
</excludes> | |
<includes> | |
<!-- Mandate use of Spring and Slf4j for consistency --> | |
<include>org.springframework:*:[4.1.6.RELEASE]</include> | |
<include>org.slf4j:*:[1.7.12]</include> | |
</includes> | |
</bannedDependencies> | |
<banDuplicateClasses> | |
<findAllDuplicates>true</findAllDuplicates> | |
<dependencies> | |
<dependency> | |
<groupId>org.eclipse.jetty</groupId> | |
<ignoreClasses> | |
<ignoreClass>*</ignoreClass> | |
</ignoreClasses> | |
</dependency> | |
</dependencies> | |
</banDuplicateClasses> | |
</rules> | |
<fail>true</fail> | |
</configuration> | |
<executions> | |
<execution> | |
<id>enforce-all</id> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>enforce</goal> | |
</goals> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>extra-enforcer-rules</artifactId> | |
<version>1.0-beta-2</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment