mwalter / MavenDependencyChecker

The plugin for the IntelliJ IDE checks if there are any new Maven project dependencies available and if so, shows all dependencies which can be updated.
https://plugins.jetbrains.com/plugin/18525-maven-dependency-checker
5 stars 5 forks source link

Crash when a dependency is referenced via a variable #2

Closed uap-universe closed 2 years ago

uap-universe commented 2 years ago

If a pom.xml contains an inter-project dependency like this

<dependency>
    <groupId>${project.groupId}</groupId>
    <artifactId>something</artifactId>
    <version>${project.version}</version>
</dependency>

The plugin crashes when executing, because it does not resolve the groupId when starting the query.

So something like this

https://github.com/mwalter/MavenDependencyChecker/blob/e4a55908c093146c1d500eecd864b9e7c9533c1b/src/main/java/ch/newinstance/plugin/mavendependencychecker/parser/DependencyParser.java#L75-L79

should also be done for the groupId.