Plugin fails with "Illegal character in path" if sub-module references ${project.groupId}
Version 2.7 Maven 3.6.0
Repro steps:
- Extract testcase
- Run "mvn versions:display-dependency-updates versions:display-plugin-updates versions:display-property-updates"
- Plugin will fail with:
[ERROR] Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.7:display-plugin-updates (default-cli) on project submodule: Execution default-cli of goal org.codehaus.mojo:versions-maven-plugin:2.7:display-plugin-updates failed: Illegal character in path at index 38: https://repo.maven.apache.org/maven2/${project/groupId}/test/maven-metadata.xml -> [Help 1]
- Notice that
~/.m2/${project/groupId}/testis created
Expected behavior:
${project.groupId}should result totestcase- Repository directory should not be created
I have the same problem, with a similar set-up (using a plugin with <groupId>${project.groupId}</groupId>, because the plugin uses the same versioning system as the parent POM and the other submodules). It seems that property-replacement is not performed in this case.
Cannot reproduce anymore. I guess this must have been fixed. I suggest to close this. @slachiewicz
@ajarmoniuk What (released) versions did you test this against?
2.12.0, but now also tried with 2.7.0 and didn't see the error either. Could you please retest and attach the output with the -X switch?
Btw, you don't need to run display-dependency-updates or display-property updates if they're not the ones that are failing.