Skip to content

172 managed dependencies is too many #82

@elharo

Description

@elharo

Our code reports that com.google.cloud:google-cloud-bom:0.61.0-alpha has 172 managed dependencies:

  @Test
  public void tesReadBom() throws ArtifactDescriptorException {
    Artifact artifact = new DefaultArtifact("com.google.cloud:google-cloud-bom:0.61.0-alpha");
    List<Artifact> managedDependencies = RepositoryUtility.readBom(artifact);
    // Characterization test. As long as the artifact doesn't change (and it shouldn't)
    // the answer won't change.
    Assert.assertEquals(172, managedDependencies.size());
  }

I don't buy it. That's far too many. Most likely there's something we don't understand here. I'm not sure where the misunderstanding lies: in how a managedDependencies section is interpreted in Maven pom.xml? What Aether's ArtifactDescriptorResult.getManagedDependencies() method is reporting? Something else?

There's something fishy here.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions