[ https://issues.apache.org/jira/browse/MJAR-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Slawomir Jaranowski updated MJAR-307: ------------------------------------- Fix Version/s: 3.4.1 > Commons-io class not found > -------------------------- > > Key: MJAR-307 > URL: https://issues.apache.org/jira/browse/MJAR-307 > Project: Maven JAR Plugin > Issue Type: Bug > Affects Versions: 3.4.0 > Reporter: Delany > Assignee: Slawomir Jaranowski > Priority: Critical > Fix For: 3.4.1 > > > With Maven 3.9.6 and upgrading from plugin version 3.3.0 I now get this error: > {noformat} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-jar-plugin:3.4.0:jar (default-jar) on project > comet: > Execution default-jar of goal > org.apache.maven.plugins:maven-jar-plugin:3.4.0:jar > failed: A required class was missing while executing > org.apache.maven.plugins:maven-jar-plugin:3.4.0:jar: > org/apache/commons/io/file/attribute/FileTimes > [ERROR] ----------------------------------------------------- > > [ERROR] realm = plugin>org.apache.maven.plugins:maven-jar-plugin:3.4.0 > [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > > > > [ERROR] urls[0] = > [file:/home/sol/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/3.4.0/maven-jar-plugin-3.4.0.jar|file:///home/sol/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/3.4.0/maven-jar-plugin-3.4.0.jar] > [ERROR] urls[1] = > [file:/home/sol/.m2/repository/org/apache/maven/shared/file-management/3.1.0/file-management-3.1.0.jar|file:///home/sol/.m2/repository/org/apache/maven/shared/file-management/3.1.0/file-management-3.1.0.jar] > [ERROR] urls[2] = > [file:/home/sol/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar|file:///home/sol/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar] > [ERROR] urls[3] = > [file:/home/sol/.m2/repository/org/apache/maven/maven-archiver/3.6.2/maven-archiver-3.6.2.jar|file:///home/sol/.m2/repository/org/apache/maven/maven-archiver/3.6.2/maven-archiver-3.6.2.jar] > [ERROR] urls[4] = > [file:/home/sol/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.27/plexus-interpolation-1.27.jar|file:///home/sol/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.27/plexus-interpolation-1.27.jar] > [ERROR] urls[5] = > [file:/home/sol/.m2/repository/org/codehaus/plexus/plexus-utils/4.0.0/plexus-utils-4.0.0.jar|file:///home/sol/.m2/repository/org/codehaus/plexus/plexus-utils/4.0.0/plexus-utils-4.0.0.jar] > [ERROR] urls[6] = > [file:/home/sol/.m2/repository/org/codehaus/plexus/plexus-archiver/4.9.2/plexus-archiver-4.9.2.jar|file:///home/sol/.m2/repository/org/codehaus/plexus/plexus-archiver/4.9.2/plexus-archiver-4.9.2.jar] > [ERROR] urls[7] = > [file:/home/sol/.m2/repository/org/codehaus/plexus/plexus-io/3.4.2/plexus-io-3.4.2.jar|file:///home/sol/.m2/repository/org/codehaus/plexus/plexus-io/3.4.2/plexus-io-3.4.2.jar] > [ERROR] urls[8] = > [file:/home/sol/.m2/repository/org/apache/commons/commons-compress/1.26.1/commons-compress-1.26.1.jar|file:///home/sol/.m2/repository/org/apache/commons/commons-compress/1.26.1/commons-compress-1.26.1.jar] > [ERROR] urls[9] = > [file:/home/sol/.m2/repository/org/apache/commons/commons-lang3/3.14.0/commons-lang3-3.14.0.jar|file:///home/sol/.m2/repository/org/apache/commons/commons-lang3/3.14.0/commons-lang3-3.14.0.jar] > [ERROR] urls[10] = > [file:/home/sol/.m2/repository/commons-codec/commons-codec/1.16.1/commons-codec-1.16.1.jar|file:///home/sol/.m2/repository/commons-codec/commons-codec/1.16.1/commons-codec-1.16.1.jar] > [ERROR] urls[11] = > [file:/home/sol/.m2/repository/org/iq80/snappy/snappy/0.4/snappy-0.4.jar|file:///home/sol/.m2/repository/org/iq80/snappy/snappy/0.4/snappy-0.4.jar] > [ERROR] urls[12] = > [file:/home/sol/.m2/repository/org/tukaani/xz/1.9/xz-1.9.jar|file:///home/sol/.m2/repository/org/tukaani/xz/1.9/xz-1.9.jar] > [ERROR] urls[13] = > [file:/home/sol/.m2/repository/com/github/luben/zstd-jni/1.5.5-11/zstd-jni-1.5.5-11.jar|file:///home/sol/.m2/repository/com/github/luben/zstd-jni/1.5.5-11/zstd-jni-1.5.5-11.jar] > [ERROR] Number of foreign imports: 1 > [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] > {noformat} > not sure if I'm only seeing it because of this configuration > {code:xml} > <configuration> > <archive> > <index>true</index> > <manifest> > > <addDefaultImplementationEntries>true</addDefaultImplementationEntries> > </manifest> > <manifestEntries> > <Implementation-Build>${build.number}</Implementation-Build> > <Sealed>${build.sealed}</Sealed> > </manifestEntries> > </archive> > </configuration> > {code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)