Hello! Faced an issue on a one of the projects I'm working on:  
Running `mvn dependency:analyze-only` can result in : 

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only 
(default-cli) on project hub-registration-service: Execution default-cli of 
goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only 
failed: Unsupported class file major version 55 -> [Help 1]
[ERROR]

The first suspicion was that the reason is not the latest ASM - so added it as 
plugin dependency: 

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

But then got another error message : 

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only 
(default-cli) on project hub-registration-service: Execution default-cli of 
goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only 
failed: This feature requires ASM7

After some investigations discovered that was used obsolete version of 
dependency-analyzer and after explicitly using 
`maven-dependency-analyzer:1.11.1` (which uses ASM7 with correct protocol) 
everything works fine.

Could you please upgrade `maven-dependency-plugin` with latest 
`maven-dependency-analyzer` so plugin can be used with JDK 11 without those 
tricks? Thanks!


Reply via email to