java - Local usage of maven dependency with provided scope -


i need use external framework in code. i've added dependency pom.xml. problem need use same jar across out project on remote host, use <scope>provided</scope> , every thing works if run project on remote host, when run locally

java.lang.noclassdeffounderror... ... caused by: java.lang.classnotfoundexception: 

i've checked - local repository contains dependency, still can't use it. should put *jar file make accessible application ?

update: use jetty, run java code ruby scripts.

you need make local environment same 1 targeting production since dependencies scope 'provided' not provided maven @ runtime.

you don't using run code assuming tomcat put .jar file in shared library directory @ $catalina_home/lib


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -