Dependancy Management in Ultimate

Answered

Hello,

I am trying to use the integrated build enviroment in ultimate.

The dependency I have added is : com.fasterxml.jackson.core:jackson-databind:2.8.8

And the exception I get is : java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ObjectMapper

On line : 

ObjectMapper mapper = new ObjectMapper();

Dependancies is setup like:

And I am running it from the tomcat run option in the IDE. 

Why is it complaining about the missing dependency?

0
4 comments

Did you add this dependency to the artifact that is deployed to Tomcat? See https://www.jetbrains.com/help/idea/artifacts.html.

0

Is it just a case of dragging Jackson from available elements to WEB-INF\classes ?

 

0

Should be WEB-INF/lib. Isn't there some button at the bottom suggesting to add a missing dependency to the artifact?

1

Brilliant - thanks that fixed it with the "Fix" button.

0

Please sign in to leave a comment.