Browse Source

Sync up versions used in Maven integration tests

Fixes gh-1797
pull/2035/head
Phillip Webb 12 years ago
parent
commit
3a9d6242ea
  1. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-artifact/pom.xml
  2. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-entry/pom.xml
  3. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-group/pom.xml
  4. 2
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/acme-lib/pom.xml
  5. 2
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/test-project/pom.xml
  6. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-pom/pom.xml
  7. 6
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-test-scope/pom.xml
  8. 6
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/pom.xml
  9. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/verify.groovy
  10. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/jar/pom.xml
  11. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/prop/pom.xml
  12. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/run-exclude/pom.xml
  13. 4
      spring-boot-tools/spring-boot-maven-plugin/src/it/war/pom.xml
  14. 18
      spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/Verify.java

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-artifact/pom.xml

@ -43,12 +43,12 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-entry/pom.xml

@ -48,12 +48,12 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-exclude-group/pom.xml

@ -43,12 +43,12 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

2
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/acme-lib/pom.xml

@ -14,7 +14,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

2
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-lib-name-conflict/test-project/pom.xml

@ -51,7 +51,7 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-pom/pom.xml

@ -29,12 +29,12 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

6
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-test-scope/pom.xml

@ -43,18 +43,18 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>log4j</groupId> <groupId>log4j</groupId>
<artifactId>log4j</artifactId> <artifactId>log4j</artifactId>
<version>1.2.17</version> <version>@log4j.version@</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

6
spring-boot-tools/spring-boot-maven-plugin/src/it/jar-with-unpack/pom.xml

@ -48,18 +48,18 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>log4j</groupId> <groupId>log4j</groupId>
<artifactId>log4j</artifactId> <artifactId>log4j</artifactId>
<version>1.2.17</version> <version>@log4j.version@</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

4
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 @Override
protected void verifyZipEntries(Verify.ArchiveVerifier verifier) throws Exception { protected void verifyZipEntries(Verify.ArchiveVerifier verifier) throws Exception {
super.verifyZipEntries(verifier) super.verifyZipEntries(verifier)
verifier.hasUnpackEntry("lib/spring-core-4.0.5.RELEASE.jar") verifier.hasUnpackEntry("lib/spring-core-")
verifier.hasNonUnpackEntry("lib/spring-context-4.0.5.RELEASE.jar") verifier.hasNonUnpackEntry("lib/spring-context-")
} }
}.verify(); }.verify();

4
spring-boot-tools/spring-boot-maven-plugin/src/it/jar/pom.xml

@ -43,12 +43,12 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/prop/pom.xml

@ -43,12 +43,12 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/run-exclude/pom.xml

@ -38,12 +38,12 @@
<dependency> <dependency>
<groupId>log4j</groupId> <groupId>log4j</groupId>
<artifactId>log4j</artifactId> <artifactId>log4j</artifactId>
<version>1.2.17</version> <version>@log4j.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

4
spring-boot-tools/spring-boot-maven-plugin/src/it/war/pom.xml

@ -42,12 +42,12 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version> <version>@spring.version@</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>@servlet-api.version@</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

18
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) { public boolean hasNonUnpackEntry(String entryName) {
return !hasUnpackEntry(entry); return !hasUnpackEntry(entryName);
} }
public boolean hasUnpackEntry(String entry) { public boolean hasUnpackEntry(String entryName) {
String comment = this.content.get(entry).getComment(); String comment = getEntryStartingWith(entryName).getComment();
return comment != null && comment.startsWith("UNPACK:"); return comment != null && comment.startsWith("UNPACK:");
} }
private ZipEntry getEntryStartingWith(String entryName) {
for (Map.Entry<String, ZipEntry> 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) { public boolean hasEntry(String entry) {
return this.content.containsKey(entry); return this.content.containsKey(entry);
} }

Loading…
Cancel
Save