Skip to content

Commit dd81b16

Browse files
committed
Document how to confirm Maven uses the right Java
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.
1 parent 8992155 commit dd81b16

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/site/markdown/build/build.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ There is a "troubleshooting the build" section at the end of this page.
6060

6161
mvn --version
6262

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

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

0 commit comments

Comments
 (0)