Skip to content

Verifying whether JAVA_HOME is set or not#772

Merged
keith-turner merged 2 commits intoapache:masterfrom
deeyes24:check_java_home
Nov 27, 2018
Merged

Verifying whether JAVA_HOME is set or not#772
keith-turner merged 2 commits intoapache:masterfrom
deeyes24:check_java_home

Conversation

@deeyes24
Copy link
Copy Markdown
Contributor

PATCH: Asserting whether JAVA_HOME is set or not when running "mvn package". When the JAVA_HOME is not set, we are seeing an error that says "bin/javac" not found, "bin/java" not found.
Adding the Assertion that checks for JAVA_HOME is set or not and Errors out with a more intuitive Error Message

Copy link
Copy Markdown
Member

@ctubbsii ctubbsii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good sanity check. Ultimately, though, these scripts shouldn't be assuming anything about the path or environment other than what is satisfied by Maven. It'd be good to eventually convert these to a separate execution of Maven compiler plugin. (Perhaps by using Maven invoker).

@keith-turner keith-turner merged commit def6592 into apache:master Nov 27, 2018
@keith-turner
Copy link
Copy Markdown
Contributor

Thanks for the contribution @deeyes24 . If you would like to be added as a contributor make a PR at https://github.com/apache/accumulo-website/edit/master/pages/people.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants