diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-artifact/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-artifact/pom.xml
index 9397de6734f..b8f24f81d5b 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-artifact/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-artifact/pom.xml
@@ -43,12 +43,12 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-entry/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-entry/pom.xml
index 2b790adec92..f4b86dcd606 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-entry/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-entry/pom.xml
@@ -48,12 +48,12 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-group/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-group/pom.xml
index ca2c0db1a78..eee4f1c4a30 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-group/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-group/pom.xml
@@ -43,12 +43,12 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/acme-lib/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/acme-lib/pom.xml
index 1959bcb58df..5870c43bc3a 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/acme-lib/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/acme-lib/pom.xml
@@ -14,7 +14,7 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/test-project/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/test-project/pom.xml
index d15c97663be..15f46aa695a 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/test-project/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/test-project/pom.xml
@@ -51,7 +51,7 @@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-pom/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-pom/pom.xml
index bf33933101f..a8242ceb287 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-pom/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-pom/pom.xml
@@ -29,12 +29,12 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-test-scope/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-test-scope/pom.xml
index fee741d0346..994945fae53 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-test-scope/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-test-scope/pom.xml
@@ -43,18 +43,18 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
log4j
log4j
- 1.2.17
+ @log4j.version@
test
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/pom.xml
index ae5eeffbb83..3349f7ecd0b 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/pom.xml
@@ -48,18 +48,18 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
log4j
log4j
- 1.2.17
+ @log4j.version@
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/verify.groovy b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/verify.groovy
index 9abbeb593d7..92467653125 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/verify.groovy
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/verify.groovy
@@ -22,7 +22,7 @@ new Verify.JarArchiveVerification(f, Verify.SAMPLE_APP) {
@Override
protected void verifyZipEntries(Verify.ArchiveVerifier verifier) throws Exception {
super.verifyZipEntries(verifier)
- verifier.hasUnpackEntry("lib/spring-core-4.0.5.RELEASE.jar")
- verifier.hasNonUnpackEntry("lib/spring-context-4.0.5.RELEASE.jar")
+ verifier.hasUnpackEntry("lib/spring-core-")
+ verifier.hasNonUnpackEntry("lib/spring-context-")
}
}.verify();
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar/pom.xml
index e9208df9d75..c93303bea9d 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/jar/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/jar/pom.xml
@@ -43,12 +43,12 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/prop/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/prop/pom.xml
index b170f2e04e3..adbc252cb79 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/prop/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/prop/pom.xml
@@ -43,12 +43,12 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/run-exclude/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/run-exclude/pom.xml
index f48531ad0cc..62394bd0e54 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/run-exclude/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/run-exclude/pom.xml
@@ -38,12 +38,12 @@
log4j
log4j
- 1.2.17
+ @log4j.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/it/war/pom.xml b/spring-boot-tools/spring-boot-maven-plugin/src/it/war/pom.xml
index de38c51db73..9ebafb04ead 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/it/war/pom.xml
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/it/war/pom.xml
@@ -42,12 +42,12 @@
org.springframework
spring-context
- 4.0.5.RELEASE
+ @spring.version@
javax.servlet
javax.servlet-api
- 3.0.1
+ @servlet-api.version@
provided
diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/Verify.java b/spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/Verify.java
index eb6c888bbcf..40bfc645663 100644
--- a/spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/Verify.java
+++ b/spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/Verify.java
@@ -87,15 +87,25 @@ public class Verify {
}
}
- public boolean hasNonUnpackEntry(String entry) {
- return !hasUnpackEntry(entry);
+ public boolean hasNonUnpackEntry(String entryName) {
+ return !hasUnpackEntry(entryName);
}
- public boolean hasUnpackEntry(String entry) {
- String comment = this.content.get(entry).getComment();
+ public boolean hasUnpackEntry(String entryName) {
+ String comment = getEntryStartingWith(entryName).getComment();
return comment != null && comment.startsWith("UNPACK:");
}
+ private ZipEntry getEntryStartingWith(String entryName) {
+ for (Map.Entry entry : this.content.entrySet()) {
+ if (entry.getKey().startsWith(entryName)) {
+ return entry.getValue();
+ }
+ }
+ throw new IllegalStateException("Unable to find entry starting with "
+ + entryName);
+ }
+
public boolean hasEntry(String entry) {
return this.content.containsKey(entry);
}