[INFO] OpenMRS ............................................ SUCCESS [ 13.504 s]
[INFO] openmrs-tools ...................................... SUCCESS [ 4.887 s]
[INFO] openmrs-test ....................................... SUCCESS [ 0.322 s]
[INFO] openmrs-api ........................................ FAILURE [ 9.700 s]
[INFO] openmrs-web ........................................ SKIPPED
…
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.1:compile (default-compile) on project openmrs-api: Fatal error compiling: invalid target release: 21 ->
Running mvn -e -X test shows:
[INFO] Compiling 774 source files with javac [debug target 21] to target/classes
Is this referring to a Java version or something else? I installed Java 8 as described here: https://openmrs.atlassian.net/wiki/spaces/docs/pages/25475060/Install+Java+SE
And I verified the versions as follows:
ck@2018-ck-nuc:~/Documents/github/openmrs-core$ java -version
openjdk version "1.8.0_482"
OpenJDK Runtime Environment (build 1.8.0_482-8u482-ga~us1-0ubuntu1~22.04-b08)
OpenJDK 64-Bit Server VM (build 25.482-b08, mixed mode)
ck@2018-ck-nuc:~/Documents/github/openmrs-core$ javac -version
javac 1.8.0_482
Or should I be running a different maven target (e.g., not test) to make sure that the automated tests pass?
Thanks in advance for any help.