Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,642
Community Members
 
Community Events
168
Community Groups

How to enable maven dependencies available for tests?

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

Atlassian Community Events