From 75872ef164774e5487e185ca7309e756b2e582a7 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Mon, 15 Apr 2024 23:09:10 +0200 Subject: [PATCH] Fix a bug --- pom.xml | 5 +++++ src/it/MJAR-307/pom.xml | 16 ++-------------- src/it/MJAR-307/verify.groovy | 7 ------- 3 files changed, 7 insertions(+), 21 deletions(-) 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