Skip to content
Advertisement

Running from command line using “mvn test” gives error where dependency jar is not found

I have two projects. AutomationFramework is simply libraries/common pages/base class etc. I created a jar from it and added to the main test project which is the automation test suite. I can run from Eclipse (2021-06) all the 7 tests, successfully. I like to run them from command line and then set it up to run from Jenkins. When typed “mvn test” giving this error:

JavaScript

Error message

Btw, I have cleaned and compiled successfully (using mvn clean and mvn compile) from commandline. Aslo, I noticed that its looking for .java source files, above. “mvn verify” also gives above error.

By project setup in Eclipse”

Eclipse project structure

JavaScript

Advertisement

Answer

AFAICS, there is no <dependency> in your FBRAutomationTestSuite project that refers to the AutomationResourcesFramework artifact, e.g. as an example:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement