Dependency in engine-rest-core not included in jar

i’m working on authentication and if I add a dependency in camunda-engine-rest-core, and then take
and substitute it in
i get a org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/engine-rest]] Caused by: java.lang.NoClassDefFoundError:

in the generated pom it is a compile dependecy so it should be added in the jar…
is this the correct way to include my dependencies?

Thanks in advance

A solution: include the jar of your dependecy in \server\apache-tomcat-8.0.47\webapps\engine-rest\WEB-INF\lib

Still not sure about “provided” and “compile” in pom depependecies tho.

Thanks everyone anyway