Skip to content

variables used for distributionManagement from settings.xml no longer work in 4.0.0-rc-5 #11503

@sellersj

Description

@sellersj

Affected version

4.0.0-rc-5

Bug description

For years we've had variables for where artifacts should deploy contained in the settings.xml file. Has worked until rc-5. It worked in rc-4.

Sample command that shows the issue is just the help:effective-pom
~/Downloads/apache-maven-4.0.0-rc-5/bin/mvn -V -s settings.xml help:effective-pom

Attached are an example pom and settings that shows it. TOOLS_HOST is an env variable that's properly set. For the test you can set it to something like "example.com"

[ERROR] Some problems were encountered while processing the POMs
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.example:Zminimal:0.0.1-SNAPSHOT (/mnt/c/users/sellersj/git/zminimal/pom.xml) has 4 errors
[ERROR]     'distributionManagement.repository.[${distributionManagement-internal-released-id}].id' contains an uninterpolated expression. @ line 22, column 7
[ERROR]     'distributionManagement.snapshotRepository.[${distributionManagement-internal-snapshots-id}].id' contains an uninterpolated expression. @ line 26, column 7
[ERROR]     'distributionManagement.repository.[${distributionManagement-internal-released-id}].id' contains an uninterpolated expression. @ line 22, column 7
[ERROR]     'distributionManagement.snapshotRepository.[${distributionManagement-internal-snapshots-id}].id' contains an uninterpolated expression. @ line 26, column 7
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
[ERROR] Re-run Maven using the '-X' switch to enable verbose output
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

pom.xml
settings.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions