You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2025/03/18 16:29:00 UTC
[jira] [Updated] (MNG-8629) Model Builder: if POM being built has repo stanza and parent, the repo is used un-interpolated
[ https://issues.apache.org/jira/browse/MNG-8629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tamas Cservenak updated MNG-8629:
---------------------------------
Description:
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:
{noformat}
[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)] {noformat}
This test does exactly this.
> Model Builder: if POM being built has repo stanza and parent, the repo is used un-interpolated
> ----------------------------------------------------------------------------------------------
>
> Key: MNG-8629
> URL: https://issues.apache.org/jira/browse/MNG-8629
> Project: Maven
> Issue Type: Bug
> Reporter: Tamas Cservenak
> Priority: Major
> Fix For: 4.0.0-rc-4
>
>
> 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:
> {noformat}
> [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)] {noformat}
> This test does exactly this.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)