2017-06-01 05:27:23 +08:00
|
|
|
<?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/xsd/maven-4.0.0.xsd">
|
2013-07-11 07:20:57 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2013-08-03 12:48:19 +08:00
|
|
|
<parent>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
2017-06-01 05:27:23 +08:00
|
|
|
<version>${revision}</version>
|
2013-08-03 12:48:19 +08:00
|
|
|
<relativePath>../../spring-boot-dependencies</relativePath>
|
|
|
|
</parent>
|
2013-07-31 07:20:36 +08:00
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
2013-07-11 07:20:57 +08:00
|
|
|
<packaging>pom</packaging>
|
2014-04-01 16:10:51 +08:00
|
|
|
<name>Spring Boot Starter Parent</name>
|
2016-03-30 00:19:29 +08:00
|
|
|
<description>Parent pom providing dependency and plugin management for applications
|
|
|
|
built with Maven</description>
|
2013-07-11 07:20:57 +08:00
|
|
|
<properties>
|
2017-01-25 04:25:20 +08:00
|
|
|
<java.version>1.8</java.version>
|
2014-11-03 21:01:51 +08:00
|
|
|
<resource.delimiter>@</resource.delimiter> <!-- delimiter that doesn't clash with Spring ${} placeholders -->
|
2014-02-28 16:27:21 +08:00
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
2014-10-11 02:01:30 +08:00
|
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
2013-07-11 07:20:57 +08:00
|
|
|
</properties>
|
|
|
|
<build>
|
2013-08-03 12:48:19 +08:00
|
|
|
<!-- Turn on filtering by default for application properties -->
|
2013-07-18 16:16:36 +08:00
|
|
|
<resources>
|
|
|
|
<resource>
|
2014-05-30 23:37:29 +08:00
|
|
|
<directory>${basedir}/src/main/resources</directory>
|
2013-07-18 16:16:36 +08:00
|
|
|
<filtering>true</filtering>
|
|
|
|
<includes>
|
2016-01-26 17:53:07 +08:00
|
|
|
<include>**/application*.yml</include>
|
2017-02-07 16:49:07 +08:00
|
|
|
<include>**/application*.yaml</include>
|
2016-01-26 17:53:07 +08:00
|
|
|
<include>**/application*.properties</include>
|
2013-07-18 16:16:36 +08:00
|
|
|
</includes>
|
|
|
|
</resource>
|
2014-11-03 21:01:51 +08:00
|
|
|
<resource>
|
|
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
|
|
<excludes>
|
2016-01-26 17:53:07 +08:00
|
|
|
<exclude>**/application*.yml</exclude>
|
2017-02-07 16:49:07 +08:00
|
|
|
<exclude>**/application*.yaml</exclude>
|
2016-01-26 17:53:07 +08:00
|
|
|
<exclude>**/application*.properties</exclude>
|
2014-11-03 21:01:51 +08:00
|
|
|
</excludes>
|
|
|
|
</resource>
|
2013-07-18 16:16:36 +08:00
|
|
|
</resources>
|
2013-07-11 07:20:57 +08:00
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
2013-08-03 12:48:19 +08:00
|
|
|
<!-- Apply more sensible defaults for user projects -->
|
2017-10-26 21:27:12 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
|
|
<version>${kotlin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<jvmTarget>${java.version}</jvmTarget>
|
2018-03-27 07:45:40 +08:00
|
|
|
<javaParameters>true</javaParameters>
|
2017-10-26 21:27:12 +08:00
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>compile</id>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>test-compile</id>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test-compile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-07-31 16:15:56 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<parameters>true</parameters>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2016-01-26 16:59:37 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
<goal>verify</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2018-02-12 18:35:14 +08:00
|
|
|
<configuration>
|
|
|
|
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
|
|
|
|
</configuration>
|
2016-01-26 16:59:37 +08:00
|
|
|
</plugin>
|
2013-07-11 07:20:57 +08:00
|
|
|
<plugin>
|
2014-05-03 06:03:31 +08:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2013-07-11 07:20:57 +08:00
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
2013-07-20 00:30:45 +08:00
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<mainClass>${start-class}</mainClass>
|
2015-01-01 00:48:10 +08:00
|
|
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
2013-07-20 00:30:45 +08:00
|
|
|
</manifest>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
2013-07-11 07:20:57 +08:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2014-05-03 06:03:31 +08:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2013-07-11 07:20:57 +08:00
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
2013-07-20 00:30:45 +08:00
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<mainClass>${start-class}</mainClass>
|
2015-01-01 00:48:10 +08:00
|
|
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
2013-07-20 00:30:45 +08:00
|
|
|
</manifest>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
2013-07-11 07:20:57 +08:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
2013-08-03 12:48:19 +08:00
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
2013-11-25 22:17:57 +08:00
|
|
|
<mainClass>${start-class}</mainClass>
|
2013-08-03 12:48:19 +08:00
|
|
|
</configuration>
|
2013-07-11 07:20:57 +08:00
|
|
|
</plugin>
|
2014-11-03 19:10:33 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<delimiters>
|
2014-11-03 21:01:51 +08:00
|
|
|
<delimiter>${resource.delimiter}</delimiter>
|
2014-11-03 19:10:33 +08:00
|
|
|
</delimiters>
|
2015-10-13 17:41:23 +08:00
|
|
|
<useDefaultDelimiters>false</useDefaultDelimiters>
|
2014-11-03 19:10:33 +08:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-07-18 16:16:36 +08:00
|
|
|
<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>
|
2014-10-22 20:33:48 +08:00
|
|
|
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
|
2013-07-18 16:16:36 +08:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-08-03 12:48:19 +08:00
|
|
|
<!-- Support our own plugin -->
|
2013-07-18 09:10:49 +08:00
|
|
|
<plugin>
|
2013-07-26 18:50:02 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
2013-07-27 00:54:59 +08:00
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
2013-07-18 09:10:49 +08:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2018-08-27 19:56:48 +08:00
|
|
|
<id>repackage</id>
|
2013-07-18 09:10:49 +08:00
|
|
|
<goals>
|
2013-07-30 05:52:30 +08:00
|
|
|
<goal>repackage</goal>
|
2013-07-18 09:10:49 +08:00
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2013-07-23 17:51:11 +08:00
|
|
|
<configuration>
|
|
|
|
<mainClass>${start-class}</mainClass>
|
|
|
|
</configuration>
|
2013-07-18 09:10:49 +08:00
|
|
|
</plugin>
|
2016-01-17 19:40:14 +08:00
|
|
|
<!-- Support shade packaging (if the user does not want to use our plugin) -->
|
2013-07-11 07:20:57 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
|
|
|
|
<createDependencyReducedPom>true</createDependencyReducedPom>
|
|
|
|
<filters>
|
|
|
|
<filter>
|
|
|
|
<artifact>*:*</artifact>
|
|
|
|
<excludes>
|
|
|
|
<exclude>META-INF/*.SF</exclude>
|
|
|
|
<exclude>META-INF/*.DSA</exclude>
|
|
|
|
<exclude>META-INF/*.RSA</exclude>
|
|
|
|
</excludes>
|
|
|
|
</filter>
|
|
|
|
</filters>
|
|
|
|
</configuration>
|
2017-11-30 01:30:53 +08:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
<version>${revision}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2013-07-11 07:20:57 +08:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformers>
|
2017-06-01 05:27:23 +08:00
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
2013-07-11 07:20:57 +08:00
|
|
|
<resource>META-INF/spring.handlers</resource>
|
|
|
|
</transformer>
|
2017-06-01 05:27:23 +08:00
|
|
|
<transformer
|
|
|
|
implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer">
|
2013-07-11 07:20:57 +08:00
|
|
|
<resource>META-INF/spring.factories</resource>
|
|
|
|
</transformer>
|
2017-06-01 05:27:23 +08:00
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
2013-07-11 07:20:57 +08:00
|
|
|
<resource>META-INF/spring.schemas</resource>
|
|
|
|
</transformer>
|
2017-06-01 05:27:23 +08:00
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
|
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
2013-07-11 07:20:57 +08:00
|
|
|
<mainClass>${start-class}</mainClass>
|
|
|
|
</transformer>
|
|
|
|
</transformers>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-11-30 01:30:53 +08:00
|
|
|
<!--This plugin's configuration is used to store Eclipse m2e settings
|
|
|
|
only. It has no influence on the Maven build itself. -->
|
2017-06-01 05:27:23 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.eclipse.m2e</groupId>
|
|
|
|
<artifactId>lifecycle-mapping</artifactId>
|
|
|
|
<version>1.0.0</version>
|
|
|
|
<configuration>
|
|
|
|
<lifecycleMappingMetadata>
|
|
|
|
<pluginExecutions>
|
|
|
|
<pluginExecution>
|
|
|
|
<pluginExecutionFilter>
|
|
|
|
<groupId>
|
|
|
|
org.codehaus.mojo
|
|
|
|
</groupId>
|
|
|
|
<artifactId>
|
|
|
|
flatten-maven-plugin
|
|
|
|
</artifactId>
|
|
|
|
<versionRange>
|
|
|
|
[1.0.0,)
|
|
|
|
</versionRange>
|
|
|
|
<goals>
|
|
|
|
<goal>flatten</goal>
|
|
|
|
</goals>
|
|
|
|
</pluginExecutionFilter>
|
|
|
|
<action>
|
|
|
|
<ignore></ignore>
|
|
|
|
</action>
|
|
|
|
</pluginExecution>
|
2018-05-26 12:42:20 +08:00
|
|
|
<pluginExecution>
|
|
|
|
<pluginExecutionFilter>
|
|
|
|
<groupId>
|
|
|
|
org.apache.maven.plugins
|
|
|
|
</groupId>
|
|
|
|
<artifactId>
|
|
|
|
maven-checkstyle-plugin
|
|
|
|
</artifactId>
|
|
|
|
<versionRange>
|
|
|
|
[3.0.0,)
|
|
|
|
</versionRange>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</pluginExecutionFilter>
|
|
|
|
<action>
|
|
|
|
<ignore></ignore>
|
|
|
|
</action>
|
|
|
|
</pluginExecution>
|
2017-06-01 05:27:23 +08:00
|
|
|
</pluginExecutions>
|
|
|
|
</lifecycleMappingMetadata>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-07-11 07:20:57 +08:00
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
2017-06-01 05:27:23 +08:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>flatten-maven-plugin</artifactId>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<!-- Flatten and simplify our own POM for install/deploy -->
|
|
|
|
<id>flatten</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>flatten</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<updatePomFile>true</updatePomFile>
|
|
|
|
<pomElements>
|
|
|
|
<parent>expand</parent>
|
2018-03-01 10:59:45 +08:00
|
|
|
<name>keep</name>
|
|
|
|
<description>keep</description>
|
|
|
|
<url>expand</url>
|
2017-06-01 05:27:23 +08:00
|
|
|
<properties>keep</properties>
|
2018-03-01 10:59:45 +08:00
|
|
|
<pluginManagement>keep</pluginManagement>
|
|
|
|
<dependencyManagement>keep</dependencyManagement>
|
2017-06-01 05:27:23 +08:00
|
|
|
<build>keep</build>
|
|
|
|
</pomElements>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>flatten-clean</id>
|
|
|
|
<phase>clean</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>clean</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<!-- Cleanup the flattened project POM -->
|
|
|
|
<id>post-process-flattened-pom</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
|
|
|
<transformationSet>
|
|
|
|
<dir>${project.basedir}</dir>
|
|
|
|
<outputDir>${project.basedir}</outputDir>
|
|
|
|
<includes>.flattened-pom.xml</includes>
|
|
|
|
<stylesheet>src/main/xslt/post-process-flattened-pom.xsl</stylesheet>
|
|
|
|
<outputProperties>
|
|
|
|
<outputProperty>
|
|
|
|
<name>indent</name>
|
|
|
|
<value>yes</value>
|
|
|
|
</outputProperty>
|
|
|
|
</outputProperties>
|
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
2013-07-11 07:20:57 +08:00
|
|
|
</build>
|
2017-02-07 16:49:07 +08:00
|
|
|
</project>
|