Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352953

Summary: Invoke plugin doesnt retrieve JAVA_HOME classpath variable when invoked by m2e external maven
Product: z_Archived Reporter: Philippe Bastiani <philippe.bastiani>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: igor, philippe.bastiani
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Philippe Bastiani CLA 2011-07-24 11:33:29 EDT
Build Identifier: 20110615-0604

M2E: 1.0.0.20110607-2117

The goal 'maven-invoker-plugin:1.5:run (generate-projects)' requires the JAVA_HOME variable to be executed.

To reply to this requirement, the JAVA_HOME variable can be settled via the Preferences of Eclipse.

The setting of this classpath variable is not enough: the execution with the external configuration of Maven fails...

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

Reproducible: Always
Comment 1 Igor Fedorenko CLA 2013-09-28 23:52:20 EDT
closing old/stale bugreports
Comment 2 Denis Roy CLA 2021-04-19 13:25:18 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/