[ 
https://issues.apache.org/jira/browse/MDEP-439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934643#comment-15934643
 ] 

Vladimir Dergachev edited comment on MDEP-439 at 3/22/17 11:11 AM:
-------------------------------------------------------------------

Sorry, ignore my message, i created a new issue here 
https://issues.apache.org/jira/browse/MDEP-560



was (Author: vladimir.dergachev):
Hey, guys, looks like a problem still exists. 
I created example for commons-lang library 
https://gist.github.com/vdergachev/3dd0908ec0301b1e0357005e669cc726
My applications contains few modules, in parent pom.xml i have regular entry

<properties>
        <java.version>1.8</java.version>
<properties>
<dependencyManagement>
        <dependencies>
        ....
        <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>2.6</version>
        </dependency>
        ...
        </dependencies>
</dependencyManagement>

in module's pom ONLY spring deps, so i don't have commons-lang library in 
module dependencies, but test runs fine. As you can see I passed reference 
StringUtils::isEmpty as a parameter to method. When part 2 uncommented and 
method StringUtils.isEmpty called directly in code i will have correct error 
message from maven-dependency-plugin

[INFO] --- maven-dependency-plugin:3.0.0:analyze-only (analyze-dependencies) @ 
zoo-dispatcher-service ---
[WARNING] Used undeclared dependencies found:
[WARNING]    commons-lang:commons-lang:jar:2.6:compile

Thanks


> maven-dependency-plugin not compatible with Java 8
> --------------------------------------------------
>
>                 Key: MDEP-439
>                 URL: https://issues.apache.org/jira/browse/MDEP-439
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>    Affects Versions: 2.8
>         Environment: Java 8
>            Reporter: Steven Schlansker
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Critical
>             Fix For: 2.9
>
>
> maven-dependency-plugin uses asm 3.x, which is not compatible with Java 8 
> (throws ArrayIndexOutOfBoundsException)
> This seriously hinders the use of Maven with Java 8, which is now the 
> "production" version of Java.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to