# Error in building the repo locally

**URL:** <https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262>\
**Category:** Development\
**Created:** [January 31, 2024, 9:24am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262 "2024-01-31T09:24:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![segujja\_joseph](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/segujja_joseph/32/78_2.png) [@segujja\_joseph](https://talk.openelis-global.org/u/segujja_joseph)\
**Post date:** [January 31, 2024, 9:24am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/1 "2024-01-31T09:24:38Z")

</div>

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](http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException)  
> [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

---

<div class="post-metadata">

**Author:** ![Moses\_Mutesasira](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/moses_mutesasira/32/72_2.png) [@Moses\_Mutesasira](https://talk.openelis-global.org/u/Moses_Mutesasira)\
**Post date:** [January 31, 2024, 9:59am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/2 "2024-01-31T09:59:45Z")

</div>

Have you seen this ??

> [@Mvn clean install -DskipTests command failure](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235/2):
>
> @Agaba_Derrick_Junior be sure you have pulled latest changes and checkout the right branch then build again the sub modules. Do you have any local changes in the checked out branch? If not, run the following: git reset --hard git clean -df mvn clean install

---

<div class="post-metadata">

**Author:** ![segujja\_joseph](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/segujja_joseph/32/78_2.png) [@segujja\_joseph](https://talk.openelis-global.org/u/segujja_joseph)\
**Post date:** [January 31, 2024, 10:13am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/3 "2024-01-31T10:13:50Z")

</div>

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

 ![Screenshot from 2024-01-31 13-05-45](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/7a6f75173e07baacf9e83a3b1c79298a477aa61b.png)  
 ![Screenshot from 2024-01-31 13-05-30](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/62e08d1fc392d59ac57c56b88f73a4e9769e1c13.png)

---

<div class="post-metadata">

**Author:** ![Moses\_Mutesasira](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/moses_mutesasira/32/72_2.png) [@Moses\_Mutesasira](https://talk.openelis-global.org/u/Moses_Mutesasira)\
**Post date:** [January 31, 2024, 10:17am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/4 "2024-01-31T10:17:14Z")

</div>

> [@Error in building the repo locally](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/2):
>
> Have you seen this ??

Did you see my post above ??

---

<div class="post-metadata">

**Author:** ![segujja\_joseph](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/segujja_joseph/32/78_2.png) [@segujja\_joseph](https://talk.openelis-global.org/u/segujja_joseph)\
**Post date:** [January 31, 2024, 10:21am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/5 "2024-01-31T10:21:14Z")

</div>

please i also seeing some depedency problem in my editor

 ![Screenshot from 2024-01-31 13-00-16](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/90dd29090ddc1ac8ea6d970d1e95a37aaa0a8bc3.png)

![Screenshot from 2024-01-31 13-18-07](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/e418793a8f84ad2db92d7d2bf70a28e397be05c8.png)

 ![Screenshot from 2024-01-31 13-17-40](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/293ed01959fa10101b644d15ad6b4e6a2dfd221b.png)

 ![Screenshot from 2024-01-31 13-17-19](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/87efc7c53e23103d1ae7987d337d0d286d775aba.png)

 ![Screenshot from 2024-01-31 13-17-04](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/bb22302726c49d3625df3d3387a201d123f9a508.png)

---

<div class="post-metadata">

**Author:** ![segujja\_joseph](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/segujja_joseph/32/78_2.png) [@segujja\_joseph](https://talk.openelis-global.org/u/segujja_joseph)\
**Post date:** [January 31, 2024, 10:36am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/6 "2024-01-31T10:36:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Moses\_Mutesasira](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/moses_mutesasira/32/72_2.png) [@Moses\_Mutesasira](https://talk.openelis-global.org/u/Moses_Mutesasira)\
**Post date:** [January 31, 2024, 10:38am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/7 "2024-01-31T10:38:14Z")

</div>

But have you gone through this thread ?

> [@Mvn clean install -DskipTests command failure](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235/2):
>
> @Agaba_Derrick_Junior be sure you have pulled latest changes and checkout the right branch then build again the sub modules. Do you have any local changes in the checked out branch? If not, run the following: git reset --hard git clean -df mvn clean install

---

<div class="post-metadata">

**Author:** ![Moses\_Mutesasira](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/moses_mutesasira/32/72_2.png) [@Moses\_Mutesasira](https://talk.openelis-global.org/u/Moses_Mutesasira)\
**Post date:** [February 1, 2024, 8:02am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/8 "2024-02-01T08:02:39Z")

</div>

Any issues you’re facing ??

---

<div class="post-metadata">

**Author:** ![Agaba\_Derrick\_Junior](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/agaba_derrick_junior/32/503_2.png) [@Agaba\_Derrick\_Junior](https://talk.openelis-global.org/u/Agaba_Derrick_Junior)\
**Post date:** [February 1, 2024, 11:46am UTC](https://talk.openelis-global.org/t/error-in-building-the-repo-locally/262/9 "2024-02-01T11:46:08Z")

</div>

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
