2013-04-24 17:02:07 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2018-09-12 07:49:06 +08:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2019-03-17 00:01:11 +08:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2013-04-24 17:02:07 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
2013-07-26 18:50:02 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
2013-07-27 03:30:54 +08:00
|
|
|
<artifactId>spring-boot-parent</artifactId>
|
2017-06-01 05:27:23 +08:00
|
|
|
<version>${revision}</version>
|
2013-08-03 12:48:19 +08:00
|
|
|
<relativePath>../spring-boot-parent</relativePath>
|
2013-04-24 17:02:07 +08:00
|
|
|
</parent>
|
2013-07-26 18:50:02 +08:00
|
|
|
<artifactId>spring-boot-cli</artifactId>
|
2014-04-01 16:10:51 +08:00
|
|
|
<name>Spring Boot CLI</name>
|
|
|
|
<description>Spring Boot CLI</description>
|
2013-04-24 17:02:07 +08:00
|
|
|
<properties>
|
2017-06-01 05:27:23 +08:00
|
|
|
<main.basedir>${basedir}/../..</main.basedir>
|
2013-07-26 18:50:02 +08:00
|
|
|
<start-class>org.springframework.boot.cli.SpringCli</start-class>
|
2013-11-06 17:42:23 +08:00
|
|
|
<spring.profiles.active>default</spring.profiles.active>
|
2015-03-20 01:15:10 +08:00
|
|
|
<generated.pom.dir>${project.build.directory}/generated-resources/org/springframework/boot/cli/compiler/dependencies</generated.pom.dir>
|
2013-04-24 17:02:07 +08:00
|
|
|
</properties>
|
2019-10-02 16:55:37 +08:00
|
|
|
<scm>
|
|
|
|
<url>${git.url}</url>
|
|
|
|
<connection>${git.connection}</connection>
|
|
|
|
<developerConnection>${git.developerConnection}</developerConnection>
|
|
|
|
</scm>
|
2013-07-06 01:26:50 +08:00
|
|
|
<dependencies>
|
|
|
|
<!-- Compile -->
|
Add a command to produce a self-contained executable JAR for a CLI app
A new command, jar, has been added to the CLI. The command can be
used to create a self-contained executable JAR file from a CLI app.
Basic usage is:
spring jar <jar-name> <source-files>
For example:
spring jar my-app.jar *.groovy
The resulting jar will contain the classes generated by compiling the
source files, all of the application's dependencies, and entries
on the application's classpath.
By default a CLI application has the current working directory on
its classpath. This can be overridden using the --classpath option.
Any file that is referenced directly by the classpath is always
included in the jar. Any file that is found a result of being
contained within a directory that is on the classpath is subject to
filtering to determine whether or not it should be included. The
default includes are public/**, static/**, resources/**,
META-INF/**, *. The default excludes are .*, repository/**, build/**,
target/**. To be included in the jar, a file must match one of the
includes and none of the excludes. The filters can be overridden using
the --include and --exclude options.
Closes #241
2014-01-29 22:00:31 +08:00
|
|
|
<dependency>
|
2014-04-30 23:42:23 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
Add a command to produce a self-contained executable JAR for a CLI app
A new command, jar, has been added to the CLI. The command can be
used to create a self-contained executable JAR file from a CLI app.
Basic usage is:
spring jar <jar-name> <source-files>
For example:
spring jar my-app.jar *.groovy
The resulting jar will contain the classes generated by compiling the
source files, all of the application's dependencies, and entries
on the application's classpath.
By default a CLI application has the current working directory on
its classpath. This can be overridden using the --classpath option.
Any file that is referenced directly by the classpath is always
included in the jar. Any file that is found a result of being
contained within a directory that is on the classpath is subject to
filtering to determine whether or not it should be included. The
default includes are public/**, static/**, resources/**,
META-INF/**, *. The default excludes are .*, repository/**, build/**,
target/**. To be included in the jar, a file must match one of the
includes and none of the excludes. The filters can be overridden using
the --include and --exclude options.
Closes #241
2014-01-29 22:00:31 +08:00
|
|
|
<artifactId>spring-boot-loader-tools</artifactId>
|
|
|
|
</dependency>
|
2017-01-05 13:18:08 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.vaadin.external.google</groupId>
|
|
|
|
<artifactId>android-json</artifactId>
|
|
|
|
</dependency>
|
2013-12-24 01:33:37 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>jline</groupId>
|
|
|
|
<artifactId>jline</artifactId>
|
|
|
|
</dependency>
|
2013-07-06 01:26:50 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>net.sf.jopt-simple</groupId>
|
|
|
|
<artifactId>jopt-simple</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.groovy</groupId>
|
2013-11-06 01:56:59 +08:00
|
|
|
<artifactId>groovy</artifactId>
|
2013-07-06 01:26:50 +08:00
|
|
|
</dependency>
|
2018-09-12 07:49:06 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.sonatype.plexus</groupId>
|
|
|
|
<artifactId>plexus-sec-dispatcher</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.sonatype.sisu</groupId>
|
|
|
|
<artifactId>sisu-inject-plexus</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.sonatype.sisu</groupId>
|
|
|
|
<artifactId>sisu-inject-bean</artifactId>
|
|
|
|
</exclusion>
|
2019-03-06 04:20:52 +08:00
|
|
|
<exclusion>
|
|
|
|
<groupId>javax.enterprise</groupId>
|
|
|
|
<artifactId>cdi-api</artifactId>
|
|
|
|
</exclusion>
|
2018-09-12 07:49:06 +08:00
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2013-07-06 01:26:50 +08:00
|
|
|
<dependency>
|
2013-11-05 14:35:23 +08:00
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-core</artifactId>
|
|
|
|
</dependency>
|
2018-02-02 04:00:28 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
<artifactId>spring-security-crypto</artifactId>
|
|
|
|
</dependency>
|
2018-09-12 07:49:06 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpclient</artifactId>
|
|
|
|
</dependency>
|
2013-11-05 14:35:23 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
2018-09-12 07:49:06 +08:00
|
|
|
<artifactId>maven-model</artifactId>
|
2013-11-05 14:35:23 +08:00
|
|
|
</dependency>
|
2014-01-14 18:06:45 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven-settings-builder</artifactId>
|
|
|
|
</dependency>
|
2014-03-26 03:23:58 +08:00
|
|
|
<dependency>
|
2018-09-12 07:49:06 +08:00
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven-resolver-provider</artifactId>
|
2014-03-26 03:23:58 +08:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
2018-09-12 07:49:06 +08:00
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
2014-03-26 03:23:58 +08:00
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2013-11-05 14:35:23 +08:00
|
|
|
<dependency>
|
2018-09-12 07:49:06 +08:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
|
|
|
<artifactId>maven-resolver-connector-basic</artifactId>
|
2013-11-05 14:35:23 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2018-09-12 07:49:06 +08:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
|
|
|
<artifactId>maven-resolver-impl</artifactId>
|
2013-11-05 14:35:23 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2018-09-12 07:49:06 +08:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
|
|
|
<artifactId>maven-resolver-transport-file</artifactId>
|
2013-11-05 14:35:23 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2018-09-12 07:49:06 +08:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
|
|
|
<artifactId>maven-resolver-transport-http</artifactId>
|
2014-05-29 06:00:29 +08:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2013-11-05 14:35:23 +08:00
|
|
|
</dependency>
|
2013-10-28 20:34:29 +08:00
|
|
|
<!-- Provided -->
|
2017-06-01 05:27:23 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
<type>effective-pom</type>
|
|
|
|
<scope>provided</scope>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2013-11-06 01:56:59 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.groovy</groupId>
|
|
|
|
<artifactId>groovy-templates</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2015-10-14 17:46:04 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-web</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2019-03-06 04:20:52 +08:00
|
|
|
<groupId>jakarta.servlet</groupId>
|
|
|
|
<artifactId>jakarta.servlet-api</artifactId>
|
2015-10-14 17:46:04 +08:00
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2016-02-20 03:14:36 +08:00
|
|
|
<!-- Test -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2017-06-13 12:06:03 +08:00
|
|
|
<artifactId>spring-boot-test-support</artifactId>
|
2016-02-20 03:14:36 +08:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-test</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-05-04 15:52:55 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
2019-05-22 20:39:44 +08:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2017-05-04 15:52:55 +08:00
|
|
|
</dependency>
|
2013-07-06 01:26:50 +08:00
|
|
|
</dependencies>
|
2013-04-24 17:02:07 +08:00
|
|
|
<build>
|
2015-03-20 01:15:10 +08:00
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${project.build.directory}/generated-resources</directory>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2013-04-24 17:02:07 +08:00
|
|
|
<plugins>
|
2014-01-21 04:12:10 +08:00
|
|
|
<plugin>
|
2014-05-03 06:03:31 +08:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2014-01-21 04:12:10 +08:00
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
</plugin>
|
2013-08-25 23:20:32 +08:00
|
|
|
<plugin>
|
2014-05-03 06:03:31 +08:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2013-08-25 23:20:32 +08:00
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
2013-10-24 20:57:38 +08:00
|
|
|
<additionalClasspathElements>
|
|
|
|
<additionalClasspathElement>${project.build.directory}/generated-resources</additionalClasspathElement>
|
|
|
|
</additionalClasspathElements>
|
2013-11-06 17:42:23 +08:00
|
|
|
<systemPropertyVariables>
|
|
|
|
<spring.profiles.active>${spring.profiles.active}</spring.profiles.active>
|
|
|
|
</systemPropertyVariables>
|
2013-08-25 23:20:32 +08:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-11-16 15:21:00 +08:00
|
|
|
<!-- Build an executable JAR manually since we can't easily depend on
|
2013-11-05 14:35:23 +08:00
|
|
|
a maven plugin that is part of the reactor -->
|
2013-04-24 17:02:07 +08:00
|
|
|
<plugin>
|
2013-11-05 14:35:23 +08:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
2013-06-13 03:12:51 +08:00
|
|
|
<executions>
|
2015-03-20 01:15:10 +08:00
|
|
|
<execution>
|
|
|
|
<id>copy-effective-pom</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
<type>effective-pom</type>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<outputDirectory>${generated.pom.dir}</outputDirectory>
|
|
|
|
<destFileName>effective-pom.xml</destFileName>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2013-06-13 03:12:51 +08:00
|
|
|
<execution>
|
2013-11-05 14:35:23 +08:00
|
|
|
<id>unpack</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
2014-04-30 23:42:23 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
2013-11-05 14:35:23 +08:00
|
|
|
<artifactId>spring-boot-loader</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>jar</type>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
<outputDirectory>${project.build.directory}/assembly</outputDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>copy</id>
|
|
|
|
<phase>prepare-package</phase>
|
2013-06-13 03:12:51 +08:00
|
|
|
<goals>
|
2013-11-05 14:35:23 +08:00
|
|
|
<goal>copy-dependencies</goal>
|
2013-06-13 03:12:51 +08:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
Use a conventional delegation model in LaunchedURLClassLoader
When an application is run as an executable archive with nested jars,
the application's own classes need to be able to load classes from
within the nested jars. This means that the application's classes need
to be loaded by the same class loader as is used for the nested jars.
When an application is launched with java -jar the contents of the
jar are on the class path of the app class loader, which is the
parent of the LaunchedURLClassLoader that is used to load classes
from within the nested jars. If the root of the jar includes the
application's classes, they would be loaded by the app class loader
and, therefore, would not be able to load classes from within the
nested jars.
Previously, this problem was resolved by LaunchedURLClassLoader being
created with a copy of all of the app class laoder's URLs and by
using an unconventional delegation model that caused it to skip its
parent (the app class loader) and jump straight to its root class
loader. This ensured that the LaunchedURLClassLoader would load both
the application's own classes and those from within any nested jars.
Unfortunately, this unusual delegation model has proved to be
problematic. We have seen and worked around some problems with Java
Agents (see gh-4911 and gh-863), but there are others (see gh-4868)
that cannot be made to work with the current delegation model.
This commit reworks LaunchedURLClassLoader to use a conventional
delegate model with the app class loader as its parent. With this
change in place, the application's own classes need to be hidden
from the app class loader via some other means. This is now achieved
by packaging application classes in BOOT-INF/classes (and, for
symmetry, nested jars are now packaged in BOOT-INF/lib). Both the
JarLauncher and the PropertiesLauncher (which supports the executable
jar layout) have been updated to look for classes and nested jars in
these new locations.
Closes gh-4897
Fixes gh-4868
2016-01-13 23:52:39 +08:00
|
|
|
<outputDirectory>${project.build.directory}/assembly/BOOT-INF/lib</outputDirectory>
|
2014-01-14 01:51:02 +08:00
|
|
|
<includeScope>runtime</includeScope>
|
2013-06-13 03:12:51 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2013-04-24 17:02:07 +08:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2014-05-03 06:03:31 +08:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2013-04-24 17:02:07 +08:00
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2013-11-05 14:35:23 +08:00
|
|
|
<id>jar-with-dependencies</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>src/main/assembly/jar-with-dependencies.xml</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
2014-01-11 15:15:20 +08:00
|
|
|
<mainClass>org.springframework.boot.loader.JarLauncher</mainClass>
|
2013-11-05 14:35:23 +08:00
|
|
|
</manifest>
|
|
|
|
<manifestEntries>
|
|
|
|
<Start-Class>${start-class}</Start-Class>
|
2013-12-31 22:35:51 +08:00
|
|
|
<Class-Loader>groovy.lang.GroovyClassLoader</Class-Loader>
|
|
|
|
</manifestEntries>
|
2013-11-05 14:35:23 +08:00
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>bin-package</id>
|
2013-04-24 18:38:57 +08:00
|
|
|
<phase>package</phase>
|
2013-04-24 17:02:07 +08:00
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
2013-11-05 14:35:23 +08:00
|
|
|
<configuration>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>src/main/assembly/bin-package.xml</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
</configuration>
|
2013-04-24 17:02:07 +08:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2013-10-09 01:12:44 +08:00
|
|
|
<plugin>
|
2014-05-03 06:03:31 +08:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2013-10-09 01:12:44 +08:00
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2013-11-16 15:21:00 +08:00
|
|
|
<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>
|
2013-10-09 01:12:44 +08:00
|
|
|
<executions>
|
2013-11-16 15:21:00 +08:00
|
|
|
<execution>
|
|
|
|
<id>homebrew</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
2018-09-12 07:49:06 +08:00
|
|
|
<taskdef
|
|
|
|
resource="net/sf/antcontrib/antcontrib.properties" />
|
|
|
|
<taskdef name="stringutil"
|
|
|
|
classname="ise.antelope.tasks.StringUtilTask" />
|
2013-11-16 15:21:00 +08:00
|
|
|
<var name="version-type" value="${project.version}" />
|
2018-09-12 07:49:06 +08:00
|
|
|
<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-11-16 15:21:00 +08:00
|
|
|
<stringutil string="${version-type}" property="repo">
|
|
|
|
<lowercase />
|
|
|
|
</stringutil>
|
2017-06-01 05:27:23 +08:00
|
|
|
<checksum algorithm="sha-256"
|
|
|
|
file="${project.build.directory}/spring-boot-cli-${project.version}-bin.tar.gz"
|
|
|
|
property="checksum" />
|
|
|
|
<echo
|
|
|
|
message="Customizing homebrew for ${project.version} with checksum ${checksum} in ${repo} repo" />
|
2021-01-07 08:58:05 +08:00
|
|
|
<copy file="${basedir}/src/main/homebrew/spring-boot.rb"
|
|
|
|
tofile="${project.build.directory}/homebrew/spring-boot.rb"
|
2018-09-12 07:49:06 +08:00
|
|
|
overwrite="true">
|
2013-11-16 15:21:00 +08:00
|
|
|
<filterchain>
|
|
|
|
<expandproperties />
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
2018-09-12 07:49:06 +08:00
|
|
|
<attachartifact
|
2021-01-07 08:58:05 +08:00
|
|
|
file="${project.build.directory}/homebrew/spring-boot.rb"
|
2018-05-17 18:21:40 +08:00
|
|
|
classifier="homebrew" type="rb" />
|
|
|
|
</target>
|
2013-11-16 15:21:00 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2018-03-12 16:46:44 +08:00
|
|
|
<execution>
|
|
|
|
<id>scoop</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
2018-09-12 07:49:06 +08:00
|
|
|
<taskdef
|
|
|
|
resource="net/sf/antcontrib/antcontrib.properties" />
|
|
|
|
<taskdef name="stringutil"
|
|
|
|
classname="ise.antelope.tasks.StringUtilTask" />
|
2018-03-12 16:46:44 +08:00
|
|
|
<var name="scoop-version" value="${project.version}" />
|
2018-09-12 07:49:06 +08:00
|
|
|
<propertyregex property="scoop-version"
|
|
|
|
override="true" input="${scoop-version}" regexp="(.*)\..*"
|
|
|
|
replace="\1" />
|
2018-03-12 16:46:44 +08:00
|
|
|
<var name="version-type" value="${project.version}" />
|
2018-09-12 07:49:06 +08:00
|
|
|
<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" />
|
2018-03-12 16:46:44 +08:00
|
|
|
<stringutil string="${version-type}" property="repo">
|
|
|
|
<lowercase />
|
|
|
|
</stringutil>
|
|
|
|
<checksum algorithm="sha-256"
|
2018-05-15 00:20:57 +08:00
|
|
|
file="${project.build.directory}/spring-boot-cli-${project.version}-bin.zip"
|
|
|
|
property="hash" />
|
2018-03-12 16:46:44 +08:00
|
|
|
<echo
|
2018-05-15 00:20:57 +08:00
|
|
|
message="Customizing scoop for ${project.version} with hash ${hash} in ${repo} repo" />
|
2018-03-12 16:46:44 +08:00
|
|
|
<copy file="${basedir}/src/main/scoop/springboot.json"
|
2018-09-12 07:49:06 +08:00
|
|
|
tofile="${project.build.directory}/scoop/springboot.json"
|
|
|
|
overwrite="true">
|
2018-03-12 16:46:44 +08:00
|
|
|
<filterchain>
|
|
|
|
<expandproperties>
|
|
|
|
<propertyset>
|
|
|
|
<propertyref name="scoop-version" />
|
|
|
|
<propertyref name="hash" />
|
|
|
|
<propertyref name="repo" />
|
|
|
|
<propertyref name="project.version" />
|
|
|
|
</propertyset>
|
|
|
|
</expandproperties>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
2018-09-12 07:49:06 +08:00
|
|
|
<attachartifact
|
|
|
|
file="${project.build.directory}/scoop/springboot.json"
|
|
|
|
classifier="scoop" type="json" />
|
2018-03-12 16:46:44 +08:00
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2013-10-09 01:12:44 +08:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
2014-01-21 04:12:10 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>add-test-source</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>add-test-source</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<sources>
|
|
|
|
<source>src/it/java</source>
|
|
|
|
</sources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2013-04-24 17:02:07 +08:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2017-06-01 05:27:23 +08:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>integration</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<spring.profiles.active>integration</spring.profiles.active>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
2018-08-09 20:35:03 +08:00
|
|
|
<profile>
|
2018-08-17 22:17:00 +08:00
|
|
|
<id>java9+</id>
|
2018-08-09 20:35:03 +08:00
|
|
|
<activation>
|
2018-08-17 22:17:00 +08:00
|
|
|
<jdk>[9,)</jdk>
|
2018-08-09 20:35:03 +08:00
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.glassfish.jaxb</groupId>
|
|
|
|
<artifactId>jaxb-runtime</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</profile>
|
2017-06-01 05:27:23 +08:00
|
|
|
</profiles>
|
2013-04-24 17:02:07 +08:00
|
|
|
</project>
|