Skip to content

Commit

Permalink
Document how to confirm Maven uses the right Java
Browse files Browse the repository at this point in the history
Issues #375 and #385 were closed as, essentially, pilot error
(running Maven on a different version of Java than intended),
but it would probably help to document that mvn --version does
report the Java version Maven is using, so that can be easily
checked.
  • Loading branch information
jcflack committed Apr 11, 2024
1 parent 8992155 commit dd81b16
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/site/markdown/build/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ There is a "troubleshooting the build" section at the end of this page.

mvn --version

succeeds.
succeeds. It reports not only the version of Maven, but the version of Java
that Maven has found and is using, which must be a Java version supported
for building PL/Java (see more on [version compatibility](versions.html)).
If Maven is not finding and using the intended Java version, the environment
variable `JAVA_HOME` can be set to point to the desired Java installation,
and `mvn --version` should then confirm that the Java being found is the
one intended.

If you have more than one version installed of PostgreSQL, Java, or the
compile/link tools, make sure the ones found on your search path are the
Expand Down

0 comments on commit dd81b16

Please sign in to comment.