[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-user
Subject:    Problems with dependency-plugin + Mockito + Java 11
From:       Andrew Todd <at () auspicacious ! org>
Date:       2019-01-15 13:08:42
Message-ID: CADYFMnskkvC_99N4nj0+WGRX6mrqRqYPULb9_8GTPWzh_LjQGA () mail ! gmail ! com
[Download RAW message or body]


Hi,

I'm wondering if anyone else has found a solution to this problem. I use
the maven-dependency-plugin's analyze-only goal to look issues in my
dependency tree.

https://maven.apache.org/plugins/maven-dependency-plugin/analyze-only-mojo.html

When I started using Java 11, I had to override the plugin's ASM dependency
so that it would continue to work:

            <dependency>
              <groupId>org.ow2.asm</groupId>
              <artifactId>asm</artifactId>
              <version>7.0</version>
            </dependency>

And everything did work, until I started using Mockito in my unit tests. As
soon as I add calls to Mockito, I get the following error message:

Execution dependency-plugin of goal
org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only failed:
This feature requires ASM7

Of course, I'm already using ASM7.

I've tried setting <ignoreNonCompile>true</ignoreNonCompile> to see if I
can skip analysis of the test classes, but this doesn't seem to work.


Thanks,
Andrew Todd


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic