[
https://issues.apache.org/jira/browse/MNG-7987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799422#comment-17799422
]
Niels Basjes commented on MNG-7987:
-----------------------------------
I just found that there is a test that ensures this effect in exactly this
scenario.
[https://github.com/apache/maven/blob/437f34f8dcc2cd46e64076d4c1c03f5339d2a331/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java#L809]
[https://github.com/apache/maven/blob/437f34f8dcc2cd46e64076d4c1c03f5339d2a331/maven-model-builder/src/test/resources/poms/validation/raw-model/repository-with-expression.xml#L42]
https://issues.apache.org/jira/browse/MNG-7047
https://issues.apache.org/jira/browse/MNG-7420 --> Clearly states this is an
intentional change.
Sorry, my bad. Please close this as wont fix.
> Regression: Some fields no longer accept an expression.
> -------------------------------------------------------
>
> Key: MNG-7987
> URL: https://issues.apache.org/jira/browse/MNG-7987
> Project: Maven
> Issue Type: Bug
> Components: POM
> Affects Versions: 4.0.0-alpha-10
> Reporter: Niels Basjes
> Priority: Major
>
> Put the following minimal pom.xml in an empty directory
> {code:xml}
> <?xml version="1.0"?>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>nl.basjes.bugreport.maven</groupId>
> <artifactId>properties-problem</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <repositories>
> <repository>
> <id>localReproduceRepo</id>
> <!--suppress UnresolvedMavenProperty -->
> <url>file://${maven.multiModuleProjectDirectory}/__tmp_deploy/</url>
> </repository>
> </repositories>
> </project>
> {code}
> When I then do {{mvn clean}} with Maven 3.9.6 I get {{BUILD SUCCESS}}.
> With Maven 4.0.0-M10 I get this instead:
> {code}
> [ERROR] Some problems were encountered while processing the POMs
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR] The project
> nl.basjes.bugreport.maven:properties-problem:0.0.1-SNAPSHOT
> (/home/nbasjes/.../pom.xml) has 1 error
> [ERROR] 'repositories.repository.[localReproduceRepo].url' contains an
> expression but should be a constant. @ line 12, column 7
> [ERROR]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)