# Error "Artifact has not been packaged yet" when running "mvn test"

**URL:** <https://talk.openmrs.org/t/error-artifact-has-not-been-packaged-yet-when-running-mvn-test/48451>\
**Category:** Quality Assurance\
**Created:** [February 25, 2026, 1:09am UTC](https://talk.openmrs.org/t/error-artifact-has-not-been-packaged-yet-when-running-mvn-test/48451 "2026-02-25T01:09:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisxkeith](https://talk.openmrs.org/user_avatar/talk.openmrs.org/chrisxkeith/32/21861_2.png) [@chrisxkeith](https://talk.openmrs.org/u/chrisxkeith)\
**Post date:** [February 25, 2026, 1:09am UTC](https://talk.openmrs.org/t/error-artifact-has-not-been-packaged-yet-when-running-mvn-test/48451/1 "2026-02-25T01:09:32Z")

</div>

`[INFO] openmrs-test-suite-module-api … SUCCESS [25.314 s]``[INFO] openmrs-test-suite-module-omod … FAILURE [4.576 s]``[INFO] openmrs-test-suite-performance … SKIPPED``[INFO] ------------------------------------------------------------------------``[INFO] BUILD FAILURE``[INFO] ------------------------------------------------------------------------``[INFO] Total time: 11:22 min``[INFO] Finished at: 2026-02-24T16:50:00-08:00``[INFO] ------------------------------------------------------------------------``[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.10.0:unpack-dependencies (Expand moduleApplicationContext and messages) on project openmrs-test-suite-module-omod: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98. → [Help 1]`

This is my java: `JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64`

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [February 25, 2026, 2:22pm UTC](https://talk.openmrs.org/t/error-artifact-has-not-been-packaged-yet-when-running-mvn-test/48451/2 "2026-02-25T14:22:46Z")

</div>

You need to have at least once run `mvn package` since the last time you did a `mvn clean`.
