[
https://issues.apache.org/jira/browse/MNG-7987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799420#comment-17799420
]
Niels Basjes commented on MNG-7987:
-----------------------------------
For completeness: Same error even if it is an explicit property that really
exists.
{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>
<properties>
<someProp>something</someProp>
</properties>
<repositories>
<repository>
<id>localReproduceRepo</id>
<url>file://${someProp}/__tmp_deploy/</url>
</repository>
</repositories>
</project>
{code}
> 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)