Closed mches closed 5 months ago
Interesting, thanks for the PR! I'll get access to a windows computer next week and then I can have a look how this occurs.
This note makes surefire.useManifestOnlyJar=false
sound like the preferable option.
Hi! I tried compiling master on two different drives but was not able to reproduce the original problem. I also read up a little on the link you sent me. It seems that this is setting could be used if you have specific problems with the build. The setting might give you other problems though (that is why it isn't set by default). I'm a bit hesitant to put this in at the moment. I'll keep the PR for the future, though. Thanks for the contribution!
One of the interesting nuances of this error is that there is no indication in the console log and no interruption to the build. Thanks for checking into it. There are simple workarounds, so no worries.
Workarounds:
-Dsurefire.useManifestOnlyJar=false
as a Maven command-line argument, or add the same property to an active-by-default profile within settings.xml
CLASSPATH
environment variable instead of a manifest-only JAR, which has no restriction on absolute paths and no practical length limitations on modern Windows (Reference: https://issues.apache.org/jira/browse/SUREFIRE-727)E:
drive, add -Dmaven.repo.local=E:\.m2\repository
as a command-line argument, or set <localRepository/>
within settings.xml
On Windows, if the Git repo and Maven local repo are on different drives such as E: and C: respectively, then there are errors from the Surefire plugin. This PR addresses that, if you're interested.
E:\...\sortpom\maven-plugin\target\surefire-reports\2024-04-13T11-42-35_408.dumpstream:
E:\...\sortpom\sorter\target\surefire-reports\2024-04-13T11-42-35_408.dumpstream:
Note that the error messages are right but the hinted argLine does not help.