2013-04-24 17:02:07 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2014-06-11 03:40:35 +08: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/xsd/maven-4.0.0.xsd">
|
2013-04-24 17:02:07 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2013-07-26 18:50:02 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
2013-08-03 12:48:19 +08:00
|
|
|
<artifactId>spring-boot-build</artifactId>
|
2017-03-03 22:39:21 +08:00
|
|
|
<version>1.4.6.BUILD-SNAPSHOT</version>
|
2013-04-24 17:02:07 +08:00
|
|
|
<packaging>pom</packaging>
|
2014-04-01 16:10:51 +08:00
|
|
|
<name>Spring Boot Build</name>
|
|
|
|
<description>Spring Boot Build</description>
|
|
|
|
<url>http://projects.spring.io/spring-boot/</url>
|
|
|
|
<organization>
|
|
|
|
<name>Pivotal Software, Inc.</name>
|
|
|
|
<url>http://www.spring.io</url>
|
|
|
|
</organization>
|
|
|
|
<licenses>
|
|
|
|
<license>
|
|
|
|
<name>Apache License, Version 2.0</name>
|
|
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
|
|
|
</license>
|
|
|
|
</licenses>
|
|
|
|
<scm>
|
|
|
|
<url>https://github.com/spring-projects/spring-boot</url>
|
|
|
|
</scm>
|
|
|
|
<developers>
|
|
|
|
<developer>
|
|
|
|
<id>pwebb</id>
|
|
|
|
<name>Phillip Webb</name>
|
2014-10-30 01:47:13 +08:00
|
|
|
<email>pwebb at pivotal.io</email>
|
2014-04-01 16:10:51 +08:00
|
|
|
<organization>Pivotal Software, Inc.</organization>
|
|
|
|
<organizationUrl>http://www.spring.io</organizationUrl>
|
|
|
|
<roles>
|
|
|
|
<role>Project lead</role>
|
|
|
|
</roles>
|
|
|
|
</developer>
|
|
|
|
<developer>
|
|
|
|
<id>dsyer</id>
|
|
|
|
<name>Dave Syer</name>
|
2014-10-30 01:47:13 +08:00
|
|
|
<email>dsyer at pivotal.io</email>
|
2014-04-01 16:10:51 +08:00
|
|
|
<organization>Pivotal Software, Inc.</organization>
|
|
|
|
<organizationUrl>http://www.spring.io</organizationUrl>
|
|
|
|
<roles>
|
|
|
|
<role>Project lead</role>
|
|
|
|
</roles>
|
|
|
|
</developer>
|
|
|
|
</developers>
|
2013-04-24 17:02:07 +08:00
|
|
|
<prerequisites>
|
2015-07-29 15:21:25 +08:00
|
|
|
<maven>3.2.1</maven>
|
2013-04-24 17:02:07 +08:00
|
|
|
</prerequisites>
|
|
|
|
<properties>
|
2013-07-06 01:26:50 +08:00
|
|
|
<main.basedir>${basedir}</main.basedir>
|
2013-04-24 17:02:07 +08:00
|
|
|
</properties>
|
|
|
|
<build>
|
2013-08-30 13:28:34 +08:00
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2014-05-03 06:03:31 +08:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2013-08-30 13:28:34 +08:00
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<version>1.7</version>
|
|
|
|
</plugin>
|
2014-05-11 06:04:24 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>2.17</version>
|
|
|
|
</plugin>
|
2014-05-11 06:17:38 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
|
|
<artifactId>replacer</artifactId>
|
|
|
|
<version>1.5.3</version>
|
|
|
|
</plugin>
|
|
|
|
|
2013-08-30 13:28:34 +08:00
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
2013-04-24 17:02:07 +08:00
|
|
|
</build>
|
2013-08-30 13:28:34 +08:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>default</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<modules>
|
|
|
|
<module>spring-boot-dependencies</module>
|
|
|
|
<module>spring-boot-parent</module>
|
|
|
|
<module>spring-boot-tools</module>
|
|
|
|
<module>spring-boot</module>
|
2016-02-20 03:14:36 +08:00
|
|
|
<module>spring-boot-test</module>
|
2013-08-30 13:28:34 +08:00
|
|
|
<module>spring-boot-autoconfigure</module>
|
2016-03-23 01:22:50 +08:00
|
|
|
<module>spring-boot-test-autoconfigure</module>
|
2013-08-30 13:28:34 +08:00
|
|
|
<module>spring-boot-actuator</module>
|
2015-06-05 03:31:49 +08:00
|
|
|
<module>spring-boot-devtools</module>
|
2014-05-03 00:58:12 +08:00
|
|
|
<module>spring-boot-docs</module>
|
2013-08-30 13:28:34 +08:00
|
|
|
<module>spring-boot-starters</module>
|
2015-07-02 01:36:21 +08:00
|
|
|
<module>spring-boot-actuator-docs</module>
|
2013-08-30 13:28:34 +08:00
|
|
|
<module>spring-boot-cli</module>
|
2013-11-06 17:42:23 +08:00
|
|
|
</modules>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>integration</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<modules>
|
2013-08-30 13:28:34 +08:00
|
|
|
<module>spring-boot-integration-tests</module>
|
|
|
|
</modules>
|
|
|
|
</profile>
|
2016-06-10 23:25:31 +08:00
|
|
|
<profile>
|
|
|
|
<id>full</id>
|
|
|
|
</profile>
|
2013-08-30 13:28:34 +08:00
|
|
|
<profile>
|
|
|
|
<id>prepare</id>
|
2016-06-10 23:25:31 +08:00
|
|
|
<properties>
|
|
|
|
<skipTests>true</skipTests>
|
|
|
|
</properties>
|
2013-08-30 13:28:34 +08:00
|
|
|
<modules>
|
2014-06-25 04:32:46 +08:00
|
|
|
<module>spring-boot-dependencies</module>
|
2014-08-21 01:28:24 +08:00
|
|
|
<module>spring-boot-parent</module>
|
2013-08-30 13:28:34 +08:00
|
|
|
<module>spring-boot-tools</module>
|
|
|
|
</modules>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2014-05-03 06:03:31 +08:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2013-08-30 13:28:34 +08:00
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>ant-contrib</groupId>
|
|
|
|
<artifactId>ant-contrib</artifactId>
|
|
|
|
<version>1.0b3</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>ant</groupId>
|
|
|
|
<artifactId>ant</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.ant</groupId>
|
|
|
|
<artifactId>ant-nodeps</artifactId>
|
|
|
|
<version>1.8.1</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.tigris.antelope</groupId>
|
|
|
|
<artifactId>antelopetasks</artifactId>
|
|
|
|
<version>3.2.10</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>generate-settings.xml</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
2014-06-11 03:40:35 +08:00
|
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
|
|
|
|
<taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask" />
|
|
|
|
<var name="version-type" value="${project.version}" />
|
|
|
|
<propertyregex property="version-type" override="true" input="${version-type}" regexp=".*\.(.*)" replace="\1" />
|
|
|
|
<propertyregex property="version-type" override="true" input="${version-type}" regexp="(M)\d+" replace="MILESTONE" />
|
|
|
|
<propertyregex property="version-type" override="true" input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" />
|
|
|
|
<propertyregex property="version-type" override="true" input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" />
|
2013-08-30 13:28:34 +08:00
|
|
|
<stringutil string="${version-type}" property="profile">
|
2014-06-11 03:40:35 +08:00
|
|
|
<lowercase />
|
2013-08-30 13:28:34 +08:00
|
|
|
</stringutil>
|
2014-06-11 03:40:35 +08:00
|
|
|
<echo message="Writing settings for ${profile} profile" />
|
2014-04-01 18:05:51 +08:00
|
|
|
<copy file=".settings-template.xml" tofile="settings.xml" overwrite="true">
|
2013-08-30 13:28:34 +08:00
|
|
|
<filterset>
|
2014-06-11 03:40:35 +08:00
|
|
|
<filter token="profile" value="${profile}" />
|
2013-08-30 13:28:34 +08:00
|
|
|
</filterset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2014-05-05 19:44:30 +08:00
|
|
|
<id>fixup-dependencies-pom</id>
|
2013-08-30 13:28:34 +08:00
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
2014-06-11 03:40:35 +08:00
|
|
|
<property name="sourceFile" value="spring-boot-dependencies/pom.xml" />
|
2013-08-30 13:28:34 +08:00
|
|
|
<xslt in="${sourceFile}" out="${sourceFile}.new" force="true">
|
|
|
|
<style>
|
|
|
|
<string><![CDATA[
|
|
|
|
<xsl:stylesheet version="2.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://maven.apache.org/POM/4.0.0"
|
|
|
|
exclude-result-prefixes="m">
|
|
|
|
|
|
|
|
<xsl:template match="node()|@*">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:apply-templates select="node()|@*" />
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template
|
2016-03-25 00:35:45 +08:00
|
|
|
match="m:build/m:pluginManagement/m:plugins/m:plugin[m:groupId/text() = 'org.springframework.boot']/m:version/text()">
|
2014-05-05 19:44:30 +08:00
|
|
|
<xsl:value-of select="/m:project/m:version/text()"/>
|
2013-08-30 13:28:34 +08:00
|
|
|
</xsl:template>
|
2016-08-15 19:25:25 +08:00
|
|
|
</xsl:stylesheet>
|
|
|
|
]]>
|
|
|
|
</string>
|
|
|
|
</style>
|
|
|
|
</xslt>
|
|
|
|
<move file="${sourceFile}" tofile="${sourceFile}.old" />
|
|
|
|
<move file="${sourceFile}.new" tofile="${sourceFile}" />
|
|
|
|
<delete file="${sourceFile}.old" />
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>fixup-starter-parent</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<property name="sourceFile" value="spring-boot-starters/spring-boot-starter-parent/pom.xml" />
|
|
|
|
<xslt in="${sourceFile}" out="${sourceFile}.new" force="true">
|
|
|
|
<style>
|
|
|
|
<string><![CDATA[
|
|
|
|
<xsl:stylesheet version="2.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://maven.apache.org/POM/4.0.0"
|
|
|
|
exclude-result-prefixes="m">
|
|
|
|
|
|
|
|
<xsl:template match="node()|@*">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:apply-templates select="node()|@*" />
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template
|
|
|
|
match="m:build/m:pluginManagement/m:plugins/m:plugin[m:artifactId/text() = 'maven-shade-plugin']/m:dependencies/m:dependency[m:artifactId/text() = 'spring-boot-maven-plugin']/m:version/text()">
|
|
|
|
<xsl:value-of select="/m:project/m:parent/m:version/text()"/>
|
|
|
|
</xsl:template>
|
2016-10-03 17:03:45 +08:00
|
|
|
</xsl:stylesheet>
|
|
|
|
]]>
|
|
|
|
</string>
|
|
|
|
</style>
|
|
|
|
</xslt>
|
|
|
|
<move file="${sourceFile}" tofile="${sourceFile}.old" />
|
|
|
|
<move file="${sourceFile}.new" tofile="${sourceFile}" />
|
|
|
|
<delete file="${sourceFile}.old" />
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>fixup-sample-ant</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<property name="sourceFile" value="spring-boot-samples/spring-boot-sample-ant/pom.xml" />
|
|
|
|
<xslt in="${sourceFile}" out="${sourceFile}.new" force="true">
|
|
|
|
<style>
|
|
|
|
<string><![CDATA[
|
|
|
|
<xsl:stylesheet version="2.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://maven.apache.org/POM/4.0.0"
|
|
|
|
exclude-result-prefixes="m">
|
|
|
|
|
|
|
|
<xsl:template match="node()|@*">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:apply-templates select="node()|@*" />
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template
|
|
|
|
match="m:build/m:plugins/m:plugin[m:artifactId/text() = 'maven-antrun-plugin']/m:dependencies/m:dependency[m:artifactId/text() = 'spring-boot-antlib']/m:version/text()">
|
|
|
|
<xsl:value-of select="/m:project/m:parent/m:version/text()"/>
|
|
|
|
</xsl:template>
|
2013-08-30 13:28:34 +08:00
|
|
|
</xsl:stylesheet>
|
|
|
|
]]>
|
|
|
|
</string>
|
|
|
|
</style>
|
|
|
|
</xslt>
|
2014-06-11 03:40:35 +08:00
|
|
|
<move file="${sourceFile}" tofile="${sourceFile}.old" />
|
|
|
|
<move file="${sourceFile}.new" tofile="${sourceFile}" />
|
|
|
|
<delete file="${sourceFile}.old" />
|
2013-08-30 13:28:34 +08:00
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2016-06-10 23:25:31 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2014-05-11 06:17:38 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
|
|
<artifactId>replacer</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>fixup-gradle-samples</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>replace</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>${basedir}/spring-boot-samples/**/build.gradle</include>
|
|
|
|
</includes>
|
2016-07-11 18:45:28 +08:00
|
|
|
<token>springBootVersion =\s+.*+</token>
|
2014-05-11 06:17:38 +08:00
|
|
|
<value>springBootVersion = '${project.version}'</value>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>fixup-ant-samples</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>replace</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>${basedir}/spring-boot-samples/**/build.xml</include>
|
|
|
|
</includes>
|
|
|
|
<token>spring-boot\.version\"\s.*+</token>
|
2014-06-11 03:40:35 +08:00
|
|
|
<value>spring-boot.version" value="${project.version}" /></value>
|
2014-05-11 06:17:38 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2013-08-30 13:28:34 +08:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2014-08-21 02:09:13 +08:00
|
|
|
<profile>
|
|
|
|
<id>ci</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
|
|
<artifactId>replacer</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>remove-repo-samples</id>
|
|
|
|
<goals>
|
|
|
|
<goal>replace</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>${basedir}/spring-boot-dependencies/pom.xml</include>
|
|
|
|
</includes>
|
|
|
|
<regexFlags>
|
|
|
|
<regexFlag>DOTALL</regexFlag>
|
|
|
|
</regexFlags>
|
2014-08-21 15:44:22 +08:00
|
|
|
<token>\n\t<profiles>.*</profiles></token>
|
2014-12-11 08:35:50 +08:00
|
|
|
<value />
|
2014-08-21 02:09:13 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2013-08-30 13:28:34 +08:00
|
|
|
</profiles>
|
2013-04-24 17:02:07 +08:00
|
|
|
</project>
|