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:
Phillip Webb
2013-06-20 17:24:47 -07:00
parent 51f312f77d
commit 56bfa30b2c
5 changed files with 123 additions and 110 deletions

View File

@@ -18,9 +18,9 @@
</build>
<dependencies>
<dependency>
<groupId>@project.groupId@</groupId>
<artifactId>spring-bootstrap</artifactId>
<version>@project.version@</version>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>

View File

@@ -18,9 +18,9 @@
</build>
<dependencies>
<dependency>
<groupId>@project.groupId@</groupId>
<artifactId>spring-bootstrap</artifactId>
<version>@project.version@</version>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>

View File

@@ -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<String, ZipEntry> 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<String, ZipEntry> 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"));
}