Skip to content
Advertisement

Error: log4j-api-2.9.0.jar is a multi-release jar file but –multi-release option is not set

Exploring the maven-jdeps-plugin:3.1.0 with Java9 using the following minimal pom.xml:-

JavaScript

On executing

JavaScript

I end up getting a detailed error that reads the following:-

JavaScript

I couldn’t find much relevance related to --multi-release flag in either jdeps:jdkinternals goal detailed on Maven’s official site or even in the jdeps tool documented at Oracle help center.

Can someone throw some light on this implementation in maven-jdeps-plugin? Is there a way to fix this(set the --multi-release option)?

Advertisement

Answer

This is user error. Please enter jdeps -? on the command line. You will see you need to enter

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement