Dependency in engine-rest-core not included in jar

Hi,
i’m working on authentication and if I add a dependency in camunda-engine-rest-core, and then take
camunda-engine-rest-core-7.8.0.jar
and substitute it in
\server\apache-tomcat-8.0.47\webapps\engine-rest\WEB-INF\lib
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