jira-importer commented on issue #50: URL: https://github.com/apache/maven-jdeps-plugin/issues/50#issuecomment-2955089235
**[Michael Schnell](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-schnell)** commented After hours of comparing the Maven output, I found that in my case the cause was simply a too old JDK version. I suggest to close this issue as "SOLVED". --- In case someone arrives here searching for the same problem: **JDK 11 from 2018-09-25 fails** ```java openjdk 11 2018-09-25 OpenJDK Runtime Environment AdoptOpenJDK (build 11+28) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11+28, mixed mode) ``` The call with "--multi-release base" made by the plugin ```java ${JAVA_HOME}/bin/jdeps -cp ${MVN_REPO}/org/jboss/jandex/2.1.2.Final/jandex-2.1.2.Final.jar:${MVN_REPO}/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar:${MVN_REPO}/jakarta/activation/jakarta.activation-api/1.2.1/jakarta.activation-api-1.2.1.jar --multi-release base ${PRJ_DIR}/target/classes ``` fails with error message ```java jandex-2.1.2.Final.jar is not a multi-release jar file but --multi-release option is set ``` The call without "--multi-release" made by the plugin ```java ${JAVA_HOME}/bin/jdeps -cp ${MVN_REPO}/org/jboss/jandex/2.1.2.Final/jandex-2.1.2.Final.jar:${MVN_REPO}/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar:${MVN_REPO}/jakarta/activation/jakarta.activation-api/1.2.1/jakarta.activation-api-1.2.1.jar base ${PRJ_DIR}/target/classes ``` fails with error message ```java arning: Path does not exist: base Error: jakarta.xml.bind-api-2.3.2.jar is a multi-release jar file but --multi-release option is not set ``` **JDK 11 from 2019-10-15 works fine** ```java openjdk 11.0.5 2019-10-15 OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04) OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed mode, sharing) ``` So the solution was simply to use a more recent version on the build server. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
