[
https://issues.apache.org/jira/browse/AXIS2-5779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15325983#comment-15325983
]
Hudson commented on AXIS2-5779:
-------------------------------
SUCCESS: Integrated in Axis2 #3560 (See
[https://builds.apache.org/job/Axis2/3560/])
AXIS2-5779: Ensure that maven-invoker-plugin uses the same JDK as the 'outer'
Maven session even if the latter is executed by an IDE. (veithen: rev 1747920)
* axis2/pom.xml
> 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.7.3, 1.8.0
>
>
> 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]