Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-851

javaHome is ignored and inherited unexpected

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: None

      Description

      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.

      https://github.com/apache/maven-release/pull/5

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                b.eckenfels Bernd Eckenfels
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: