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
When using the NonDex tool on several projects, I faced the error below from time to time
[WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1.
[ERROR] Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Moreover, I found that if I replaced @{argLine} with ${argLine} in pom.xml, the error was resolved
I think the problem is caused by the time when property replacement occurs. I found a FAQ that might related to the root cause, and I quoted and linked it below.
Maven does property replacement for
${...}
values in pom.xml before any plugin is run. So Surefire would never see the place-holders in its argLine property.
Since the Version 2.17 using an alternate syntax for these properties,
@{...}
allows late replacement of properties when the plugin is executed, so properties that have been modified by other plugins will be picked up correctly.
Description
When using the NonDex tool on several projects, I faced the error below from time to time
Moreover, I found that if I replaced
@{argLine}
with${argLine}
inpom.xml
, the error was resolvedReproduce step
mvn -pl . edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dtest=com.hubspot.jinjava.EagerTest#itHandlesImportInDeferredIf
Possible Root cause
I think the problem is caused by the time when property replacement occurs. I found a FAQ that might related to the root cause, and I quoted and linked it below.
from https://maven.apache.org/surefire/maven-surefire-plugin/faq.html#late-property-evaluation
FYI, in the example of jinjava, the first bad commit is 0e167de44a3bab111c62b49e1b8304d09e4903b5.
<argLine>@{argLine} ${basepom.test.add.opens}</argLine>
has been added to thepom.xml
The text was updated successfully, but these errors were encountered: