Guest User

pom.xml

a guest
Sep 28th, 2016
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 37.72 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3.     <modelVersion>4.0.0</modelVersion>
  4.  
  5.     <parent>
  6.         <artifactId>spring-boot-starter-parent</artifactId>
  7.         <groupId>org.springframework.boot</groupId>
  8.         <version>1.4.0.RELEASE</version>
  9.         <relativePath/>
  10.     </parent>
  11.  
  12.     <groupId>com.iwantunlimited.servicerequest</groupId>
  13.     <artifactId>i-want-service-request</artifactId>
  14.     <version>0.0.1-SNAPSHOT</version>
  15.     <packaging>war</packaging>
  16.     <name>I Want Service Request</name>
  17.  
  18.     <prerequisites>
  19.         <maven>3.0.0</maven>
  20.     </prerequisites>
  21.  
  22.     <properties>
  23.         <hikaricp.version>2.4.6</hikaricp.version>
  24.         <assertj-core.version>3.5.2</assertj-core.version>
  25.         <awaitility.version>1.7.0</awaitility.version>
  26.         <commons-io.version>2.5</commons-io.version>
  27.         <commons-lang.version>3.4</commons-lang.version>
  28.         <cucumber.version>1.2.4</cucumber.version>
  29.         <gatling.version>2.2.2</gatling.version>
  30.         <gatling-maven-plugin.version>2.1.7</gatling-maven-plugin.version>
  31.         <hazelcast.version>3.6.5</hazelcast.version>
  32.         <hibernate.version>4.3.11.Final</hibernate.version>
  33.         <java.version>1.8</java.version>
  34.         <maven.compiler.source>${java.version}</maven.compiler.source>
  35.         <maven.compiler.target>${java.version}</maven.compiler.target>
  36.         <javax.inject.version>1</javax.inject.version>
  37.         <jna.version>4.2.2</jna.version>
  38.         <liquibase.version>3.4.2</liquibase.version>
  39.         <liquibase-slf4j.version>2.0.0</liquibase-slf4j.version>
  40.         <liquibase-hibernate4.version>3.5</liquibase-hibernate4.version>
  41.         <mapstruct.version>1.0.0.Final</mapstruct.version>
  42.         <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
  43.         <maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>
  44.         <maven-resources-plugin.version>3.0.1</maven-resources-plugin.version>
  45.         <sortpom-maven-plugin.version>2.5.0</sortpom-maven-plugin.version>
  46.         <metrics-spark-reporter.version>1.2</metrics-spark-reporter.version>
  47.         <metrics-spring.version>3.1.3</metrics-spring.version>
  48.         <logstash-logback-encoder.version>4.7</logstash-logback-encoder.version>
  49.         <postgresql.version>9.4-1203-jdbc42</postgresql.version>
  50.         <run.addResources>false</run.addResources>
  51.         <spring-cloud.version>Brixton.SR5</spring-cloud.version>
  52.         <spring-security.version>4.1.0.RELEASE</spring-security.version>
  53.         <springfox.version>2.5.0</springfox.version>
  54.         <!-- Sonar properties -->
  55.         <project.testresult.directory>${project.build.directory}/test-results</project.testresult.directory>
  56.         <sonar-maven-plugin.version>3.0.2</sonar-maven-plugin.version>
  57.         <jacoco-maven-plugin.version>0.7.7.201606060606</jacoco-maven-plugin.version>
  58.         <sonar.exclusions>src/main/webapp/content/**/*.*, src/main/webapp/bower_components/**/*.*, target/www/**/*.*</sonar.exclusions>
  59.         <sonar.java.codeCoveragePlugin>jacoco</sonar.java.codeCoveragePlugin>
  60.         <sonar.jacoco.itReportPath>${project.testresult.directory}/coverage/jacoco/jacoco-it.exec</sonar.jacoco.itReportPath>
  61.         <sonar.jacoco.reportPath>${project.testresult.directory}/coverage/jacoco/jacoco.exec</sonar.jacoco.reportPath>
  62.  
  63.         <sonar.javascript.jstestdriver.reportsPath>${project.testresult.directory}/karma</sonar.javascript.jstestdriver.reportsPath>
  64.         <sonar.javascript.lcov.reportPath>${project.testresult.directory}/coverage/report-lcov/lcov.info</sonar.javascript.lcov.reportPath>
  65.  
  66.         <sonar.sources>${project.basedir}/src/main/</sonar.sources>
  67.         <sonar.surefire.reportsPath>${project.testresult.directory}/surefire-reports</sonar.surefire.reportsPath>
  68.         <sonar.tests>${project.basedir}/src/test/</sonar.tests>
  69.         <!-- These remain empty unless the corresponding profile is active -->
  70.         <profile.no-liquibase></profile.no-liquibase>
  71.         <profile.swagger></profile.swagger>
  72.     </properties>
  73.  
  74.     <dependencyManagement>
  75.         <dependencies>
  76.             <dependency>
  77.                 <groupId>org.springframework.cloud</groupId>
  78.                 <artifactId>spring-cloud-dependencies</artifactId>
  79.                 <version>${spring-cloud.version}</version>
  80.                 <type>pom</type>
  81.                 <scope>import</scope>
  82.             </dependency>
  83.         </dependencies>
  84.     </dependencyManagement>
  85.  
  86.     <dependencies>
  87.         <dependency>
  88.             <groupId>io.dropwizard.metrics</groupId>
  89.             <artifactId>metrics-core</artifactId>
  90.         </dependency>
  91.         <dependency>
  92.             <groupId>io.dropwizard.metrics</groupId>
  93.             <artifactId>metrics-annotation</artifactId>
  94.             <version>${dropwizard-metrics.version}</version>
  95.         </dependency>
  96.         <dependency>
  97.             <groupId>io.dropwizard.metrics</groupId>
  98.             <artifactId>metrics-graphite</artifactId>
  99.         </dependency>
  100.         <dependency>
  101.             <groupId>io.dropwizard.metrics</groupId>
  102.             <artifactId>metrics-healthchecks</artifactId>
  103.             <version>${dropwizard-metrics.version}</version>
  104.         </dependency>
  105.         <dependency>
  106.             <groupId>io.dropwizard.metrics</groupId>
  107.             <artifactId>metrics-json</artifactId>
  108.             <version>${dropwizard-metrics.version}</version>
  109.         </dependency>
  110.         <dependency>
  111.             <groupId>io.dropwizard.metrics</groupId>
  112.             <artifactId>metrics-jvm</artifactId>
  113.             <version>${dropwizard-metrics.version}</version>
  114.         </dependency>
  115.         <dependency>
  116.             <groupId>io.dropwizard.metrics</groupId>
  117.             <artifactId>metrics-servlet</artifactId>
  118.             <version>${dropwizard-metrics.version}</version>
  119.         </dependency>
  120.         <dependency>
  121.             <groupId>io.dropwizard.metrics</groupId>
  122.             <artifactId>metrics-servlets</artifactId>
  123.             <exclusions>
  124.                 <exclusion>
  125.                     <artifactId>metrics-healthchecks</artifactId>
  126.                     <groupId>io.dropwizard.metrics</groupId>
  127.                 </exclusion>
  128.             </exclusions>
  129.         </dependency>
  130.         <dependency>
  131.             <groupId>com.fasterxml.jackson.datatype</groupId>
  132.             <artifactId>jackson-datatype-hibernate4</artifactId>
  133.         </dependency>
  134.         <dependency>
  135.             <groupId>com.fasterxml.jackson.datatype</groupId>
  136.             <artifactId>jackson-datatype-hppc</artifactId>
  137.             <version>${jackson.version}</version>
  138.         </dependency>
  139.         <dependency>
  140.             <groupId>com.fasterxml.jackson.datatype</groupId>
  141.             <artifactId>jackson-datatype-jsr310</artifactId>
  142.         </dependency>
  143.         <dependency>
  144.             <groupId>com.fasterxml.jackson.datatype</groupId>
  145.             <artifactId>jackson-datatype-json-org</artifactId>
  146.             <version>${jackson.version}</version>
  147.         </dependency>
  148.         <dependency>
  149.             <groupId>com.h2database</groupId>
  150.             <artifactId>h2</artifactId>
  151.             <scope>test</scope>
  152.         </dependency>
  153.         <dependency>
  154.             <groupId>com.hazelcast</groupId>
  155.             <artifactId>hazelcast</artifactId>
  156.             <version>${hazelcast.version}</version>
  157.         </dependency>
  158.         <dependency>
  159.             <groupId>com.hazelcast</groupId>
  160.             <artifactId>hazelcast-hibernate4</artifactId>
  161.             <version>${hazelcast.version}</version>
  162.         </dependency>
  163.         <dependency>
  164.             <groupId>com.hazelcast</groupId>
  165.             <artifactId>hazelcast-spring</artifactId>
  166.             <version>${hazelcast.version}</version>
  167.         </dependency>
  168.         <dependency>
  169.             <groupId>com.jayway.awaitility</groupId>
  170.             <artifactId>awaitility</artifactId>
  171.             <version>${awaitility.version}</version>
  172.             <scope>test</scope>
  173.         </dependency>
  174.         <dependency>
  175.             <groupId>com.jayway.jsonpath</groupId>
  176.             <artifactId>json-path</artifactId>
  177.             <scope>test</scope>
  178.             <!-- parent POM declares this dependency in default (compile) scope -->
  179.         </dependency>
  180.         <dependency>
  181.             <groupId>io.springfox</groupId>
  182.             <artifactId>springfox-swagger2</artifactId>
  183.             <version>${springfox.version}</version>
  184.             <exclusions>
  185.                 <exclusion>
  186.                     <groupId>org.mapstruct</groupId>
  187.                     <artifactId>mapstruct</artifactId>
  188.                 </exclusion>
  189.             </exclusions>
  190.         </dependency>
  191.         <dependency>
  192.             <groupId>com.mattbertolini</groupId>
  193.             <artifactId>liquibase-slf4j</artifactId>
  194.             <version>${liquibase-slf4j.version}</version>
  195.         </dependency>
  196.         <dependency>
  197.             <groupId>com.ryantenney.metrics</groupId>
  198.             <artifactId>metrics-spring</artifactId>
  199.             <version>${metrics-spring.version}</version>
  200.             <exclusions>
  201.                 <exclusion>
  202.                     <groupId>com.codahale.metrics</groupId>
  203.                     <artifactId>metrics-annotation</artifactId>
  204.                 </exclusion>
  205.                 <exclusion>
  206.                     <groupId>com.codahale.metrics</groupId>
  207.                     <artifactId>metrics-core</artifactId>
  208.                 </exclusion>
  209.                 <exclusion>
  210.                     <groupId>com.codahale.metrics</groupId>
  211.                     <artifactId>metrics-healthchecks</artifactId>
  212.                 </exclusion>
  213.             </exclusions>
  214.         </dependency>
  215.         <dependency>
  216.             <groupId>com.zaxxer</groupId>
  217.             <artifactId>HikariCP</artifactId>
  218.             <exclusions>
  219.                 <exclusion>
  220.                     <artifactId>tools</artifactId>
  221.                     <groupId>com.sun</groupId>
  222.                 </exclusion>
  223.             </exclusions>
  224.         </dependency>
  225.         <!-- The HikariCP Java Agent is disabled by default, as it is experimental
  226.        <dependency>
  227.            <groupId>com.zaxxer</groupId>
  228.            <artifactId>HikariCP-agent</artifactId>
  229.            <version>${HikariCP.version}</version>
  230.        </dependency>
  231.        -->
  232.  
  233.         <dependency>
  234.             <groupId>commons-io</groupId>
  235.             <artifactId>commons-io</artifactId>
  236.             <version>${commons-io.version}</version><!--$NO-MVN-MAN-VER$-->
  237.         </dependency>
  238.         <dependency>
  239.             <groupId>org.apache.commons</groupId>
  240.             <artifactId>commons-lang3</artifactId>
  241.             <version>${commons-lang.version}</version>
  242.         </dependency>
  243.         <dependency>
  244.             <groupId>io.gatling.highcharts</groupId>
  245.             <artifactId>gatling-charts-highcharts</artifactId>
  246.             <version>${gatling.version}</version>
  247.             <scope>test</scope>
  248.         </dependency>
  249.         <dependency>
  250.             <groupId>javax.inject</groupId>
  251.             <artifactId>javax.inject</artifactId>
  252.             <version>${javax.inject.version}</version><!--$NO-MVN-MAN-VER$-->
  253.         </dependency>
  254.         <dependency>
  255.             <groupId>org.assertj</groupId>
  256.             <artifactId>assertj-core</artifactId>
  257.             <version>${assertj-core.version}</version><!--$NO-MVN-MAN-VER$-->
  258.             <scope>test</scope>
  259.         </dependency>
  260.         <dependency>
  261.             <groupId>org.hibernate</groupId>
  262.             <artifactId>hibernate-envers</artifactId>
  263.         </dependency>
  264.         <dependency>
  265.             <groupId>org.hibernate</groupId>
  266.             <artifactId>hibernate-validator</artifactId>
  267.         </dependency>
  268.         <dependency>
  269.             <groupId>org.liquibase</groupId>
  270.             <artifactId>liquibase-core</artifactId>
  271.             <exclusions>
  272.                 <exclusion>
  273.                     <artifactId>jetty-servlet</artifactId>
  274.                     <groupId>org.eclipse.jetty</groupId>
  275.                 </exclusion>
  276.             </exclusions>
  277.         </dependency>
  278.         <dependency>
  279.             <groupId>org.postgresql</groupId>
  280.             <artifactId>postgresql</artifactId>
  281.         </dependency>
  282.         <dependency>
  283.             <groupId>org.mapstruct</groupId>
  284.             <artifactId>mapstruct-jdk8</artifactId>
  285.             <version>${mapstruct.version}</version>
  286.         </dependency>
  287.         <dependency>
  288.             <groupId>org.springframework</groupId>
  289.             <artifactId>spring-context-support</artifactId>
  290.         </dependency>
  291.         <dependency>
  292.             <groupId>org.springframework.boot</groupId>
  293.             <artifactId>spring-boot-actuator</artifactId>
  294.         </dependency>
  295.         <dependency>
  296.             <groupId>org.springframework.boot</groupId>
  297.             <artifactId>spring-boot-autoconfigure</artifactId>
  298.         </dependency>
  299.         <dependency>
  300.             <groupId>org.springframework.boot</groupId>
  301.             <artifactId>spring-boot-configuration-processor</artifactId>
  302.             <optional>true</optional>
  303.         </dependency>
  304.         <dependency>
  305.             <groupId>org.springframework.boot</groupId>
  306.             <artifactId>spring-boot-loader-tools</artifactId>
  307.         </dependency>
  308.         <dependency>
  309.             <groupId>org.springframework.boot</groupId>
  310.             <artifactId>spring-boot-starter-aop</artifactId>
  311.         </dependency>
  312.         <dependency>
  313.             <groupId>org.springframework.boot</groupId>
  314.             <artifactId>spring-boot-starter-data-jpa</artifactId>
  315.         </dependency>
  316.         <dependency>
  317.             <groupId>org.springframework.boot</groupId>
  318.             <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
  319.         </dependency>
  320.         <dependency>
  321.             <groupId>net.java.dev.jna</groupId>
  322.             <artifactId>jna</artifactId>
  323.             <version>${jna.version}</version><!--$NO-MVN-MAN-VER$-->
  324.         </dependency>
  325.         <dependency>
  326.             <groupId>org.springframework.boot</groupId>
  327.             <artifactId>spring-boot-starter-logging</artifactId>
  328.         </dependency>
  329.         <dependency>
  330.             <groupId>org.springframework.boot</groupId>
  331.             <artifactId>spring-boot-starter-mail</artifactId>
  332.         </dependency>
  333.         <dependency>
  334.             <groupId>org.springframework.boot</groupId>
  335.             <artifactId>spring-boot-starter-security</artifactId>
  336.         </dependency>
  337.         <dependency>
  338.             <groupId>org.springframework.boot</groupId>
  339.             <artifactId>spring-boot-starter-test</artifactId>
  340.             <scope>test</scope>
  341.         </dependency>
  342.         <dependency>
  343.             <groupId>org.springframework.security</groupId>
  344.             <artifactId>spring-security-test</artifactId>
  345.             <scope>test</scope>
  346.         </dependency>
  347.         <dependency>
  348.             <groupId>org.springframework.boot</groupId>
  349.             <artifactId>spring-boot-test</artifactId>
  350.             <scope>test</scope>
  351.         </dependency>
  352.         <dependency>
  353.             <groupId>org.springframework.boot</groupId>
  354.             <artifactId>spring-boot-starter-thymeleaf</artifactId>
  355.         </dependency>
  356.         <dependency>
  357.             <groupId>org.springframework.boot</groupId>
  358.             <artifactId>spring-boot-starter-web</artifactId>
  359.             <exclusions>
  360.                 <exclusion>
  361.                     <groupId>org.springframework.boot</groupId>
  362.                     <artifactId>spring-boot-starter-tomcat</artifactId>
  363.                 </exclusion>
  364.             </exclusions>
  365.         </dependency>
  366.         <dependency>
  367.             <groupId>io.jsonwebtoken</groupId>
  368.             <artifactId>jjwt</artifactId>
  369.             <version>0.6.0</version>
  370.         </dependency>
  371.        
  372.         <dependency>
  373.             <groupId>org.springframework.security</groupId>
  374.             <artifactId>spring-security-rsa</artifactId>
  375.             <version>1.0.3.RELEASE</version>
  376.         </dependency>
  377.        
  378.         <!-- Spring Cloud -->
  379.         <dependency>
  380.             <groupId>org.springframework.cloud</groupId>
  381.             <artifactId>spring-cloud-starter</artifactId>
  382.             <version>1.1.3.RELEASE</version>
  383.         </dependency>
  384.         <dependency>
  385.             <groupId>org.springframework.cloud</groupId>
  386.             <artifactId>spring-cloud-starter-ribbon</artifactId>
  387.             <!-- netty's native is pulled, but is useless unless you explicitly add the native binary dependency.
  388.                 Having it in the classpath without the binary can cause warnings -->
  389.             <exclusions>
  390.                 <exclusion>
  391.                     <groupId>io.netty</groupId>
  392.                     <artifactId>netty-transport-native-epoll</artifactId>
  393.                 </exclusion>
  394.             </exclusions>
  395.         </dependency>
  396.         <dependency>
  397.             <groupId>org.springframework.cloud</groupId>
  398.             <artifactId>spring-cloud-starter-eureka</artifactId>
  399.         </dependency>
  400.         <dependency>
  401.             <groupId>org.springframework.cloud</groupId>
  402.             <artifactId>spring-cloud-starter-hystrix</artifactId>
  403.         </dependency>
  404.         <dependency>
  405.             <groupId>org.springframework.cloud</groupId>
  406.             <artifactId>spring-cloud-starter-spectator</artifactId>
  407.         </dependency>
  408.         <dependency>
  409.             <groupId>org.springframework.cloud</groupId>
  410.             <artifactId>spring-cloud-starter-config</artifactId>
  411.         </dependency>
  412.         <dependency>
  413.             <groupId>org.springframework.retry</groupId>
  414.             <artifactId>spring-retry</artifactId>
  415.         </dependency>
  416.         <dependency>
  417.             <groupId>org.springframework.cloud</groupId>
  418.             <artifactId>spring-cloud-starter-feign</artifactId>
  419.         </dependency>
  420.         <dependency>
  421.             <groupId>net.logstash.logback</groupId>
  422.             <artifactId>logstash-logback-encoder</artifactId>
  423.             <version>${logstash-logback-encoder.version}</version>
  424.             <exclusions>
  425.                 <exclusion>
  426.                     <groupId>ch.qos.logback</groupId>
  427.                     <artifactId>logback-core</artifactId>
  428.                 </exclusion>
  429.                 <exclusion>
  430.                     <groupId>ch.qos.logback</groupId>
  431.                     <artifactId>logback-classic</artifactId>
  432.                 </exclusion>
  433.                 <exclusion>
  434.                     <groupId>ch.qos.logback</groupId>
  435.                     <artifactId>logback-access</artifactId>
  436.                 </exclusion>
  437.             </exclusions>
  438.         </dependency>
  439.         <dependency>
  440.             <groupId>org.springframework.cloud</groupId>
  441.             <artifactId>spring-cloud-cloudfoundry-connector</artifactId>
  442.         </dependency>
  443.         <dependency>
  444.             <groupId>org.springframework.cloud</groupId>
  445.             <artifactId>spring-cloud-spring-service-connector</artifactId>
  446.         </dependency>
  447.         <dependency>
  448.             <groupId>org.springframework.cloud</groupId>
  449.             <artifactId>spring-cloud-localconfig-connector</artifactId>
  450.         </dependency>
  451.         <!-- security -->
  452.         <dependency>
  453.             <groupId>org.springframework.security</groupId>
  454.             <artifactId>spring-security-data</artifactId>
  455.         </dependency>
  456.         <!-- reporting -->
  457.         <dependency>
  458.             <groupId>fr.ippon.spark.metrics</groupId>
  459.             <artifactId>metrics-spark-reporter</artifactId>
  460.             <version>${metrics-spark-reporter.version}</version>
  461.         </dependency>
  462.         <!-- cucumber -->
  463.         <dependency>
  464.             <groupId>info.cukes</groupId>
  465.             <artifactId>cucumber-junit</artifactId>
  466.             <version>${cucumber.version}</version>
  467.             <scope>test</scope>
  468.         </dependency>
  469.         <dependency>
  470.             <groupId>info.cukes</groupId>
  471.             <artifactId>cucumber-spring</artifactId>
  472.             <version>${cucumber.version}</version>
  473.             <scope>test</scope>
  474.         </dependency>
  475.         <!-- jhipster-needle-maven-add-dependency -->
  476.     </dependencies>
  477.     <build>
  478.         <defaultGoal>spring-boot:run</defaultGoal>
  479.         <testResources>
  480.             <testResource>
  481.                 <directory>src/test/resources/</directory>
  482.             </testResource>
  483.             <testResource>
  484.                 <directory>src/test/features</directory>
  485.             </testResource>
  486.         </testResources>
  487.         <plugins>
  488.             <plugin>
  489.                 <groupId>com.github.ekryd.sortpom</groupId>
  490.                 <artifactId>sortpom-maven-plugin</artifactId>
  491.                 <version>${sortpom-maven-plugin.version}</version>
  492.                 <executions>
  493.                     <execution>
  494.                         <phase>verify</phase>
  495.                         <goals>
  496.                             <goal>sort</goal>
  497.                         </goals>
  498.                     </execution>
  499.                 </executions>
  500.                 <configuration>
  501.                     <sortProperties>true</sortProperties>
  502.                     <nrOfIndentSpace>4</nrOfIndentSpace>
  503.                     <sortDependencies>groupId,artifactId</sortDependencies>
  504.                     <sortPlugins>groupId,artifactId</sortPlugins>
  505.                     <keepBlankLines>true</keepBlankLines>
  506.                     <expandEmptyElements>false</expandEmptyElements>
  507.                 </configuration>
  508.             </plugin>
  509.             <plugin>
  510.                 <groupId>io.gatling</groupId>
  511.                 <artifactId>gatling-maven-plugin</artifactId>
  512.                 <version>${gatling-maven-plugin.version}</version>
  513.                 <configuration>
  514.                     <configFolder>src/test/gatling/conf</configFolder>
  515.                     <dataFolder>src/test/gatling/data</dataFolder>
  516.                     <resultsFolder>target/gatling/results</resultsFolder>
  517.                     <bodiesFolder>src/test/gatling/bodies</bodiesFolder>
  518.                     <simulationsFolder>src/test/gatling/simulations</simulationsFolder>
  519.                     <!-- This will force Gatling to ask which simulation to run
  520.                      This is useful when you have multiple simulations -->
  521.                     <simulationClass>*</simulationClass>
  522.                 </configuration>
  523.             </plugin>
  524.             <plugin>
  525.                 <groupId>org.apache.maven.plugins</groupId>
  526.                 <artifactId>maven-eclipse-plugin</artifactId>
  527.                 <configuration>
  528.                     <downloadSources>true</downloadSources>
  529.                     <downloadJavadocs>true</downloadJavadocs>
  530.                 </configuration>
  531.             </plugin>
  532.             <plugin>
  533.                 <groupId>org.apache.maven.plugins</groupId>
  534.                 <artifactId>maven-enforcer-plugin</artifactId>
  535.                 <version>${maven-enforcer-plugin.version}</version>
  536.                 <executions>
  537.                     <execution>
  538.                         <id>enforce-versions</id>
  539.                         <goals>
  540.                             <goal>enforce</goal>
  541.                         </goals>
  542.                     </execution>
  543.                 </executions>
  544.                 <configuration>
  545.                     <rules>
  546.                         <requireMavenVersion>
  547.                             <message>You are running an older version of Maven. JHipster requires at least Maven 3.0</message>
  548.                             <version>[3.0.0,)</version>
  549.                         </requireMavenVersion>
  550.                         <requireJavaVersion>
  551.                             <message>You are running an older version of Java. JHipster requires at least JDK ${java.version}</message>
  552.                             <version>[${java.version}.0,)</version>
  553.                         </requireJavaVersion>
  554.                     </rules>
  555.                 </configuration>
  556.             </plugin>
  557.             <plugin>
  558.                 <groupId>org.apache.maven.plugins</groupId>
  559.                 <artifactId>maven-resources-plugin</artifactId>
  560.                 <version>${maven-resources-plugin.version}</version><!--$NO-MVN-MAN-VER$-->
  561.                 <executions>
  562.                     <execution>
  563.                         <id>default-resources</id>
  564.                         <phase>validate</phase>
  565.                         <goals>
  566.                             <goal>copy-resources</goal>
  567.                         </goals>
  568.                         <configuration>
  569.                             <outputDirectory>target/classes</outputDirectory>
  570.                             <useDefaultDelimiters>false</useDefaultDelimiters>
  571.                             <delimiters>
  572.                                 <delimiter>#</delimiter>
  573.                             </delimiters>
  574.                             <resources>
  575.                                 <resource>
  576.                                     <directory>src/main/resources/</directory>
  577.                                     <filtering>true</filtering>
  578.                                     <includes>
  579.                                         <include>**/*.xml</include>
  580.                                         <include>**/*.yml</include>
  581.                                     </includes>
  582.                                 </resource>
  583.                                 <resource>
  584.                                     <directory>src/main/resources/</directory>
  585.                                     <filtering>false</filtering>
  586.                                     <excludes>
  587.                                         <exclude>**/*.xml</exclude>
  588.                                         <exclude>**/*.yml</exclude>
  589.                                     </excludes>
  590.                                 </resource>
  591.                             </resources>
  592.                         </configuration>
  593.                     </execution>
  594.                 </executions>
  595.             </plugin>
  596.             <plugin>
  597.                 <groupId>org.apache.maven.plugins</groupId>
  598.                 <artifactId>maven-surefire-plugin</artifactId>
  599.                 <executions>
  600.                     <execution>
  601.                         <id>default-test</id>
  602.                         <configuration>
  603.                             <excludes>
  604.                                 <exclude>**/Abstract*.java</exclude>
  605.                                 <exclude>**/*Cucumber*.java</exclude>
  606.                             </excludes>
  607.                         </configuration>
  608.                     </execution>
  609.                     <execution>
  610.                         <id>without-cucumber</id>
  611.                         <goals>
  612.                             <goal>test</goal>
  613.                         </goals>
  614.                         <configuration>
  615.                             <includes>
  616.                               <include>**/*Cucumber*.java</include>
  617.                             </includes>
  618.                         </configuration>
  619.                     </execution>
  620.                 </executions>
  621.                 <configuration>
  622.                     <argLine>-Djava.security.egd=file:/dev/./urandom -Xmx256m ${surefireArgLine}</argLine>
  623.                     <!-- Force alphabetical order to have a reproducible build -->
  624.                     <runOrder>alphabetical</runOrder>
  625.                 </configuration>
  626.             </plugin>
  627.             <plugin>
  628.                 <groupId>org.jacoco</groupId>
  629.                 <artifactId>jacoco-maven-plugin</artifactId>
  630.                 <version>${jacoco-maven-plugin.version}</version>
  631.                 <executions>
  632.                     <execution>
  633.                         <id>pre-unit-tests</id>
  634.                         <goals>
  635.                             <goal>prepare-agent</goal>
  636.                         </goals>
  637.                         <configuration>
  638.                             <!-- Sets the path to the file which contains the execution data. -->
  639.                             <destFile>${project.testresult.directory}/coverage/jacoco/jacoco.exec</destFile>
  640.                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
  641.                             <propertyName>surefireArgLine</propertyName>
  642.                         </configuration>
  643.                     </execution>
  644.                     <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run -->
  645.                     <execution>
  646.                         <id>post-unit-test</id>
  647.                         <phase>test</phase>
  648.                         <goals>
  649.                             <goal>report</goal>
  650.                         </goals>
  651.                         <configuration>
  652.                             <dataFile>${project.testresult.directory}/coverage/jacoco/jacoco.exec</dataFile>
  653.                             <outputDirectory>${project.testresult.directory}/coverage/jacoco</outputDirectory>
  654.                         </configuration>
  655.                     </execution>
  656.                 </executions>
  657.             </plugin>
  658.             <plugin>
  659.                 <groupId>org.sonarsource.scanner.maven</groupId>
  660.                 <artifactId>sonar-maven-plugin</artifactId>
  661.                 <version>${sonar-maven-plugin.version}</version>
  662.             </plugin>
  663.             <plugin>
  664.                 <groupId>org.bsc.maven</groupId>
  665.                 <artifactId>maven-processor-plugin</artifactId>
  666.                 <version>2.2.4</version>
  667.                 <configuration>
  668.                     <defaultOutputDirectory>
  669.                         ${project.build.directory}/generated-sources
  670.                     </defaultOutputDirectory>
  671.                     <processors>
  672.                         <processor>org.mapstruct.ap.MappingProcessor</processor>
  673.                     </processors>
  674.                     <options>
  675.                         <mapstruct.suppressGeneratorTimestamp>true</mapstruct.suppressGeneratorTimestamp>
  676.                         <mapstruct.defaultComponentModel>spring</mapstruct.defaultComponentModel>
  677.                     </options>
  678.                 </configuration>
  679.                 <executions>
  680.                     <execution>
  681.                         <id>process</id>
  682.                         <phase>generate-sources</phase>
  683.                         <goals>
  684.                             <goal>process</goal>
  685.                         </goals>
  686.                     </execution>
  687.                 </executions>
  688.                 <dependencies>
  689.                     <dependency>
  690.                         <groupId>org.mapstruct</groupId>
  691.                         <artifactId>mapstruct-processor</artifactId>
  692.                         <version>${mapstruct.version}</version>
  693.                     </dependency>
  694.                 </dependencies>
  695.             </plugin>
  696.             <plugin>
  697.                 <groupId>org.springframework.boot</groupId>
  698.                 <artifactId>spring-boot-maven-plugin</artifactId>
  699.                 <configuration>
  700.                     <executable>true</executable>
  701.                     <fork>true</fork>
  702.                     <!--
  703.                    Enable the line below to have remote debugging of your application on port 5005
  704.                    <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
  705.                    -->
  706.                 </configuration>
  707.             </plugin>
  708.             <plugin>
  709.                 <groupId>com.spotify</groupId>
  710.                 <artifactId>docker-maven-plugin</artifactId>
  711.                 <version>0.4.10</version>
  712.                 <configuration>
  713.                     <imageName>iwantservicerequest</imageName>
  714.                     <dockerDirectory>src/main/docker</dockerDirectory>
  715.                     <resources>
  716.                         <resource>
  717.                             <targetPath>/</targetPath>
  718.                             <directory>${project.build.directory}</directory>
  719.                             <include>${project.build.finalName}.war</include>
  720.                         </resource>
  721.                     </resources>
  722.                 </configuration>
  723.             </plugin>
  724.             <!-- jhipster-needle-maven-add-plugin -->
  725.         </plugins>
  726.         <pluginManagement>
  727.             <plugins>
  728.                 <!--
  729.                    This plugin's configuration is used to store Eclipse m2e settings only.
  730.                    It has no influence on the Maven build itself.
  731.                    Remove when the m2e plugin can correctly bind to Maven lifecycle
  732.                -->
  733.                 <plugin>
  734.                     <groupId>org.eclipse.m2e</groupId>
  735.                     <artifactId>lifecycle-mapping</artifactId>
  736.                     <version>1.0.0</version>
  737.                     <configuration>
  738.                         <lifecycleMappingMetadata>
  739.                             <pluginExecutions>
  740.                                 <pluginExecution>
  741.                                     <pluginExecutionFilter>
  742.                                         <groupId>org.jacoco</groupId>
  743.                                         <artifactId>
  744.                                             jacoco-maven-plugin
  745.                                         </artifactId>
  746.                                         <versionRange>
  747.                                             ${jacoco-maven-plugin.version}
  748.                                         </versionRange>
  749.                                         <goals>
  750.                                             <goal>prepare-agent</goal>
  751.                                         </goals>
  752.                                     </pluginExecutionFilter>
  753.                                     <action>
  754.                                         <ignore/>
  755.                                     </action>
  756.                                 </pluginExecution>
  757.                             </pluginExecutions>
  758.                         </lifecycleMappingMetadata>
  759.                     </configuration>
  760.                 </plugin>
  761.              </plugins>
  762.         </pluginManagement>
  763.     </build>
  764.  
  765.     <profiles>
  766.         <profile>
  767.             <id>no-liquibase</id>
  768.             <properties>
  769.                 <profile.no-liquibase>,no-liquibase</profile.no-liquibase>
  770.             </properties>
  771.         </profile>
  772.         <profile>
  773.             <id>swagger</id>
  774.             <properties>
  775.                 <profile.swagger>,swagger</profile.swagger>
  776.             </properties>
  777.         </profile>
  778.         <profile>
  779.             <id>dev</id>
  780.             <activation>
  781.                 <activeByDefault>true</activeByDefault>
  782.             </activation>
  783.             <dependencies>
  784.                 <dependency>
  785.                     <groupId>org.springframework.boot</groupId>
  786.                     <artifactId>spring-boot-starter-undertow</artifactId>
  787.                 </dependency>
  788.                 <dependency>
  789.                     <groupId>org.springframework.boot</groupId>
  790.                     <artifactId>spring-boot-devtools</artifactId>
  791.                     <optional>true</optional>
  792.                 </dependency>
  793.             </dependencies>
  794.             <build>
  795.                 <plugins>
  796.                     <plugin>
  797.                         <groupId>org.apache.maven.plugins</groupId>
  798.                         <artifactId>maven-war-plugin</artifactId>
  799.                         <configuration>
  800.                         </configuration>
  801.                     </plugin>
  802.                 </plugins>
  803.             </build>
  804.             <properties>
  805.                 <!-- log configuration -->
  806.                 <logback.loglevel>DEBUG</logback.loglevel>
  807.                 <!-- default Spring profiles -->
  808.                 <spring.profiles.active>dev,swagger${profile.no-liquibase}</spring.profiles.active>
  809.             </properties>
  810.         </profile>
  811.         <profile>
  812.             <id>prod</id>
  813.             <dependencies>
  814.                 <dependency>
  815.                     <groupId>org.springframework.boot</groupId>
  816.                     <artifactId>spring-boot-starter-undertow</artifactId>
  817.                 </dependency>
  818.             </dependencies>
  819.             <build>
  820.                 <plugins>
  821.                     <plugin>
  822.                         <artifactId>maven-clean-plugin</artifactId>
  823.                         <version>2.5</version>
  824.                         <configuration>
  825.                             <filesets>
  826.                                 <fileset>
  827.                                     <directory>target/www/</directory>
  828.                                 </fileset>
  829.                             </filesets>
  830.                         </configuration>
  831.                     </plugin>
  832.                     <plugin>
  833.                         <groupId>org.apache.maven.plugins</groupId>
  834.                         <artifactId>maven-war-plugin</artifactId>
  835.                         <configuration>
  836.                         </configuration>
  837.                     </plugin>
  838.                     <plugin>
  839.                         <groupId>org.springframework.boot</groupId>
  840.                         <artifactId>spring-boot-maven-plugin</artifactId>
  841.                         <configuration>
  842.                             <executable>true</executable>
  843.                         </configuration>
  844.                         <executions>
  845.                             <execution>
  846.                                 <goals>
  847.                                     <goal>build-info</goal>
  848.                                 </goals>
  849.                             </execution>
  850.                         </executions>
  851.                     </plugin>
  852.                 </plugins>
  853.             </build>
  854.             <properties>
  855.                 <!-- log configuration -->
  856.                 <logback.loglevel>INFO</logback.loglevel>
  857.                 <!-- default Spring profiles -->
  858.                 <spring.profiles.active>prod${profile.swagger}${profile.no-liquibase}</spring.profiles.active>
  859.             </properties>
  860.         </profile>
  861.     </profiles>
  862. </project>
Advertisement
Add Comment
Please, Sign In to add comment