Skip to content

[MNG-8629] Model Builder: if POM being built has repo stanza and parent, the repo is used un-interpolated #9682

@jira-importer

Description

@jira-importer

Tamas Cservenak opened MNG-8629 and commented

As MRESOLVER-687 experiment shows, Model Builder when built POM satisfies these:

  • have parent
  • have remote repository with interpolated URL

Then parent is attempted to be loaded with un-interpolated remote repository.

Example:

[ERROR]   ProjectBuilderTest.testLocationTrackingResolution:360->AbstractCoreMavenComponentTestCase.createMavenSession:114->AbstractCoreMavenComponentTestCase.createMavenSession:118->AbstractCoreMavenComponentTestCase.createMavenSession:137 » IllegalArgument Invalid Version Range Request: org.apache.maven.its:parent:pom:0.1 < [remote-repo (file://${basedir}/../../src/test/remote-repo, default, releases+snapshots), central (file:///home/cstamas/Worx/apache-maven/maven/impl/maven-core/src/test/remote-repo/, default, releases+snapshots)] 

This test does exactly this.


Issue Links:

  • MNG-8654 ModelBuilder leak of un-interpolated remote repositories

Remote Links:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions