raml-tester
raml-tester copied to clipboard
Unable to use library without pulling in a lot of dependencies
Could you explain how to use this library without pulling in a lot of dependencies (which I don't need in my project)? I'm getting following exceptions:
$ sbt test
[info] Loading project definition from /home/w/projects/lp/integration-tests/project
[info] Set current project to integration-tests (in build file:/home/w/projects/lp/integration-tests/)
[info] Compiling 1 Scala source to /home/w/projects/lp/integration-tests/target/scala-2.11/test-classes...
[warn] Class org.springframework.test.web.servlet.MvcResult not found - continuing with a stub.
[warn] Class javax.servlet.ServletRequest not found - continuing with a stub.
[warn] Class javax.servlet.ServletResponse not found - continuing with a stub.
[warn] Class javax.servlet.FilterChain not found - continuing with a stub.
[warn] Class javax.servlet.ServletException not found - continuing with a stub.
[error] Class javax.servlet.ServletException not found - continuing with a stub.
[warn] Class org.springframework.http.client.ClientHttpRequestFactory not found - continuing with a stub.
[warn] Class org.springframework.web.client.RestTemplate not found - continuing with a stub.
[warn] Class javax.ws.rs.client.WebTarget not found - continuing with a stub.
[warn] 8 warnings found
[error] one error found
[error] (test:compileIncremental) Compilation failed
[error] Total time: 2 s, completed Sep 8, 2016 4:24:20 PM
I'm using project with scala and sbt and added only this dependency:
"guru.nidi.raml" % "raml-tester" % "0.8.8" % "test"
raml-tester does not pull in automatically all supported technologies (e.g. spring, jaxRS, servlet) You are using spring and jaxrs? Then these dependencies should be defined in your project.
To me it seems a problem with project setup but I don't know sbt.
Any success on this issue? If you send me the sbt config, I can maybe find out what's missing.