MavenHelper icon indicating copy to clipboard operation
MavenHelper copied to clipboard

[Feature] Add dependency analyze for BOM project

Open scruel opened this issue 3 years ago • 4 comments

<dependencyManagement>
<dependencies>
  <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-dependencies</artifactId>
      <version>${spring-cloud.version}</version>
      <type>pom</type>
      <scope>import</scope>
  </dependency>

  <!--    other dependencies   -->
...

For now, plugin only support to analyze the dependencies not in dependencyManagement part, so we will not know the potentials conflicts in the BOM until we use it, even you have checked the project before and never change any version of it.

scruel avatar Nov 30 '21 07:11 scruel

IntelliJ needs to support it: https://youtrack.jetbrains.com/issue/IDEA-283716

krasa avatar Dec 01 '21 10:12 krasa

It seems that there are 2 different use cases:

  • analyzing of BOM itself
  • potential conflict analyzing between dependencies and dependencyManagement with imported BOM

And you want both?

krasa avatar Dec 01 '21 10:12 krasa

I've noticed this too, and like a solution for it. For larger projects we always do version management via dependency management. Being able to verify versions and scopes there would be a great feature. Personally I thought it was a bug that it didn't show, but appearantly the feature doesn't exist yet.

barbetb avatar Dec 28 '21 17:12 barbetb

Another related problem: tracing version conflicts between two imported BOMs, as in the sample project attached to this issue: https://github.com/Netflix/dgs-framework/issues/1269

In a non-trivial project, working out where the conflict (old version) is coming from can be very difficult.

seanf avatar Oct 12 '22 14:10 seanf