You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by João Fernandes <JC...@hotmail.com> on 2021/06/21 15:09:04 UTC

Maven Dependency Plugin not working with JDK 17

Hi,
Did anyone tried the most recent version of Maven Dependency Plugin 3.2.0 with JDK 17? I'm getting the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.2.0:analyze-only (enforce) on project my-project: Execution enforce of goal org.apache.maven.plugins:maven-dependency-plugin:3.2.0:analyze-only failed: PermittedSubclasses requires ASM9

But it supposedly already brings ASM 9.1, and I event tried to force it but the error continues:

<plugin>

    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <version>3.2.0</version>
    <dependencies>
        <dependency>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm</artifactId>
            <version>9.1</version>
        </dependency>
    </dependencies>
</plugin>