Jeff Thomas created AXIS2-5779:
----------------------------------
Summary: If JAVA_HOME environment variable not set, Maven module
"distribution" fails in maven-invoker-plugin
Key: AXIS2-5779
URL: https://issues.apache.org/jira/browse/AXIS2-5779
Project: Axis2
Issue Type: Bug
Components: kernel
Affects Versions: 1.7.2
Reporter: Jeff Thomas
Priority: Minor
Fix For: 1.8.0, 1.7.3
If the environment variable "JAVA_HOME" is not set, an error is thrown during
the Maven build of module 'distribution'.
{quote}
ERROR: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the location of
your Java installation
{quote}
This is thrown by the Maven job started by the maven-invoker-plugin.
Here from "modules/distribution/pom.xml":
{code:xml}
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<id>build-maven-samples</id>
<phase>integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<projectsDirectory>${project.build.directory}/axis2-${project.version}/samples</projectsDirectory>
<pomIncludes>
<pomInclude>pom.xml</pomInclude>
</pomIncludes>
<streamLogs>true</streamLogs>
</configuration>
</execution>
</executions>
</plugin>
{code}
This problem can be resolved by adding the following line to the plugin
configuration:
{code:xml}
<javaHome>${java.home}</javaHome>
{code}
This passes the Java installation path of the current pom.xml to the invoked
maven pom.xml.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]