Null pointer exception while doing "mvn clean package"

org.openmrs.util.OpenmrsUtilTest.txt (8.6 KB) I’m getting a null pointer exception while performing mvn clean package and install. No modifications were made to the code after cloning. The log for the particular error has been uploaded.

What does this command return? mvn -v

Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8) Maven home: C:\Program Files\Maven\apache-maven-3.9.1 Java version: 16.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-16.0.2 Default locale: en_IN, platform encoding: Cp1252 OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”

for now, I proceeded by commenting the unit test giving the error to check if it builds, it works

Switch to Java 8

1 Like

Thanks it worked