Skip to content

[MRELEASE-851] javaHome parameter is ignored and inherited unexpectedly #1077

@jira-importer

Description

@jira-importer

Bernd Eckenfels opened MRELEASE-851 and commented

The release: mojos have a configuration <javaHome> which defaults to ${java.home}. From reading the documentation it seems like this is used to propagate the JAVA version of the parent process to the invoked build of prepare and perform. This inheritance is important in order to properly support compiles. The documentation does not mention that the option is ignored.

The following proposed patch might be able to solve the problem by setting the JAVA_HOME variable as documented. This also helps some situations where CI servers not reliable replicate builds.

The patch does not include it, but most likely it should also be noted that MAVEN_SKIP_RC=true should be added to the child's env.

#5


Affects: 2.4.1

Remote Links:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions