@mxhdiqaim from what I see, its showing “release version 11 not supported”, and since your java jdk version is 21, I can think of two more things
Go to File → Project Structure… ensure that both SDK and Language Level point to ver 21, also on modules for both sources and dependencies, ensure that it shows the same, screenshots below:
I faced some setup issues. So, I cloned the repository again and followed the README instructions — everything was up and running in just a few minutes.
Hello everyone, I am struggling of local setup of OpenELIS-2 repository. when I run in dataexport
module
mvn clean install -DskipTests
I get this error:
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/C:/Program%20Files/Apache/maven-3.9.9/lib/jansi-2.4.1.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/C:/Program%20Files/Apache/maven-3.9.9/lib/guava-33.2.1-jre.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
[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.9 [1/3]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ dataexport ---
[INFO]
[INFO] --- install:3.1.2:install (default-install) @ dataexport ---
[INFO] Installing C:\Users\Riyan\OpenELIS-Global-2\dataexport\pom.xml to C:\Users\Riyan\.m2\repository\org\itech\dataexport\0.0.0.9\dataexport-0.0.0.9.pom
[INFO]
[INFO] ---------------------< org.itech:dataexport-core >----------------------
[INFO] Building Data Export Core 0.0.0.9 [2/3]
[INFO] from dataexport-core\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ dataexport-core ---
[INFO] Deleting C:\Users\Riyan\OpenELIS-Global-2\dataexport\dataexport-core\target
[INFO]
[INFO] --- resources:3.3.1: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 C:\Users\Riyan\OpenELIS-Global-2\dataexport\dataexport-core\src\main\resources
[INFO]
[INFO] --- compiler: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 C:\Users\Riyan\OpenELIS-Global-2\dataexport\dataexport-core\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[42,124] cannot find symbol
symbol: method getId()
location: variable dataExportTask of type org.itech.fhir.dataexport.core.model.DataExportTask
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[46,52] cannot find symbol
symbol: method getStartTime()
location: variable latestAttempt of type org.itech.fhir.dataexport.core.model.DataExportAttempt
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[48,17] cannot find symbol
symbol: variable log
location: class org.itech.fhir.dataexport.core.service.impl.DataExportTaskServiceImpl
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[57,115] cannot find symbol
symbol: method getId()
location: variable dataExportTask of type org.itech.fhir.dataexport.core.model.DataExportTask
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[60,52] cannot find symbol
symbol: method getStartTime()
location: variable latestAttempt of type org.itech.fhir.dataexport.core.model.DataExportAttempt
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[62,17] cannot find symbol
symbol: variable log
location: class org.itech.fhir.dataexport.core.service.impl.DataExportTaskServiceImpl
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Data Export 0.0.0.9:
[INFO]
[INFO] Data Export ........................................ SUCCESS [ 0.391 s]
[INFO] Data Export Core ................................... FAILURE [ 2.701 s]
[INFO] Data Export API .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.254 s
[INFO] Finished at: 2025-05-05T17:46:35+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project dataexport-core: Compilation failure: Compilation failure:
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[42,124] cannot find symbol
[ERROR] symbol: method getId()
[ERROR] location: variable dataExportTask of type org.itech.fhir.dataexport.core.model.DataExportTask
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[46,52] cannot find symbol
[ERROR] symbol: method getStartTime()
[ERROR] location: variable latestAttempt of type org.itech.fhir.dataexport.core.model.DataExportAttempt
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[48,17] cannot find symbol
[ERROR] symbol: variable log
[ERROR] location: class org.itech.fhir.dataexport.core.service.impl.DataExportTaskServiceImpl
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[57,115] cannot find symbol
[ERROR] symbol: method getId()
[ERROR] location: variable dataExportTask of type org.itech.fhir.dataexport.core.model.DataExportTask
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[60,52] cannot find symbol
[ERROR] symbol: method getStartTime()
[ERROR] location: variable latestAttempt of type org.itech.fhir.dataexport.core.model.DataExportAttempt
[ERROR] /C:/Users/Riyan/OpenELIS-Global-2/dataexport/dataexport-core/src/main/java/org/itech/fhir/dataexport/core/service/impl/DataExportTaskServiceImpl.java:[62,17] cannot find symbol
[ERROR] symbol: variable log
[ERROR] location: class org.itech.fhir.dataexport.core.service.impl.DataExportTaskServiceImpl
[ERROR] -> [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] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :dataexport-core
@aditya Thank you! It worked, Now I am able to login and access the dashboard. But how do I access the homepage of OpenELIS: https://openelis-global.org/ locally?
Yep got it @aditya, Thank you so much for helping me in setting up OpenELIS locally .
Also created My first Issue and and PR. I have followed all the steps to create one from PULL_REQUEST_TIPS.md. looking for it to review.