[infinispan-issues] [JBoss JIRA] (ISPN-12017) Surefire plugin is not able to read the JAVA8_HOME environment variable
Diego Lovison (Jira)
issues at jboss.org
Tue Jun 16 15:55:01 EDT 2020
Diego Lovison created ISPN-12017:
------------------------------------
Summary: Surefire plugin is not able to read the JAVA8_HOME environment variable
Key: ISPN-12017
URL: https://issues.redhat.com/browse/ISPN-12017
Project: Infinispan
Issue Type: Bug
Components: Test Suite
Affects Versions: 11.0.0.Final
Reporter: Diego Lovison
The logs say the following:
{noformat}
[DEBUG] Goal: org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
....
<jvm>/Users/dlovison/.sdkman/candidates/java/8/bin/java</jvm>
....
[DEBUG] Goal: org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (java8-test)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
....
<jvm>${java8.home}/bin/java</jvm>{noformat}
and then it failed with
{noformat}
Caused by: org.apache.maven.plugin.MojoFailureException: Given path to java executor does not exist "/Users/dlovison/Documents/GitHub/infinispan/infinispan/${java8.home}/bin/java".
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.getEffectiveJvm (AbstractSurefireMojo.java:2421)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider (AbstractSurefireMojo.java:1191)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (AbstractSurefireMojo.java:1063)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:889)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146){noformat}
It seems like {{$\{env.JAVA8_HOME}}} is translated to {{java8.home}}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list