diff --git a/pom.xml b/pom.xml index 8b55c97..bbb9847 100644 --- a/pom.xml +++ b/pom.xml @@ -88,6 +88,11 @@ pom import + + commons-io + commons-io + 2.16.1 + diff --git a/src/it/MJAR-307/pom.xml b/src/it/MJAR-307/pom.xml index ec779e3..d0c36ed 100644 --- a/src/it/MJAR-307/pom.xml +++ b/src/it/MJAR-307/pom.xml @@ -27,9 +27,9 @@ under the License. 1.0 it-mjar-307 + Wrong version of commons-io cause a ClassNotFoundException: org.apache.commons.io.file.attribute.FileTimes + - 123 - sealed yyyyMMdd ${maven.build.timestamp} @@ -40,18 +40,6 @@ under the License. org.apache.maven.plugins maven-jar-plugin @project.version@ - - - true - - true - - - ${build.number} - ${build.sealed} - - - diff --git a/src/it/MJAR-307/verify.groovy b/src/it/MJAR-307/verify.groovy index 8629f97..d75e626 100644 --- a/src/it/MJAR-307/verify.groovy +++ b/src/it/MJAR-307/verify.groovy @@ -23,10 +23,3 @@ def target = new File( basedir, "target" ); def jarFile = new File( target, "mjar-307-1.0.jar" ); assert jarFile.exists() - -def jar = new JarFile(jarFile) -assert jar.getEntry("META-INF/INDEX.LIST") != null - -def manifest = jar.getManifest().getMainAttributes() -assert manifest.getValue("Implementation-Build") == "123" -assert manifest.getValue("Sealed") == "sealed" \ No newline at end of file