-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRELEASE-851]: javaHome argument is now honored in InvokerMavenExecutor #182
[MRELEASE-851]: javaHome argument is now honored in InvokerMavenExecutor #182
Conversation
39948df
to
02a37d0
Compare
@olamy Is there a chance to get this quickly merged and released? |
@prof-schnitzel I will check the issue and then the code and let you know. |
yes there is definitely a chance! I was just waited for other folks to review just in case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a slight problem with this PR, this it is correct, it is also incomplete. the actual issue says: "javaHome is ignored and inherited unexpected". So this should apply to both invoker
(InvokerMavenExecutor
) and forked-path
(ForkedMavenExecutor
).
For the ForkedMavenExecutor
the JAVA_HOME
env var isn't set.
Please make it consistent.
WDYT?
@michael-o Yes, you are right. I never use |
...-release-manager/src/main/java/org/apache/maven/shared/release/exec/ForkedMavenExecutor.java
Show resolved
Hide resolved
@prof-schnitzel , I have another problem, maybe you can share your opinion: The mojo parameters use |
@michael-o Thats correct. ${java.home} is a dynamic property showing you which JRE is running your maven build and is not necessarily the same as ${env.JAVA_HOME}. I would suggest to change the documentation not to mention JAVA_HOME. |
de37a41
to
f96c6bc
Compare
@michael-o Do you have any idea when this will be released? |
Not before May. I am waiting for fixes from @slawekjaranowski . |
Which one? |
Maven Shared Utils with the StreamFeeder/Pumper. |
Was done apache/maven-shared-utils#113 |
Now we need a patch release of m-s-utils? |
I don't know why this bug does not get fixed. The documentation clearly says that you can use the argument
-DjavaHome=
to set the path to your jdk, but this parameter is not used anywhere in the code, thereby completely ignored. This is a huge pain for people who are using CI/CD servers (for example jenkins) with multiple jdks installed. In that case the release plugin is not usable.So I adjusted the InvokerMavenExecutor so that it honors the
javaHome
argument.