2017-03-21 07:23:41 -04:00
<?xml version="1.0" encoding="UTF-8"?>
BAEL-8960 Fix surefire configs of java security api, java annotations, jenkins, api, jhipster, jni, maven, msf4j, mustache projects
- Surefire config fixes, pom standardizations, added packaging pom at jhipster level and jhipster-microservice level
2018-09-25 12:07:12 -04:00
<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" >
2017-03-21 07:23:41 -04:00
<modelVersion > 4.0.0</modelVersion>
<parent >
BAEL-8960 Fix surefire configs of java security api, java annotations, jenkins, api, jhipster, jni, maven, msf4j, mustache projects
- Surefire config fixes, pom standardizations, added packaging pom at jhipster level and jhipster-microservice level
2018-09-25 12:07:12 -04:00
<artifactId > jhipster-microservice</artifactId>
<groupId > com.baeldung.jhipster</groupId>
<version > 1.0.0-SNAPSHOT</version>
2017-03-21 07:23:41 -04:00
</parent>
BAEL-8960 Fix surefire configs of java security api, java annotations, jenkins, api, jhipster, jni, maven, msf4j, mustache projects
- Surefire config fixes, pom standardizations, added packaging pom at jhipster level and jhipster-microservice level
2018-09-25 12:07:12 -04:00
2017-05-07 13:00:32 -04:00
<groupId > com.car.app</groupId>
2018-08-31 10:52:40 -04:00
<artifactId > car-app</artifactId>
2017-03-21 07:23:41 -04:00
<packaging > war</packaging>
2018-08-31 10:52:40 -04:00
<name > car-app</name>
2017-03-21 07:23:41 -04:00
<prerequisites >
<maven > ${maven.version}</maven>
</prerequisites>
2017-05-07 13:00:32 -04:00
<properties >
<argLine > -Djava.security.egd=file:/dev/./urandom -Xmx256m</argLine>
<assertj.version > 3.6.2</assertj.version>
<awaitility.version > 2.0.0</awaitility.version>
<commons-io.version > 2.5</commons-io.version>
<commons-lang.version > 3.5</commons-lang.version>
<docker-maven-plugin.version > 0.4.13</docker-maven-plugin.version>
<hazelcast-hibernate52.version > 1.2</hazelcast-hibernate52.version>
<hibernate.version > 5.2.8.Final</hibernate.version>
<hikaricp.version > 2.6.0</hikaricp.version>
<jacoco-maven-plugin.version > 0.7.9</jacoco-maven-plugin.version>
<java.version > 1.8</java.version>
<javassist.version > 3.21.0-GA</javassist.version>
<jcache.version > 1.0.0</jcache.version>
<jhipster.server.version > 1.1.0</jhipster.server.version>
<jjwt.version > 0.7.0</jjwt.version>
<liquibase-hibernate5.version > 3.6</liquibase-hibernate5.version>
<liquibase-slf4j.version > 2.0.0</liquibase-slf4j.version>
BAEL-8960 Fix surefire configs of java security api, java annotations, jenkins, api, jhipster, jni, maven, msf4j, mustache projects
- Surefire config fixes, pom standardizations, added packaging pom at jhipster level and jhipster-microservice level
2018-09-25 12:07:12 -04:00
<liquibase.version > 3.6.2</liquibase.version>
2017-05-07 13:00:32 -04:00
<logstash-logback-encoder.version > 4.8</logstash-logback-encoder.version>
<m2e.apt.activation > jdt_apt</m2e.apt.activation>
<mapstruct.version > 1.1.0.Final</mapstruct.version>
BAEL-8960 Fix surefire configs of java security api, java annotations, jenkins, api, jhipster, jni, maven, msf4j, mustache projects
- Surefire config fixes, pom standardizations, added packaging pom at jhipster level and jhipster-microservice level
2018-09-25 12:07:12 -04:00
<maven-eclipse-plugin.version > 2.10</maven-eclipse-plugin.version>
2017-05-07 13:00:32 -04:00
<maven-enforcer-plugin.version > 1.4.1</maven-enforcer-plugin.version>
<maven-resources-plugin.version > 3.0.1</maven-resources-plugin.version>
<maven.build.timestamp.format > yyyyMMddHHmmss</maven.build.timestamp.format>
<maven.version > 3.0.0</maven.version>
<metrics-spring.version > 3.1.3</metrics-spring.version>
<node.version > v6.10.0</node.version>
<!-- These remain empty unless the corresponding profile is active -->
2018-07-12 03:04:54 -04:00
<profile.no-liquibase />
<profile.swagger />
2017-05-07 13:00:32 -04:00
<!-- Sonar properties -->
<project.testresult.directory > ${project.build.directory}/test-results</project.testresult.directory>
<prometheus-simpleclient.version > 0.0.20</prometheus-simpleclient.version>
<run.addResources > false</run.addResources>
<scala-maven-plugin.version > 3.2.2</scala-maven-plugin.version>
<scala.version > 2.12.1</scala.version>
<sonar-maven-plugin.version > 3.2</sonar-maven-plugin.version>
<sonar.exclusions > src/main/webapp/content/**/*.*, src/main/webapp/bower_components/**/*.*, src/main/webapp/i18n/*.js, target/www/**/*.*</sonar.exclusions>
<sonar.issue.ignore.multicriteria > S3437,UndocumentedApi,BoldAndItalicTagsCheck</sonar.issue.ignore.multicriteria>
2018-07-12 03:04:54 -04:00
<!-- Rule https://sonarqube.com/coding_rules#rule_key=Web%3ABoldAndItalicTagsCheck is ignored. Even if we agree that using the "i" tag is an awful practice, this is what is
recommended by http://fontawesome.io/examples/ -->
2017-05-07 13:00:32 -04:00
<sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.resourceKey > src/main/webapp/app/**/*.*</sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.resourceKey>
<sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.ruleKey > Web:BoldAndItalicTagsCheck</sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.ruleKey>
<!-- Rule https://sonarqube.com/coding_rules#rule_key=squid%3AS3437 is ignored, as a JPA - managed field cannot be transient -->
<sonar.issue.ignore.multicriteria.S3437.resourceKey > src/main/java/**/*</sonar.issue.ignore.multicriteria.S3437.resourceKey>
<sonar.issue.ignore.multicriteria.S3437.ruleKey > squid:S3437</sonar.issue.ignore.multicriteria.S3437.ruleKey>
2018-07-12 03:04:54 -04:00
<!-- Rule http://sonarqube.com/coding_rules#rule_key=squid%3AUndocumentedApi is ignored, as we want to follow "clean code" guidelines and classes, methods and arguments names
should be self-explanatory -->
2017-05-07 13:00:32 -04:00
<sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey > src/main/java/**/*</sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey>
<sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey > squid:UndocumentedApi</sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey>
<sonar.jacoco.itReportPath > ${project.testresult.directory}/coverage/jacoco/jacoco-it.exec</sonar.jacoco.itReportPath>
<sonar.jacoco.reportPath > ${project.testresult.directory}/coverage/jacoco/jacoco.exec</sonar.jacoco.reportPath>
<sonar.java.codeCoveragePlugin > jacoco</sonar.java.codeCoveragePlugin>
<sonar.javascript.jstestdriver.reportsPath > ${project.testresult.directory}/karma</sonar.javascript.jstestdriver.reportsPath>
<!-- For Sonar < 6.2 -->
<sonar.javascript.lcov.reportPath > ${project.testresult.directory}/coverage/report-lcov/lcov.info</sonar.javascript.lcov.reportPath>
<!-- For Sonar >= 6.2 -->
<sonar.javascript.lcov.reportPaths > ${project.testresult.directory}/coverage/report-lcov/lcov.info</sonar.javascript.lcov.reportPaths>
<sonar.sources > ${project.basedir}/src/main/</sonar.sources>
<sonar.surefire.reportsPath > ${project.testresult.directory}/surefire-reports</sonar.surefire.reportsPath>
<sonar.tests > ${project.basedir}/src/test/</sonar.tests>
<sortpom-maven-plugin.version > 2.5.0</sortpom-maven-plugin.version>
<!-- Spring properties -->
<spring-cloud.version > Camden.SR5</spring-cloud.version>
<springfox.version > 2.6.1</springfox.version>
<undertow.version > 1.4.10.Final</undertow.version>
<validation-api.version > 1.1.0.Final</validation-api.version>
<yarn.version > v0.21.3</yarn.version>
</properties>
<dependencyManagement >
<dependencies >
<dependency >
<groupId > org.springframework.cloud</groupId>
<artifactId > spring-cloud-dependencies</artifactId>
<version > ${spring-cloud.version}</version>
<type > pom</type>
<scope > import</scope>
</dependency>
</dependencies>
</dependencyManagement>
2017-03-21 07:23:41 -04:00
<dependencies >
<dependency >
<groupId > com.fasterxml.jackson.datatype</groupId>
<artifactId > jackson-datatype-hibernate5</artifactId>
</dependency>
<dependency >
<groupId > com.fasterxml.jackson.datatype</groupId>
<artifactId > jackson-datatype-hppc</artifactId>
</dependency>
<dependency >
<groupId > com.fasterxml.jackson.datatype</groupId>
<artifactId > jackson-datatype-json-org</artifactId>
</dependency>
<dependency >
<groupId > com.fasterxml.jackson.datatype</groupId>
<artifactId > jackson-datatype-jsr310</artifactId>
</dependency>
<dependency >
<groupId > com.h2database</groupId>
<artifactId > h2</artifactId>
</dependency>
2017-05-07 13:00:32 -04:00
<dependency >
<groupId > com.hazelcast</groupId>
<artifactId > hazelcast</artifactId>
</dependency>
<dependency >
<groupId > com.hazelcast</groupId>
<artifactId > hazelcast-hibernate52</artifactId>
<version > ${hazelcast-hibernate52.version}</version>
</dependency>
<dependency >
<groupId > com.hazelcast</groupId>
<artifactId > hazelcast-spring</artifactId>
</dependency>
2017-03-21 07:23:41 -04:00
<dependency >
<groupId > com.jayway.jsonpath</groupId>
<artifactId > json-path</artifactId>
<scope > test</scope>
2017-05-07 13:00:32 -04:00
<!-- parent POM declares this dependency in default (compile) scope -->
2017-03-21 07:23:41 -04:00
</dependency>
<dependency >
<groupId > com.mattbertolini</groupId>
<artifactId > liquibase-slf4j</artifactId>
<version > ${liquibase-slf4j.version}</version>
</dependency>
<dependency >
<groupId > com.ryantenney.metrics</groupId>
<artifactId > metrics-spring</artifactId>
<version > ${metrics-spring.version}</version>
<exclusions >
<exclusion >
<artifactId > metrics-annotation</artifactId>
<groupId > com.codahale.metrics</groupId>
</exclusion>
<exclusion >
<artifactId > metrics-core</artifactId>
<groupId > com.codahale.metrics</groupId>
</exclusion>
<exclusion >
<artifactId > metrics-healthchecks</artifactId>
<groupId > com.codahale.metrics</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > com.zaxxer</groupId>
<artifactId > HikariCP</artifactId>
<exclusions >
<exclusion >
<artifactId > tools</artifactId>
<groupId > com.sun</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > commons-io</groupId>
<artifactId > commons-io</artifactId>
</dependency>
<dependency >
<groupId > io.dropwizard.metrics</groupId>
<artifactId > metrics-annotation</artifactId>
</dependency>
<dependency >
<groupId > io.dropwizard.metrics</groupId>
<artifactId > metrics-core</artifactId>
</dependency>
<dependency >
<groupId > io.dropwizard.metrics</groupId>
<artifactId > metrics-json</artifactId>
</dependency>
<dependency >
<groupId > io.dropwizard.metrics</groupId>
<artifactId > metrics-jvm</artifactId>
</dependency>
<dependency >
<groupId > io.dropwizard.metrics</groupId>
<artifactId > metrics-servlet</artifactId>
</dependency>
<dependency >
<groupId > io.dropwizard.metrics</groupId>
<artifactId > metrics-servlets</artifactId>
</dependency>
<dependency >
<groupId > io.github.jhipster</groupId>
<artifactId > jhipster</artifactId>
<version > ${jhipster.server.version}</version>
</dependency>
<dependency >
<groupId > io.jsonwebtoken</groupId>
<artifactId > jjwt</artifactId>
<version > ${jjwt.version}</version>
</dependency>
<dependency >
<groupId > io.springfox</groupId>
<artifactId > springfox-bean-validators</artifactId>
<version > ${springfox.version}</version>
</dependency>
<dependency >
<groupId > io.springfox</groupId>
<artifactId > springfox-swagger2</artifactId>
<version > ${springfox.version}</version>
<exclusions >
<exclusion >
<artifactId > mapstruct</artifactId>
<groupId > org.mapstruct</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > javax.cache</groupId>
<artifactId > cache-api</artifactId>
</dependency>
<dependency >
<groupId > mysql</groupId>
<artifactId > mysql-connector-java</artifactId>
</dependency>
<dependency >
<groupId > net.logstash.logback</groupId>
<artifactId > logstash-logback-encoder</artifactId>
<version > ${logstash-logback-encoder.version}</version>
<exclusions >
<exclusion >
<artifactId > logback-core</artifactId>
<groupId > ch.qos.logback</groupId>
</exclusion>
<exclusion >
<artifactId > logback-classic</artifactId>
<groupId > ch.qos.logback</groupId>
</exclusion>
<exclusion >
<artifactId > logback-access</artifactId>
<groupId > ch.qos.logback</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > org.apache.commons</groupId>
<artifactId > commons-lang3</artifactId>
<version > ${commons-lang.version}</version>
</dependency>
<dependency >
<groupId > org.assertj</groupId>
<artifactId > assertj-core</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.awaitility</groupId>
<artifactId > awaitility</artifactId>
<version > ${awaitility.version}</version>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.hibernate</groupId>
<artifactId > hibernate-envers</artifactId>
</dependency>
<dependency >
<groupId > org.hibernate</groupId>
<artifactId > hibernate-validator</artifactId>
</dependency>
<dependency >
<groupId > org.liquibase</groupId>
<artifactId > liquibase-core</artifactId>
<exclusions >
<exclusion >
<artifactId > jetty-servlet</artifactId>
<groupId > org.eclipse.jetty</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > org.mapstruct</groupId>
<artifactId > mapstruct-jdk8</artifactId>
<version > ${mapstruct.version}</version>
</dependency>
<dependency >
<groupId > org.springframework</groupId>
<artifactId > spring-context-support</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-actuator</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-autoconfigure</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-loader-tools</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-aop</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-cloud-connectors</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-logging</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-mail</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-security</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-test</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-web</artifactId>
<exclusions >
<exclusion >
<artifactId > spring-boot-starter-tomcat</artifactId>
<groupId > org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-test</artifactId>
<scope > test</scope>
</dependency>
2017-05-07 13:00:32 -04:00
<!-- Spring Cloud -->
<dependency >
<groupId > org.springframework.cloud</groupId>
<artifactId > spring-cloud-starter</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.cloud</groupId>
<artifactId > spring-cloud-starter-config</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.cloud</groupId>
<artifactId > spring-cloud-starter-eureka</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.cloud</groupId>
<artifactId > spring-cloud-starter-feign</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.cloud</groupId>
<artifactId > spring-cloud-starter-hystrix</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.cloud</groupId>
<artifactId > spring-cloud-starter-ribbon</artifactId>
2018-07-12 03:04:54 -04:00
<!-- netty's native is pulled, but is useless unless you explicitly add the native binary dependency. Having it in the classpath without the binary can cause warnings -->
2017-05-07 13:00:32 -04:00
<exclusions >
<exclusion >
<artifactId > netty-transport-native-epoll</artifactId>
<groupId > io.netty</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > org.springframework.cloud</groupId>
<artifactId > spring-cloud-starter-spectator</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.retry</groupId>
<artifactId > spring-retry</artifactId>
</dependency>
2017-03-21 07:23:41 -04:00
<!-- security -->
<dependency >
<groupId > org.springframework.security</groupId>
<artifactId > spring-security-data</artifactId>
</dependency>
<dependency >
<groupId > org.springframework.security</groupId>
<artifactId > spring-security-test</artifactId>
<scope > test</scope>
</dependency>
<!-- jhipster - needle - maven - add - dependency -->
</dependencies>
2018-07-12 03:04:54 -04:00
2017-03-21 07:23:41 -04:00
<build >
<defaultGoal > spring-boot:run</defaultGoal>
<pluginManagement >
<plugins >
2018-07-12 03:04:54 -04:00
<!-- This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. Remove when the m2e plugin can correctly
bind to Maven lifecycle -->
2017-03-21 07:23:41 -04:00
<plugin >
<groupId > org.eclipse.m2e</groupId>
<artifactId > lifecycle-mapping</artifactId>
<version > 1.0.0</version>
<configuration >
<lifecycleMappingMetadata >
<pluginExecutions >
<pluginExecution >
<pluginExecutionFilter >
<groupId > org.jacoco</groupId>
<artifactId > jacoco-maven-plugin</artifactId>
<versionRange > ${jacoco-maven-plugin.version}</versionRange>
<goals >
<goal > prepare-agent</goal>
</goals>
</pluginExecutionFilter>
<action >
2018-07-12 03:04:54 -04:00
<ignore />
2017-03-21 07:23:41 -04:00
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins >
<plugin >
<groupId > com.github.ekryd.sortpom</groupId>
<artifactId > sortpom-maven-plugin</artifactId>
<version > ${sortpom-maven-plugin.version}</version>
<executions >
<execution >
<phase > verify</phase>
<goals >
<goal > sort</goal>
</goals>
</execution>
</executions>
<configuration >
<sortProperties > true</sortProperties>
<nrOfIndentSpace > 4</nrOfIndentSpace>
<sortDependencies > groupId,artifactId</sortDependencies>
<sortPlugins > groupId,artifactId</sortPlugins>
<keepBlankLines > true</keepBlankLines>
<expandEmptyElements > false</expandEmptyElements>
</configuration>
</plugin>
<plugin >
<groupId > com.spotify</groupId>
<artifactId > docker-maven-plugin</artifactId>
<version > ${docker-maven-plugin.version}</version>
<configuration >
2017-05-07 13:00:32 -04:00
<imageName > carapp</imageName>
2017-03-21 07:23:41 -04:00
<dockerDirectory > src/main/docker</dockerDirectory>
<resources >
<resource >
<targetPath > /</targetPath>
<directory > ${project.build.directory}</directory>
<include > ${project.build.finalName}.war</include>
</resource>
</resources>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-compiler-plugin</artifactId>
<version > ${maven-compiler-plugin.version}</version>
<configuration >
<annotationProcessorPaths >
<path >
<groupId > org.mapstruct</groupId>
<artifactId > mapstruct-processor</artifactId>
<version > ${mapstruct.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-eclipse-plugin</artifactId>
BAEL-8960 Fix surefire configs of java security api, java annotations, jenkins, api, jhipster, jni, maven, msf4j, mustache projects
- Surefire config fixes, pom standardizations, added packaging pom at jhipster level and jhipster-microservice level
2018-09-25 12:07:12 -04:00
<version > ${maven-eclipse-plugin.version}</version>
2017-03-21 07:23:41 -04:00
<configuration >
<downloadSources > true</downloadSources>
<downloadJavadocs > true</downloadJavadocs>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-enforcer-plugin</artifactId>
<version > ${maven-enforcer-plugin.version}</version>
<executions >
<execution >
<id > enforce-versions</id>
<goals >
<goal > enforce</goal>
</goals>
</execution>
</executions>
<configuration >
<rules >
<requireMavenVersion >
2017-05-07 13:00:32 -04:00
<message > You are running an older version of Maven. JHipster requires at least Maven ${maven.version}</message>
2017-03-21 07:23:41 -04:00
<version > [${maven.version},)</version>
</requireMavenVersion>
<requireJavaVersion >
2017-05-07 13:00:32 -04:00
<message > You are running an older version of Java. JHipster requires at least JDK ${java.version}</message>
2017-03-21 07:23:41 -04:00
<version > [${java.version}.0,)</version>
</requireJavaVersion>
</rules>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-resources-plugin</artifactId>
<version > ${maven-resources-plugin.version}</version>
<executions >
<execution >
<id > default-resources</id>
<phase > validate</phase>
<goals >
<goal > copy-resources</goal>
</goals>
<configuration >
<outputDirectory > target/classes</outputDirectory>
<useDefaultDelimiters > false</useDefaultDelimiters>
<delimiters >
<delimiter > #</delimiter>
</delimiters>
<resources >
<resource >
<directory > src/main/resources/</directory>
<filtering > true</filtering>
<includes >
<include > **/*.xml</include>
<include > **/*.yml</include>
</includes>
</resource>
<resource >
<directory > src/main/resources/</directory>
<filtering > false</filtering>
<excludes >
<exclude > **/*.xml</exclude>
<exclude > **/*.yml</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-surefire-plugin</artifactId>
<configuration >
2017-05-07 13:00:32 -04:00
<!-- Force alphabetical order to have a reproducible build -->
2017-03-21 07:23:41 -04:00
<runOrder > alphabetical</runOrder>
</configuration>
</plugin>
<plugin >
<groupId > org.jacoco</groupId>
<artifactId > jacoco-maven-plugin</artifactId>
<version > ${jacoco-maven-plugin.version}</version>
<executions >
<execution >
<id > pre-unit-tests</id>
<goals >
<goal > prepare-agent</goal>
</goals>
<configuration >
2017-05-07 13:00:32 -04:00
<!-- Sets the path to the file which contains the execution data. -->
2017-03-21 07:23:41 -04:00
<destFile > ${project.testresult.directory}/coverage/jacoco/jacoco.exec</destFile>
</configuration>
</execution>
2017-05-07 13:00:32 -04:00
<!-- Ensures that the code coverage report for unit tests is created after unit tests have been run -->
2017-03-21 07:23:41 -04:00
<execution >
<id > post-unit-test</id>
<phase > test</phase>
<goals >
<goal > report</goal>
</goals>
<configuration >
<dataFile > ${project.testresult.directory}/coverage/jacoco/jacoco.exec</dataFile>
<outputDirectory > ${project.testresult.directory}/coverage/jacoco</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
<groupId > org.liquibase</groupId>
<artifactId > liquibase-maven-plugin</artifactId>
<version > ${liquibase.version}</version>
<dependencies >
<dependency >
<groupId > javax.validation</groupId>
<artifactId > validation-api</artifactId>
<version > ${validation-api.version}</version>
</dependency>
<dependency >
<groupId > org.javassist</groupId>
<artifactId > javassist</artifactId>
<version > ${javassist.version}</version>
</dependency>
<dependency >
<groupId > org.liquibase.ext</groupId>
<artifactId > liquibase-hibernate5</artifactId>
<version > ${liquibase-hibernate5.version}</version>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-data-jpa</artifactId>
<version > ${project.parent.version}</version>
</dependency>
</dependencies>
<configuration >
<changeLogFile > src/main/resources/config/liquibase/master.xml</changeLogFile>
<diffChangeLogFile > src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<driver > org.h2.Driver</driver>
2017-05-07 13:00:32 -04:00
<url > jdbc:h2:file:./target/h2db/db/carapp</url>
2018-07-12 03:04:54 -04:00
<defaultSchemaName />
2017-05-07 13:00:32 -04:00
<username > carapp</username>
2018-07-12 03:04:54 -04:00
<password />
2017-05-07 13:00:32 -04:00
<referenceUrl > hibernate:spring:com.car.app.domain?dialect=org.hibernate.dialect.H2Dialect& hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy& hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy</referenceUrl>
2017-03-21 07:23:41 -04:00
<verbose > true</verbose>
<logging > debug</logging>
</configuration>
</plugin>
<plugin >
<groupId > org.sonarsource.scanner.maven</groupId>
<artifactId > sonar-maven-plugin</artifactId>
<version > ${sonar-maven-plugin.version}</version>
</plugin>
<plugin >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-maven-plugin</artifactId>
<configuration >
<executable > true</executable>
<fork > true</fork>
2018-07-12 03:04:54 -04:00
<!-- Enable the line below to have remote debugging of your application on port 5005 <jvmArguments> - agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments> -->
2017-03-21 07:23:41 -04:00
</configuration>
</plugin>
<!-- jhipster - needle - maven - add - plugin -->
</plugins>
</build>
2018-07-12 03:04:54 -04:00
2017-03-21 07:23:41 -04:00
<profiles >
<profile >
<id > no-liquibase</id>
<properties >
<profile.no-liquibase > ,no-liquibase</profile.no-liquibase>
</properties>
</profile>
<profile >
<id > swagger</id>
<properties >
<profile.swagger > ,swagger</profile.swagger>
</properties>
</profile>
<profile >
<id > dev</id>
<activation >
<activeByDefault > true</activeByDefault>
</activation>
<build >
<plugins >
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-war-plugin</artifactId>
2018-07-12 03:04:54 -04:00
<configuration />
2017-03-21 07:23:41 -04:00
</plugin>
</plugins>
</build>
<properties >
<!-- log configuration -->
<logback.loglevel > DEBUG</logback.loglevel>
<!-- default Spring profiles -->
<spring.profiles.active > dev${profile.no-liquibase}</spring.profiles.active>
</properties>
<dependencies >
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-devtools</artifactId>
<optional > true</optional>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-undertow</artifactId>
</dependency>
</dependencies>
</profile>
<profile >
<id > prod</id>
<build >
<plugins >
<plugin >
<artifactId > maven-clean-plugin</artifactId>
<configuration >
<filesets >
<fileset >
<directory > target/www/</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-war-plugin</artifactId>
2018-07-12 03:04:54 -04:00
<configuration />
2017-03-21 07:23:41 -04:00
</plugin>
<plugin >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-maven-plugin</artifactId>
<executions >
<execution >
<goals >
<goal > build-info</goal>
</goals>
</execution>
</executions>
<configuration >
<executable > true</executable>
</configuration>
</plugin>
</plugins>
</build>
<properties >
<!-- log configuration -->
<logback.loglevel > INFO</logback.loglevel>
<!-- default Spring profiles -->
<spring.profiles.active > prod${profile.swagger}${profile.no-liquibase}</spring.profiles.active>
</properties>
<dependencies >
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-undertow</artifactId>
</dependency>
</dependencies>
</profile>
<profile >
2018-07-12 03:04:54 -04:00
<!-- Profile for doing "continuous compilation" with the Scala Maven plugin. It allows automatic compilation of Java classes as soon as they are saved. To use it, run in
3 terminals: - './mvnw -Pcc scala:cc' for continous compilation of your classes - './mvnw -Pcc' for hot reload of Spring boot - 'gulp' for hot reload of the HTML/JavaScript assets Everything
should hot reload automatically! -->
2017-03-21 07:23:41 -04:00
<id > cc</id>
<build >
<plugins >
<plugin >
<groupId > net.alchim31.maven</groupId>
<artifactId > scala-maven-plugin</artifactId>
<version > ${scala-maven-plugin.version}</version>
<executions >
<execution >
<id > compile</id>
<phase > compile</phase>
<goals >
<goal > add-source</goal>
<goal > compile</goal>
</goals>
</execution>
<execution >
<id > test-compile</id>
<phase > test-compile</phase>
<goals >
<goal > add-source</goal>
<goal > testCompile</goal>
</goals>
</execution>
</executions>
<configuration >
<recompileMode > incremental</recompileMode>
<verbose > true</verbose>
<scalaVersion > ${scala.version}</scalaVersion>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-compiler-plugin</artifactId>
<executions >
<execution >
<id > default-compile</id>
<phase > none</phase>
</execution>
<execution >
<id > default-testCompile</id>
<phase > none</phase>
</execution>
</executions>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-war-plugin</artifactId>
<configuration >
<warSourceDirectory > src/main/webapp/</warSourceDirectory>
</configuration>
</plugin>
<plugin >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-maven-plugin</artifactId>
<configuration >
<executable > true</executable>
<fork > true</fork>
<addResources > true</addResources>
2018-07-12 03:04:54 -04:00
<!-- Enable the line below to have remote debugging of your application on port 5005 <jvmArguments> - agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments> -->
2017-03-21 07:23:41 -04:00
</configuration>
</plugin>
</plugins>
</build>
<properties >
<!-- log configuration -->
<logback.loglevel > DEBUG</logback.loglevel>
<!-- default Spring profiles -->
<spring.profiles.active > dev,swagger</spring.profiles.active>
</properties>
<dependencies >
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-devtools</artifactId>
<optional > true</optional>
</dependency>
<dependency >
<groupId > org.springframework.boot</groupId>
<artifactId > spring-boot-starter-undertow</artifactId>
</dependency>
</dependencies>
</profile>
<profile >
2018-07-12 03:04:54 -04:00
<!-- Profile for monitoring the application with Graphite. -->
2017-03-21 07:23:41 -04:00
<id > graphite</id>
<dependencies >
<dependency >
<groupId > io.dropwizard.metrics</groupId>
<artifactId > metrics-graphite</artifactId>
</dependency>
</dependencies>
</profile>
<profile >
2018-07-12 03:04:54 -04:00
<!-- Profile for monitoring the application with Prometheus. -->
2017-03-21 07:23:41 -04:00
<id > prometheus</id>
<dependencies >
<dependency >
<groupId > io.prometheus</groupId>
<artifactId > simpleclient</artifactId>
<version > ${prometheus-simpleclient.version}</version>
</dependency>
<dependency >
<groupId > io.prometheus</groupId>
<artifactId > simpleclient_dropwizard</artifactId>
<version > ${prometheus-simpleclient.version}</version>
</dependency>
<dependency >
<groupId > io.prometheus</groupId>
<artifactId > simpleclient_servlet</artifactId>
<version > ${prometheus-simpleclient.version}</version>
</dependency>
</dependencies>
</profile>
<profile >
2018-07-12 03:04:54 -04:00
<!-- Profile for applying IDE - specific configuration. At the moment it only configures MapStruct, which you need when working with DTOs. -->
2017-03-21 07:23:41 -04:00
<id > IDE</id>
<dependencies >
<dependency >
<groupId > org.mapstruct</groupId>
<artifactId > mapstruct-processor</artifactId>
<version > ${mapstruct.version}</version>
</dependency>
</dependencies>
</profile>
</profiles>
</project>