cancel
Showing results for 
Search instead for 
Did you mean: 

Launch unit test with dependencies

marcantoine
Champ in-the-making
Champ in-the-making
Hi,

I starting using Activiti Designer, and I wrote a little bit of code to send request in java using Jersey library.
After adding the dependency in my pom.xml, the maven install was correctly performed.

But after I try to run the Unit test and it say:
java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder

you can folllow this link to watch the backtrace: http://pastebin.com/KX2jf8et

Where can we mention the dependency to Jersey during the run of the UnitTest ?

Thanks,
Marc-Antoine
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

It is maven project, that's why dependencies should be mentioned in the pom.
Questions:
# Do you have all required dependencies in pom?
# Is your IDE updated?

Regards
Martin

marcantoine
Champ in-the-making
Champ in-the-making
Hi,

Thanks for the reply.
In fact I found the error. My project (created with New Project-> Activiti Project) was not a maven project by default.
I set as a maven project using : right click on my project -> Configure -> "Convert to Mavem Project"

Is it a problem of configuration or if it's every time like that ?
I use Eclipse Luna.

jbarrez
Star Contributor
Star Contributor
I think it is indeed a bug in the current release.