`mvn clean package` failed to build up successfully

I am finding a problem to build up the mvn clean package. this is what I get when I run the command.

this also

and this

I have tried what i have tried, so am requesting for your help on this. and this also

Remove space from your path Git Repositories

@dkayiwa I removed the space but still got the same results. But could the maven and java version have an effect on this. coz I have Apache Maven 3.9.9, and java version “23.0.1”

does downgrading to 1.8 help?

what exactly should i downgrade, maven or java? @mherman22

Downgrading java

I have downgarded but its all the same.

Can you share the new build log via pastebin.com?

Here is the link

This is the java I have: java version “1.8.0_202” Java™ SE Runtime Environment (build 1.8.0_202-b08) Java HotSpot™ 64-Bit Server VM (build 25.202-b08, mixed mode)

You need to install a version of the Java Developer Kit and not just the Runtime Environment. You can grab an appropriate one here: https://adoptium.net/temurin/releases/?package=jdk&version=8.

It is the same story even when the JDK is installed. check out this on the paste bin

What is the current output of this command? mvn -v

Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) Maven home: D:\Programing Softwares\apache-maven-3.9.9-bin\apache-maven-3.9.9 Java version: 23.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-23 Default locale: en_US, platform encoding: UTF-8 OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”

As for now, the master branch of openmrs-core supports up to Java 21

So you will need to downgrade from 23

Ok fine, let me work on it

@dkayiwa It seems the issue is persistent, I have used JDK 21, but it gives me the same results. check out here

Do you get the same with Java 8?

I tried java 8 and it was saying that am using a JRE not a JDK. But maybe I may have downloaded something else.