You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a BOM in my dependency management to get all my dependencies versions aligned.
Unfortunately, the property ${os.detected.classifier} is not replaced in such case.
See the following pom.xml (I can't attach an XML file to the issue) for a reproducible test case:
$ mvn test
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for io.netty:netty-resolver-dns-native-macos:jar:${os.detected.classifier} is missing. @ line 27, column 21
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project kr.motd.test:test-os-maven-plugin:0.0.0-SNAPSHOT (/private/tmp/test-os-maven-plugin/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for io.netty:netty-resolver-dns-native-macos:jar:${os.detected.classifier} is missing. @ line 27, 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 full debug logging.
[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
If I replace ${os.detected.classifier} with osx-aarch_64 it works, so the artifact exists.
I digged a bit, and it seems Maven reports this error long before calling the DetectExtension, so that seems a bit complicated to handle this case. But my knowledge of Maven internals is quite light you'll tell me what is your findings on this.
I am using a BOM in my dependency management to get all my dependencies versions aligned.
Unfortunately, the property
${os.detected.classifier}
is not replaced in such case.See the following pom.xml (I can't attach an XML file to the issue) for a reproducible test case:
I get the following error:
If I replace
${os.detected.classifier}
withosx-aarch_64
it works, so the artifact exists.I am using Maven 3.8.6:
The text was updated successfully, but these errors were encountered: