How to enable maven dependencies available for tests?

venkatasukumar kommuru February 17, 2021

In Bamboo, I have created a project to run tests exclusively. The following dependency is mentioned in the pom.xml.

<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
</dependency>

Source and test java classes are compiled successfully. But when tests start executing then I see the following error:

java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient

Please let me know if these dependencies are available for tests or not. Do I need to place these jars anywhere else other than the local maven repo? Thanks

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events