-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maven.multiModuleProjectDirectory is missing in DefaultSettingsBuildingRequest.getSystemProperties() #1031
Comments
See related issues and discussions: https://issues.apache.org/jira/browse/MNG-6589 TL;DR: the mentioned property is NOT for public consumption. Moreover, as mvnd 1.0.0 (which version is affected?) is Maven 3.9.8 based, the issue https://issues.apache.org/jira/browse/MNG-7038 does NOT applies as it is Maven4. |
only affect mvnd 1.0.0. Now mvnd 1.x is based on maven-3. How can we get or calculate the value of maven.multiModuleProjectDirectory for both mvnd 1.x and maven 3.x? |
You could pass it like this: https://github.com/cstamas/rrf-demo/blob/master/.mvn/maven.config#L2 Explanation: the used property is not a public property, should not be used (is an implementation detail). The new thing in Maven 3.9.x was Maven4 makes this new property accessible in settings (like Maven 3.9.x) but also as properties (unlike Maven 3.9). |
thanks! Tested on 3.9.8, |
I also run into the issue that I don't understand how to apply this proposed solution. Creating a I was able to work around it by passing it directly:
This is not a nice experience though. Especially, since I generally work in a subfolder somwhere ( |
@korthout from 3.9.2, when call with But now maven 3.9.8 included by mvnd 1.0.0 has a bug (apache/maven#1589) of not correctly dealing with |
mvnd 1.0.1 is not compatible with our build due to: apache/maven-mvnd#1031
# Conflicts: # daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java # integration-tests/src/test/java/org/mvndaemon/mvnd/it/MavenConfNativeIT.java
An EventSpy watching SettingsBuildingResult event, cannot get the multiModuleProjectDirectory from system properties.
The text was updated successfully, but these errors were encountered: