[infinispan-issues] [JBoss JIRA] (ISPN-12017) Set java8.home property to java8-test profile

Diego Lovison (Jira) issues at jboss.org
Wed Jun 17 15:03:59 EDT 2020


     [ https://issues.redhat.com/browse/ISPN-12017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Diego Lovison updated ISPN-12017:
---------------------------------
    Summary: Set java8.home property to java8-test profile  (was: Surefire plugin is not able to read the JAVA8_HOME environment variable)


> Set java8.home property to java8-test profile
> ---------------------------------------------
>
>                 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
>            Assignee: Diego Lovison
>            Priority: Critical
>
> 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