2009-11-25 18:45:52 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2015-10-16 09:33:06 +02:00
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<groupId>org.springframework.samples</groupId>
|
2016-06-17 18:38:24 +02:00
|
|
|
<artifactId>springboot-petclinic</artifactId>
|
2016-10-01 13:00:46 +02:00
|
|
|
<version>1.4.1</version>
|
2016-06-17 18:38:24 +02:00
|
|
|
<parent>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
2016-09-25 18:33:13 +02:00
|
|
|
<version>1.4.1.RELEASE</version>
|
2016-06-17 18:38:24 +02:00
|
|
|
</parent>
|
2015-10-16 09:33:06 +02:00
|
|
|
<name>petclinic</name>
|
2016-06-28 20:08:26 +02:00
|
|
|
<packaging>war</packaging>
|
2013-04-15 17:17:45 +08:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<properties>
|
2013-04-15 17:17:45 +08:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<!-- Generic properties -->
|
|
|
|
|
<java.version>1.7</java.version>
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
2016-08-29 18:47:47 +02:00
|
|
|
<docker.image.prefix>arey</docker.image.prefix>
|
2013-04-15 17:17:45 +08:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<!-- Web dependencies -->
|
2016-06-28 19:52:59 +02:00
|
|
|
<webjars-bootstrap.version>3.3.6</webjars-bootstrap.version>
|
|
|
|
|
<webjars-jquery-ui.version>1.11.4</webjars-jquery-ui.version>
|
2016-06-30 20:02:53 +02:00
|
|
|
<webjars-jquery.version>2.2.4</webjars-jquery.version>
|
2015-04-14 09:27:25 +08:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<cobertura.version>2.7</cobertura.version>
|
2013-04-15 17:17:45 +08:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
</properties>
|
2015-07-02 08:11:02 +02:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<dependencies>
|
2016-06-17 18:38:24 +02:00
|
|
|
<!-- Spring et Spring Boot dependencies -->
|
2014-08-08 13:55:01 +08:00
|
|
|
<dependency>
|
2016-06-17 18:38:24 +02:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
2015-10-16 09:33:06 +02:00
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
2016-06-17 18:38:24 +02:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-cache</artifactId>
|
2015-10-16 09:33:06 +02:00
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
2016-06-17 18:38:24 +02:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
2015-10-16 09:33:06 +02:00
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
2016-06-17 18:38:24 +02:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
2015-05-12 18:55:24 +08:00
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
2015-10-16 09:33:06 +02:00
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2016-06-17 18:38:24 +02:00
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
2016-10-07 18:21:09 +02:00
|
|
|
<!-- Uncomment bellow lines in order to deploy the Springboot Petlinic WAR file into an external Jetty -->
|
|
|
|
|
<!--exclusions>
|
|
|
|
|
<exclusion>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions-->
|
2015-10-16 09:33:06 +02:00
|
|
|
</dependency>
|
2016-06-17 18:38:24 +02:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<dependency>
|
2016-06-17 18:38:24 +02:00
|
|
|
<groupId>org.apache.tomcat.embed</groupId>
|
|
|
|
|
<artifactId>tomcat-embed-jasper</artifactId>
|
|
|
|
|
<scope>provided</scope>
|
2015-10-16 09:33:06 +02:00
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
2016-06-17 18:38:24 +02:00
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
|
<artifactId>jstl</artifactId>
|
2015-10-16 09:33:06 +02:00
|
|
|
</dependency>
|
2016-06-17 18:38:24 +02:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<!-- Databases - Uses HSQL by default -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.hsqldb</groupId>
|
|
|
|
|
<artifactId>hsqldb</artifactId>
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
</dependency>
|
2013-04-15 17:17:45 +08:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<!-- For MySql only -->
|
|
|
|
|
<!--dependency>
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
<version>${mysql-driver.version}</version>
|
|
|
|
|
</dependency-->
|
2013-04-15 17:17:45 +08:00
|
|
|
|
2016-06-17 18:38:24 +02:00
|
|
|
<!-- EhCache -->
|
2015-10-16 09:33:06 +02:00
|
|
|
<dependency>
|
2016-08-29 18:48:12 +02:00
|
|
|
<groupId>javax.cache</groupId>
|
|
|
|
|
<artifactId>cache-api</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.ehcache</groupId>
|
2015-12-22 17:19:34 +01:00
|
|
|
<artifactId>ehcache</artifactId>
|
2015-10-16 09:33:06 +02:00
|
|
|
</dependency>
|
2016-01-30 14:30:19 +01:00
|
|
|
|
2016-06-28 18:02:53 +08:00
|
|
|
<!-- webjars -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.webjars</groupId>
|
|
|
|
|
<artifactId>jquery</artifactId>
|
2016-06-28 19:52:59 +02:00
|
|
|
<version>${webjars-jquery.version}</version>
|
2016-06-28 18:02:53 +08:00
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.webjars</groupId>
|
|
|
|
|
<artifactId>jquery-ui</artifactId>
|
2016-06-28 19:52:59 +02:00
|
|
|
<version>${webjars-jquery-ui.version}</version>
|
2016-06-28 18:02:53 +08:00
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.webjars</groupId>
|
|
|
|
|
<artifactId>bootstrap</artifactId>
|
2016-06-28 19:52:59 +02:00
|
|
|
<version>${webjars-bootstrap.version}</version>
|
2016-06-28 18:02:53 +08:00
|
|
|
</dependency>
|
|
|
|
|
<!-- end of webjars -->
|
|
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
</dependencies>
|
2013-04-15 17:17:45 +08:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<!-- Maven plugin versions are mentioned in order to guarantee the build reproducibility in the long term -->
|
|
|
|
|
<build>
|
2016-06-28 18:02:53 +08:00
|
|
|
<finalName>petclinic</finalName>
|
2015-10-16 09:33:06 +02:00
|
|
|
<defaultGoal>install</defaultGoal>
|
|
|
|
|
<plugins>
|
2016-06-17 18:38:24 +02:00
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
2016-09-15 20:28:57 +02:00
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<!-- Spring Boot Actuator displays build-related information if a META-INF/build-info.properties file is present -->
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>build-info</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<additionalProperties>
|
|
|
|
|
<encoding.source>${project.build.sourceEncoding}</encoding.source>
|
|
|
|
|
<encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting>
|
|
|
|
|
<java.source>${maven.compiler.source}</java.source>
|
|
|
|
|
<java.target>${maven.compiler.target}</java.target>
|
|
|
|
|
</additionalProperties>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
2016-06-17 18:38:24 +02:00
|
|
|
</plugin>
|
2015-10-16 09:33:06 +02:00
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<version>3.0</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<compilerArguments>
|
|
|
|
|
<Xlint/>
|
|
|
|
|
</compilerArguments>
|
|
|
|
|
<verbose>true</verbose>
|
|
|
|
|
<source>${java.version}</source>
|
|
|
|
|
<target>${java.version}</target>
|
|
|
|
|
<showWarnings>true</showWarnings>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
<version>2.13</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<includes>
|
|
|
|
|
<include>**/*Tests.java</include>
|
|
|
|
|
</includes>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-eclipse-plugin</artifactId>
|
|
|
|
|
<version>2.9</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<downloadSources>true</downloadSources>
|
|
|
|
|
<downloadJavadocs>true</downloadJavadocs>
|
|
|
|
|
<wtpversion>2.0</wtpversion>
|
|
|
|
|
<sourceIncludes>
|
|
|
|
|
<sourceInclude>**/*.*</sourceInclude>
|
|
|
|
|
</sourceIncludes>
|
|
|
|
|
<additionalBuildcommands>
|
|
|
|
|
<buildCommand>
|
|
|
|
|
<name>org.springframework.ide.eclipse.core.springbuilder</name>
|
|
|
|
|
</buildCommand>
|
|
|
|
|
<buildCommand>
|
|
|
|
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
|
|
|
|
</buildCommand>
|
|
|
|
|
</additionalBuildcommands>
|
|
|
|
|
<additionalProjectnatures>
|
|
|
|
|
<projectnature>org.eclipse.jdt.core.javanature</projectnature>
|
|
|
|
|
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
|
|
|
|
|
<projectnature>org.eclipse.m2e.core.maven2Nature</projectnature>
|
|
|
|
|
</additionalProjectnatures>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
2016-06-28 18:02:53 +08:00
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
<artifactId>cobertura-maven-plugin</artifactId>
|
|
|
|
|
<version>${cobertura.version}</version>
|
2015-10-16 09:33:06 +02:00
|
|
|
<configuration>
|
2016-06-28 18:02:53 +08:00
|
|
|
<check/>
|
2015-10-16 09:33:06 +02:00
|
|
|
</configuration>
|
2016-06-28 18:02:53 +08:00
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>clean</goal>
|
|
|
|
|
<goal>check</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
2015-10-16 09:33:06 +02:00
|
|
|
</plugin>
|
2016-06-28 18:02:53 +08:00
|
|
|
|
2016-10-17 08:23:28 +02:00
|
|
|
<!-- Spring Boot Actuator displays build-related information if a git.properties file is present at the classpath -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>pl.project13.maven</groupId>
|
|
|
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>revision</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
<configuration>
|
|
|
|
|
<verbose>true</verbose>
|
|
|
|
|
<dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
|
|
|
|
|
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
|
|
|
|
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties
|
|
|
|
|
</generateGitPropertiesFilename>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<plugin>
|
2016-06-28 18:02:53 +08:00
|
|
|
<!--
|
|
|
|
|
right now lesscss maven plugin does NOT support @Import from classpath
|
|
|
|
|
https://github.com/marceloverdijk/lesscss-maven-plugin/issues/72
|
|
|
|
|
|
|
|
|
|
workaround here will be unpacking the bootstrap on-the-fly
|
|
|
|
|
|
|
|
|
|
remove this plugin config when the issue is resolved OR a better resolution is found
|
|
|
|
|
-->
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>unpack</id>
|
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>unpack</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<artifactItems>
|
|
|
|
|
<artifactItem>
|
|
|
|
|
<groupId>org.webjars</groupId>
|
|
|
|
|
<artifactId>bootstrap</artifactId>
|
|
|
|
|
<version>3.3.6</version>
|
|
|
|
|
<overWrite>false</overWrite>
|
2016-10-17 08:23:28 +02:00
|
|
|
<outputDirectory>${project.basedir}/src/main/webapp/resources/generated
|
|
|
|
|
</outputDirectory>
|
2016-06-28 18:02:53 +08:00
|
|
|
<includes>**/*.less</includes>
|
|
|
|
|
</artifactItem>
|
|
|
|
|
</artifactItems>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
<!-- refer to dependency plugin comments above -->
|
|
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|
2015-10-16 09:33:06 +02:00
|
|
|
<configuration>
|
2016-06-28 18:02:53 +08:00
|
|
|
<filesets>
|
|
|
|
|
<fileset>
|
|
|
|
|
<directory>${project.basedir}/src/main/webapp/resources/generated</directory>
|
|
|
|
|
</fileset>
|
|
|
|
|
</filesets>
|
2015-10-16 09:33:06 +02:00
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2016-06-28 18:02:53 +08:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<plugin>
|
2016-06-28 18:02:53 +08:00
|
|
|
<groupId>org.lesscss</groupId>
|
|
|
|
|
<artifactId>lesscss-maven-plugin</artifactId>
|
|
|
|
|
<version>1.7.0.1.1</version>
|
2015-10-16 09:33:06 +02:00
|
|
|
<configuration>
|
2016-06-28 18:02:53 +08:00
|
|
|
<sourceDirectory>${project.basedir}/src/main/webapp/resources/less</sourceDirectory>
|
|
|
|
|
<outputDirectory>${project.basedir}/src/main/webapp/resources/generated</outputDirectory>
|
|
|
|
|
<compress>true</compress>
|
|
|
|
|
<includes>
|
|
|
|
|
<include>petclinic.less</include>
|
|
|
|
|
</includes>
|
2015-10-16 09:33:06 +02:00
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
2016-06-28 18:02:53 +08:00
|
|
|
<phase>process-resources</phase>
|
2015-10-16 09:33:06 +02:00
|
|
|
<goals>
|
2016-06-28 18:02:53 +08:00
|
|
|
<goal>compile</goal>
|
2015-10-16 09:33:06 +02:00
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
2016-08-29 18:47:47 +02:00
|
|
|
<plugin>
|
|
|
|
|
<groupId>com.spotify</groupId>
|
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
|
<version>0.4.11</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
|
|
|
|
|
<dockerDirectory>src/main/docker</dockerDirectory>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<targetPath>/</targetPath>
|
|
|
|
|
<directory>${project.build.directory}</directory>
|
|
|
|
|
<include>${project.build.finalName}.war</include>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
<forceTags>true</forceTags>
|
|
|
|
|
<imageTags>
|
|
|
|
|
<imageTag>${project.version}</imageTag>
|
|
|
|
|
<imageTag>latest</imageTag>
|
|
|
|
|
</imageTags>
|
|
|
|
|
<useConfigFile>true</useConfigFile>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2015-10-16 09:33:06 +02:00
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
<reporting>
|
|
|
|
|
<plugins>
|
|
|
|
|
<!-- integrate maven-cobertura-plugin to project site -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
<artifactId>cobertura-maven-plugin</artifactId>
|
|
|
|
|
<version>${cobertura.version}</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<formats>
|
|
|
|
|
<format>html</format>
|
|
|
|
|
</formats>
|
|
|
|
|
<check/>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</reporting>
|
2009-12-17 18:51:44 +00:00
|
|
|
|
2015-10-16 09:33:06 +02:00
|
|
|
<url>demopetclinic</url>
|
2013-04-25 09:00:20 +08:00
|
|
|
</project>
|