Error in building the repo locally

hello Everyone
i was trying build the repo as instructed in the repo’s readme and encounted some errors

ssegujja@ssegujja-Inspiron-5379:~/OpenELIS-Global-2/dataexport$ mvn clean install -DskipTests
[INFO] Scanning for projects…
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Data Export [pom]
[INFO] Data Export Core [jar]
[INFO] Data Export API [jar]
[INFO]
[INFO] ------------------------< org.itech:dataexport >------------------------
[INFO] Building Data Export 0.0.0.8 [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ dataexport —
[INFO]
[INFO] — maven-install-plugin:2.4:install (default-install) @ dataexport —
[INFO] Installing /home/ssegujja/OpenELIS-Global-2/dataexport/pom.xml to /home/ssegujja/.m2/repository/org/itech/dataexport/0.0.0.8/dataexport-0.0.0.8.pom
[INFO]
[INFO] ---------------------< org.itech:dataexport-core >----------------------
[INFO] Building Data Export Core 0.0.0.8 [2/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ dataexport-core —
[INFO] Deleting /home/ssegujja/OpenELIS-Global-2/dataexport/dataexport-core/target
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ dataexport-core —
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/ssegujja/OpenELIS-Global-2/dataexport/dataexport-core/src/main/resources
[INFO]
[INFO] — maven-compiler-plugin:3.8.0:compile (default-compile) @ dataexport-core —
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 12 source files to /home/ssegujja/OpenELIS-Global-2/dataexport/dataexport-core/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Data Export 0.0.0.8:
[INFO]
[INFO] Data Export … SUCCESS [ 0.254 s]
[INFO] Data Export Core … FAILURE [ 0.615 s]
[INFO] Data Export API … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.006 s
[INFO] Finished at: 2024-01-31T12:27:26+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project dataexport-core: Fatal error compiling: invalid flag: --release → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoExecutionException - Apache Maven - Apache Software Foundation
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :dataexport-core

any one who can asisst me with this @Moses_Mutesasira

Have you seen this ??

hello @Moses_Mutesasira
i have tried that but still encounterind errors
here’s some screen shots


Did you see my post above ??

please i also seeing some depedency problem in my editor

Screenshot from 2024-01-31 13-18-07

hello @Moses_Mutesasira do i checkout the branch first then go into the dataexport directory or do i doit straigbt in there

But have you gone through this thread ?

Any issues you’re facing ??

I Had this kind of error of invalid flag --release
and my problem was with my jdk8 had to upgrade to 11
and my maven had to install 3.9.6