Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use library without pulling in a lot of dependencies #74

Open
wlk opened this issue Sep 8, 2016 · 2 comments
Open

Unable to use library without pulling in a lot of dependencies #74

wlk opened this issue Sep 8, 2016 · 2 comments

Comments

@wlk
Copy link

wlk commented Sep 8, 2016

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"
@nidi3
Copy link
Owner

nidi3 commented Sep 9, 2016

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.

@nidi3
Copy link
Owner

nidi3 commented Sep 15, 2016

Any success on this issue?
If you send me the sbt config, I can maybe find out what's missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants