[ https://issues.apache.org/jira/browse/MNG-7046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17777712#comment-17777712 ]
Guillaume Nodet edited comment on MNG-7046 at 10/20/23 11:31 AM: ----------------------------------------------------------------- With master we have the following: {code} [INFO] Scanning for projects... [ERROR] Some problems were encountered while processing the POMs [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.ming:maven-failing-import-pom-example:1.0.0-SNAPSHOT (/Users/gnodet/Downloads/pom-4.xml) has 1 error [ERROR] 'profiles.profile[repo-will-fail].repositories.repository.[spring-milestones].url' contains an expression but should be a constant. @ line 39, column 21 [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 {code} which was introduced by https://issues.apache.org/jira/browse/MNG-7047 was (Author: gnt): With master we have the following: {code} [INFO] Scanning for projects... [ERROR] Some problems were encountered while processing the POMs [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.ming:maven-failing-import-pom-example:1.0.0-SNAPSHOT (/Users/gnodet/Downloads/pom-4.xml) has 1 error [ERROR] 'profiles.profile[repo-will-fail].repositories.repository.[spring-milestones].url' contains an expression but should be a constant. @ line 39, column 21 [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 {code} > Revert MNG-5639 and make repo config static only (no ${param} interpolation) > ---------------------------------------------------------------------------- > > Key: MNG-7046 > URL: https://issues.apache.org/jira/browse/MNG-7046 > Project: Maven > Issue Type: Task > Components: Artifacts and Repositories, Dependencies > Affects Versions: 3.6.3 > Reporter: Michael Osipov > Priority: Major > > As discussed in MNG-5639 repositories should always be known upfront, they > have to be static to avoid chicken and egg situations, a project should not > influence settings. It should be the way around. > In subsequent ticket it will be verified that repo configuration does not > contain any expression: > https://github.com/apache/maven/commit/d411c3fa98832e7d86d901fe86ff63ba907cf868#commitcomment-44782281. -- This message was sent by Atlassian Jira (v8.20.10#820010)