From 56bfa30b2ce20ff43d7c19f514b2e5e26ce754a3 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 20 Jun 2013 17:24:47 -0700 Subject: [PATCH] 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 --- pom.xml | 205 ++++++++++-------- .../src/it/executable-jar/pom.xml | 6 +- .../src/it/executable-war/pom.xml | 6 +- .../bootstrap/maven/Verify.java | 15 +- .../spring-bootstrap-trad-sample/.gitignore | 1 + 5 files changed, 123 insertions(+), 110 deletions(-) create mode 100644 spring-bootstrap-samples/spring-bootstrap-trad-sample/.gitignore diff --git a/pom.xml b/pom.xml index 4255ca3221..452f74d91a 100644 --- a/pom.xml +++ b/pom.xml @@ -9,15 +9,6 @@ 3.0.0 - - spring-bootstrap - spring-bootstrap-actuator - spring-bootstrap-cli - spring-bootstrap-launcher - spring-bootstrap-maven-plugin - spring-bootstrap-samples - spring-bootstrap-starters - 1.6 UTF-8 @@ -71,92 +62,6 @@ - - - staging - - - spring-site-staging - file:///${java.io.tmpdir}/spring-bootstrap/docs - - - spring-milestone-staging - file:///${java.io.tmpdir}/spring-bootstrap/milestone - - - spring-snapshot-staging - file:///${java.io.tmpdir}/spring-bootstrap/snapshot - - - - - milestone - - - spring-repo-milestone - Spring Milestone Repository - https://repo.springsource.org/libs-milestone-local - - - - - central - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots/ - - - sonatype-nexus-staging - Nexus Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - - org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - - - - - - bootstrap - - - true - - - - spring-snapshots - Spring Snapshots - http://maven.springframework.org/snapshot - - true - - - - spring-milestones - Spring Milestones - http://maven.springframework.org/milestone - - false - - - - - @@ -658,4 +563,114 @@ test + + + + setup + + spring-bootstrap-launcher + spring-bootstrap-maven-plugin + + + + default + + true + + + spring-bootstrap + spring-bootstrap-actuator + spring-bootstrap-cli + spring-bootstrap-launcher + spring-bootstrap-maven-plugin + spring-bootstrap-samples + spring-bootstrap-starters + + + + staging + + + spring-site-staging + file:///${java.io.tmpdir}/spring-bootstrap/docs + + + spring-milestone-staging + file:///${java.io.tmpdir}/spring-bootstrap/milestone + + + spring-snapshot-staging + file:///${java.io.tmpdir}/spring-bootstrap/snapshot + + + + + milestone + + + spring-repo-milestone + Spring Milestone Repository + https://repo.springsource.org/libs-milestone-local + + + + + central + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + + sonatype-nexus-staging + Nexus Release Repository + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + + + + bootstrap + + + true + + + + spring-snapshots + Spring Snapshots + http://maven.springframework.org/snapshot + + true + + + + spring-milestones + Spring Milestones + http://maven.springframework.org/milestone + + false + + + + + + diff --git a/spring-bootstrap-maven-plugin/src/it/executable-jar/pom.xml b/spring-bootstrap-maven-plugin/src/it/executable-jar/pom.xml index 8fb31b6972..4e93230ef8 100644 --- a/spring-bootstrap-maven-plugin/src/it/executable-jar/pom.xml +++ b/spring-bootstrap-maven-plugin/src/it/executable-jar/pom.xml @@ -18,9 +18,9 @@ - @project.groupId@ - spring-bootstrap - @project.version@ + org.springframework + spring-context + 3.2.3.RELEASE javax.servlet diff --git a/spring-bootstrap-maven-plugin/src/it/executable-war/pom.xml b/spring-bootstrap-maven-plugin/src/it/executable-war/pom.xml index abcdb0e994..99a9639a92 100644 --- a/spring-bootstrap-maven-plugin/src/it/executable-war/pom.xml +++ b/spring-bootstrap-maven-plugin/src/it/executable-war/pom.xml @@ -18,9 +18,9 @@ - @project.groupId@ - spring-bootstrap - @project.version@ + org.springframework + spring-context + 3.2.3.RELEASE javax.servlet diff --git a/spring-bootstrap-maven-plugin/src/test/java/org/springframework/bootstrap/maven/Verify.java b/spring-bootstrap-maven-plugin/src/test/java/org/springframework/bootstrap/maven/Verify.java index 8d77cddb9d..ca3c33a4e7 100644 --- a/spring-bootstrap-maven-plugin/src/test/java/org/springframework/bootstrap/maven/Verify.java +++ b/spring-bootstrap-maven-plugin/src/test/java/org/springframework/bootstrap/maven/Verify.java @@ -24,9 +24,6 @@ import java.util.jar.Manifest; import java.util.zip.ZipEntry; 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.assertTrue; @@ -110,7 +107,7 @@ public class Verify { protected void verifyZipEntries(ZipFile zipFile, Map entries) throws Exception { super.verifyZipEntries(zipFile, entries); - assertHasEntryNameStartingWith(entries, "lib/spring-bootstrap"); + assertHasEntryNameStartingWith(entries, "lib/spring-context"); assertHasEntryNameStartingWith(entries, "lib/spring-core"); assertHasEntryNameStartingWith(entries, "lib/javax.servlet-api-3.0.1.jar"); assertTrue("Unpacked launcher classes", entries.containsKey("org/" @@ -121,8 +118,8 @@ public class Verify { @Override protected void verifyManifest(Manifest manifest) throws Exception { - assertEquals(JarLauncher.class.getName(), manifest.getMainAttributes() - .getValue("Main-Class")); + assertEquals("org.springframework.bootstrap.launcher.JarLauncher", manifest + .getMainAttributes().getValue("Main-Class")); assertEquals("org.test.SampleApplication", manifest.getMainAttributes() .getValue("Start-Class")); } @@ -138,7 +135,7 @@ public class Verify { protected void verifyZipEntries(ZipFile zipFile, Map entries) throws Exception { 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-provided/javax.servlet-api-3.0.1.jar"); @@ -151,8 +148,8 @@ public class Verify { @Override protected void verifyManifest(Manifest manifest) throws Exception { - assertEquals(WarLauncher.class.getName(), manifest.getMainAttributes() - .getValue("Main-Class")); + assertEquals("org.springframework.bootstrap.launcher.WarLauncher", manifest + .getMainAttributes().getValue("Main-Class")); assertEquals("org.test.SampleApplication", manifest.getMainAttributes() .getValue("Start-Class")); } diff --git a/spring-bootstrap-samples/spring-bootstrap-trad-sample/.gitignore b/spring-bootstrap-samples/spring-bootstrap-trad-sample/.gitignore new file mode 100644 index 0000000000..ea8c4bf7f3 --- /dev/null +++ b/spring-bootstrap-samples/spring-bootstrap-trad-sample/.gitignore @@ -0,0 +1 @@ +/target