Am 2021-12-29 um 09:16 schrieb Maarten Mulders:
Hi Michael e.a.,

Can confirm, I'm seeing the same. The first error (URL contains an expression but should be a constant) is completely unfamiliar to me. I worked around it in a similar way as part of your patch, but I don't know what caused it or what should be the eventual solution.

This is caused by https://issues.apache.org/jira/browse/MNG-7047 and corect. I am confused why it did not surface earlier. I guess the previous MAVENCODEBASE used Maven 3.x and 4 internally. I will remove that provide. We have discussed this extensively with Robert before.

After having "fixed" that, there's the failure related to the maven-enforcer-plugin. That one seems to be related to [1], introduced by commit c3962c1a on Maven Core. There's a work-around for that introduced with [3] but the eventual solution would be [4].

HTH,


Maarten

[1] https://issues.apache.org/jira/browse/MNG-7319
[2] https://issues.apache.org/jira/browse/MNG-7329
[3] https://issues.apache.org/jira/browse/MNG-7330

That's it ;-( thanks. Interesting enough now to figure out how to make it work with 3.x and 4.x.


Michael

On 29/12/2021 00:36, Michael Osipov wrote:
Folks,

am I the only one suffering from this?
$ mvn -v
Apache Maven 4.0.0-alpha-1-SNAPSHOT (0a8bd727ac6d184512ce513737bb56bb840d10de)
Maven home: /usr/home/mosipov/apache-maven
Java version: 1.8.0_312, vendor: OpenJDK BSD Porting Team, runtime: /usr/local/openjdk8/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "12.3-stable", arch: "amd64", family: "unix"

mosipov@bsd1srv:~/var/Projekte/mit (master=)
$ git rev-parse --short HEAD
1ce55e0c

exits with
$ ./run-its.sh
[INFO] Scanning for projects...
[INFO] Maven detected that the requested POM file is part of a multi module project, but could not find a pom.xml file in the multi module root directory '/usr/home/mosipov'. [INFO] The reactor is limited to all projects under: /var/mosipov/Projekte/maven-integration-testing [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'profiles.profile[mode-local-offline].repositories.repository.[central].url' contains an expression but should be a constant. @ line 60, column 16

[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.apache.maven.its:core-it-support:2.1-SNAPSHOT (/var/mosipov/Projekte/maven-integration-testing/core-it-support/pom.xml) has 1 error [ERROR] 'profiles.profile[mode-local-offline].repositories.repository.[central].url' contains an expression but should be a constant. @ line 60, column 16
[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

I can only make it run when I apply the following patch: https://gist.github.com/michael-o/ba9f6dd9f9a920748fe09d1795e97029

Can someone confirm?

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org


Reply via email to