# Mvn clean install -DskipTests command failure

**URL:** <https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235>\
**Category:** Uncategorized\
**Created:** [January 3, 2024, 11:27am UTC](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235 "2024-01-03T11:27:57Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [January 3, 2024, 11:27am UTC](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235/1 "2024-01-03T11:27:57Z")

</div>

Hey community, I have followed the instructions in the project documentation meticulously, including initializing and building sub modules, and ensuring that the Maven and Java versions align with the project requirements. However, I am encountering a persistent [issue](https://pastebin.com/GhPUV41S) during the build process, specifically related to the `maven-compiler-plugin` and the use of the `--release` flag.  
any idea on how to go about this will be helpful !!  
@Moses_Mutesasira @caseyi @thembo42

---

<div class="post-metadata">

**Author:** ![thembo42](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/thembo42/32/77_2.png) [@thembo42](https://talk.openelis-global.org/u/thembo42)\
**Post date:** [January 3, 2024, 6:22pm UTC](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235/2 "2024-01-03T18:22:07Z")

</div>

@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:** [January 4, 2024, 1:54am UTC](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235/3 "2024-01-04T01:54:48Z")

</div>

what does `mvn -v` return on your machine ??  
Am mostly interested in what java version your `JAVA_HOME` points to , because the error could be related to incompatible java versions

---

<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:** [January 4, 2024, 1:50pm UTC](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235/4 "2024-01-04T13:50:20Z")

</div>

> [@Moses\_Mutesasira](#):
>
> `mvn -v`

@Moses_Mutesasira

 ![Screenshot from 2024-01-04 07-52-44](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/7872e4026431ad80a575be4e6de54b857b7539f3.png)  
This is the output i get when i run the above command

---

<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:** [January 4, 2024, 1:54pm UTC](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235/5 "2024-01-04T13:54:36Z")

</div>

hey @thembo42 i have been running this` git reset --hard git clean -df mvn clean install` and still facing the same issue

---

<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 4, 2024, 4:02pm UTC](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235/6 "2024-01-04T16:02:59Z")

</div>

OpenELIS is setup to be compiled with [Java 11](https://github.com/I-TECH-UW/OpenELIS-Global-2/blob/develop/pom.xml#L11) .

Can you install java 11 and have your `JAVA_HOME` point to that ??

---

<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:** [January 5, 2024, 7:47am UTC](https://talk.openelis-global.org/t/mvn-clean-install-dskiptests-command-failure/235/7 "2024-01-05T07:47:58Z")

</div>

> [@Agaba\_Derrick\_Junior](#):
>
> Hey community, I have followed the instructions in the project documentation meticulously, including initializing and building sub modules, and ensuring that the Maven and Java versions align with the project requirements. However, I am encountering a persistent [issue](https://pastebin.com/GhPUV41S) during the build process, specifically related to the `maven-compiler-plugin` and the use of the `--release` flag.  
> any idea on how to go about this will be helpful !!  
> @Moses_Mutesasira @caseyi @thembo42

solved!!!  
i solved this by upgrading from maven 3.6.9 to 3.9.6, i also upgraded from java 8 to 11

 ![Screenshot from 2024-01-05 02-45-20](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/5f9da64e1361e3dbd78f44005ff36e5d6dc15030.png)  
 ![Screenshot from 2024-01-05 02-46-52](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/065d3a9a4522d70c2cf18ba7ac231fa2e7ae9507.png)
