ferstl / depgraph-maven-plugin

A Maven plugin that generates dependency graphs in various formats (DOT, GML, PlantUML, JSON and Text)
Apache License 2.0
561 stars 85 forks source link

Analyze is unable to process all files for some unknown reason #160

Closed ladytaz-rowell closed 2 years ago

ladytaz-rowell commented 2 years ago

As a result, the analyze process does not recognize all the libraries needed, and incorrectly tells you they are not used.

Screen Shot 2022-07-26 at 10 01 40 AM

ferstl commented 2 years ago

Hi @ladytaz-rowell Based on your screenshot, the problem seems to be in the maven-dependency-plugin and not in the depgraph-maven-plugin. Take a look at https://github.com/apache/maven-dependency-plugin to find out how to file bugs for the maven-dependency-plugin. I'm closing this issue for now. If you still think the problem is related to the depgraph-maven-plugin, feel free to reopen this issue and provide some more information about how to reproduce this problem.

Cheers, Stefan

ladytaz-rowell commented 2 years ago

Hey @ferstl, I know this is closed but wanted to let you know that the issue was with class files using lambdas. I am compiling with Java 8 and I believe the maven-dependency-plugin is defaulting to an old version based on the version of the Java. Not sure why it is not choosing a higher version since Java 8 supports lambdas. With that being said, I was able to override the plugin version by adding the plugin to my pom with the latest version and maven started using the newer plugin. This fixed the problem.