mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Add setup profile
Add a setup profile allowing the maven plugin to be build alone. Required to prevent 'unresolveable build extension' errors on a fresh checkout. Issue: #52091115
This commit is contained in:
parent
51f312f77d
commit
56bfa30b2c
205
pom.xml
205
pom.xml
@ -9,15 +9,6 @@
|
|||||||
<prerequisites>
|
<prerequisites>
|
||||||
<maven>3.0.0</maven>
|
<maven>3.0.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
<modules>
|
|
||||||
<module>spring-bootstrap</module>
|
|
||||||
<module>spring-bootstrap-actuator</module>
|
|
||||||
<module>spring-bootstrap-cli</module>
|
|
||||||
<module>spring-bootstrap-launcher</module>
|
|
||||||
<module>spring-bootstrap-maven-plugin</module>
|
|
||||||
<module>spring-bootstrap-samples</module>
|
|
||||||
<module>spring-bootstrap-starters</module>
|
|
||||||
</modules>
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.6</java.version>
|
<java.version>1.6</java.version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
@ -71,92 +62,6 @@
|
|||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>staging</id>
|
|
||||||
<distributionManagement>
|
|
||||||
<site>
|
|
||||||
<id>spring-site-staging</id>
|
|
||||||
<url>file:///${java.io.tmpdir}/spring-bootstrap/docs</url>
|
|
||||||
</site>
|
|
||||||
<repository>
|
|
||||||
<id>spring-milestone-staging</id>
|
|
||||||
<url>file:///${java.io.tmpdir}/spring-bootstrap/milestone</url>
|
|
||||||
</repository>
|
|
||||||
<snapshotRepository>
|
|
||||||
<id>spring-snapshot-staging</id>
|
|
||||||
<url>file:///${java.io.tmpdir}/spring-bootstrap/snapshot</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
</distributionManagement>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>milestone</id>
|
|
||||||
<distributionManagement>
|
|
||||||
<repository>
|
|
||||||
<id>spring-repo-milestone</id>
|
|
||||||
<name>Spring Milestone Repository</name>
|
|
||||||
<url>https://repo.springsource.org/libs-milestone-local</url>
|
|
||||||
</repository>
|
|
||||||
</distributionManagement>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>central</id>
|
|
||||||
<distributionManagement>
|
|
||||||
<snapshotRepository>
|
|
||||||
<id>sonatype-nexus-snapshots</id>
|
|
||||||
<name>Sonatype Nexus Snapshots</name>
|
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
<repository>
|
|
||||||
<id>sonatype-nexus-staging</id>
|
|
||||||
<name>Nexus Release Repository</name>
|
|
||||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
|
||||||
</repository>
|
|
||||||
</distributionManagement>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>sign-artifacts</id>
|
|
||||||
<phase>verify</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>sign</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>bootstrap</id>
|
|
||||||
<!-- deactivate when released -->
|
|
||||||
<activation>
|
|
||||||
<activeByDefault>true</activeByDefault>
|
|
||||||
</activation>
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>spring-snapshots</id>
|
|
||||||
<name>Spring Snapshots</name>
|
|
||||||
<url>http://maven.springframework.org/snapshot</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>spring-milestones</id>
|
|
||||||
<name>Spring Milestones</name>
|
|
||||||
<url>http://maven.springframework.org/milestone</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
@ -658,4 +563,114 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>setup</id>
|
||||||
|
<modules>
|
||||||
|
<module>spring-bootstrap-launcher</module>
|
||||||
|
<module>spring-bootstrap-maven-plugin</module>
|
||||||
|
</modules>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>default</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<modules>
|
||||||
|
<module>spring-bootstrap</module>
|
||||||
|
<module>spring-bootstrap-actuator</module>
|
||||||
|
<module>spring-bootstrap-cli</module>
|
||||||
|
<module>spring-bootstrap-launcher</module>
|
||||||
|
<module>spring-bootstrap-maven-plugin</module>
|
||||||
|
<module>spring-bootstrap-samples</module>
|
||||||
|
<module>spring-bootstrap-starters</module>
|
||||||
|
</modules>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>staging</id>
|
||||||
|
<distributionManagement>
|
||||||
|
<site>
|
||||||
|
<id>spring-site-staging</id>
|
||||||
|
<url>file:///${java.io.tmpdir}/spring-bootstrap/docs</url>
|
||||||
|
</site>
|
||||||
|
<repository>
|
||||||
|
<id>spring-milestone-staging</id>
|
||||||
|
<url>file:///${java.io.tmpdir}/spring-bootstrap/milestone</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>spring-snapshot-staging</id>
|
||||||
|
<url>file:///${java.io.tmpdir}/spring-bootstrap/snapshot</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
</distributionManagement>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>milestone</id>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>spring-repo-milestone</id>
|
||||||
|
<name>Spring Milestone Repository</name>
|
||||||
|
<url>https://repo.springsource.org/libs-milestone-local</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>central</id>
|
||||||
|
<distributionManagement>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>sonatype-nexus-snapshots</id>
|
||||||
|
<name>Sonatype Nexus Snapshots</name>
|
||||||
|
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<repository>
|
||||||
|
<id>sonatype-nexus-staging</id>
|
||||||
|
<name>Nexus Release Repository</name>
|
||||||
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>sign-artifacts</id>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>sign</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>bootstrap</id>
|
||||||
|
<!-- deactivate when released -->
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>spring-snapshots</id>
|
||||||
|
<name>Spring Snapshots</name>
|
||||||
|
<url>http://maven.springframework.org/snapshot</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>spring-milestones</id>
|
||||||
|
<name>Spring Milestones</name>
|
||||||
|
<url>http://maven.springframework.org/milestone</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>@project.groupId@</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-bootstrap</artifactId>
|
<artifactId>spring-context</artifactId>
|
||||||
<version>@project.version@</version>
|
<version>3.2.3.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javax.servlet</groupId>
|
<groupId>javax.servlet</groupId>
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>@project.groupId@</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-bootstrap</artifactId>
|
<artifactId>spring-context</artifactId>
|
||||||
<version>@project.version@</version>
|
<version>3.2.3.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javax.servlet</groupId>
|
<groupId>javax.servlet</groupId>
|
||||||
|
@ -24,9 +24,6 @@ import java.util.jar.Manifest;
|
|||||||
import java.util.zip.ZipEntry;
|
import java.util.zip.ZipEntry;
|
||||||
import java.util.zip.ZipFile;
|
import java.util.zip.ZipFile;
|
||||||
|
|
||||||
import org.springframework.bootstrap.launcher.JarLauncher;
|
|
||||||
import org.springframework.bootstrap.launcher.WarLauncher;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
@ -110,7 +107,7 @@ public class Verify {
|
|||||||
protected void verifyZipEntries(ZipFile zipFile, Map<String, ZipEntry> entries)
|
protected void verifyZipEntries(ZipFile zipFile, Map<String, ZipEntry> entries)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
super.verifyZipEntries(zipFile, entries);
|
super.verifyZipEntries(zipFile, entries);
|
||||||
assertHasEntryNameStartingWith(entries, "lib/spring-bootstrap");
|
assertHasEntryNameStartingWith(entries, "lib/spring-context");
|
||||||
assertHasEntryNameStartingWith(entries, "lib/spring-core");
|
assertHasEntryNameStartingWith(entries, "lib/spring-core");
|
||||||
assertHasEntryNameStartingWith(entries, "lib/javax.servlet-api-3.0.1.jar");
|
assertHasEntryNameStartingWith(entries, "lib/javax.servlet-api-3.0.1.jar");
|
||||||
assertTrue("Unpacked launcher classes", entries.containsKey("org/"
|
assertTrue("Unpacked launcher classes", entries.containsKey("org/"
|
||||||
@ -121,8 +118,8 @@ public class Verify {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void verifyManifest(Manifest manifest) throws Exception {
|
protected void verifyManifest(Manifest manifest) throws Exception {
|
||||||
assertEquals(JarLauncher.class.getName(), manifest.getMainAttributes()
|
assertEquals("org.springframework.bootstrap.launcher.JarLauncher", manifest
|
||||||
.getValue("Main-Class"));
|
.getMainAttributes().getValue("Main-Class"));
|
||||||
assertEquals("org.test.SampleApplication", manifest.getMainAttributes()
|
assertEquals("org.test.SampleApplication", manifest.getMainAttributes()
|
||||||
.getValue("Start-Class"));
|
.getValue("Start-Class"));
|
||||||
}
|
}
|
||||||
@ -138,7 +135,7 @@ public class Verify {
|
|||||||
protected void verifyZipEntries(ZipFile zipFile, Map<String, ZipEntry> entries)
|
protected void verifyZipEntries(ZipFile zipFile, Map<String, ZipEntry> entries)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
super.verifyZipEntries(zipFile, entries);
|
super.verifyZipEntries(zipFile, entries);
|
||||||
assertHasEntryNameStartingWith(entries, "WEB-INF/lib/spring-bootstrap");
|
assertHasEntryNameStartingWith(entries, "WEB-INF/lib/spring-context");
|
||||||
assertHasEntryNameStartingWith(entries, "WEB-INF/lib/spring-core");
|
assertHasEntryNameStartingWith(entries, "WEB-INF/lib/spring-core");
|
||||||
assertHasEntryNameStartingWith(entries,
|
assertHasEntryNameStartingWith(entries,
|
||||||
"WEB-INF/lib-provided/javax.servlet-api-3.0.1.jar");
|
"WEB-INF/lib-provided/javax.servlet-api-3.0.1.jar");
|
||||||
@ -151,8 +148,8 @@ public class Verify {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void verifyManifest(Manifest manifest) throws Exception {
|
protected void verifyManifest(Manifest manifest) throws Exception {
|
||||||
assertEquals(WarLauncher.class.getName(), manifest.getMainAttributes()
|
assertEquals("org.springframework.bootstrap.launcher.WarLauncher", manifest
|
||||||
.getValue("Main-Class"));
|
.getMainAttributes().getValue("Main-Class"));
|
||||||
assertEquals("org.test.SampleApplication", manifest.getMainAttributes()
|
assertEquals("org.test.SampleApplication", manifest.getMainAttributes()
|
||||||
.getValue("Start-Class"));
|
.getValue("Start-Class"));
|
||||||
}
|
}
|
||||||
|
1
spring-bootstrap-samples/spring-bootstrap-trad-sample/.gitignore
vendored
Normal file
1
spring-bootstrap-samples/spring-bootstrap-trad-sample/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/target
|
Loading…
Reference in New Issue
Block a user