In my project I'm using a library that makes use of it's own custom
classloader. When I try to run tests that make use of this library
under sbt, I get a ClassNotFoundException for a class that I know is
on my classpath. In my code, I can import it, instantiate it, etc....
But the custom classloader can't seem to find it at all.
I ran across the same problem when I was using Maven, but I was able
to get around it by setting "useSystemClassloader" to true in the
surefire plugin. I've been searching sbt docs for a while now, trying
to figure out if I can do the same thing, but I haven't seen anything
yet.
I'm using SBT 0.10.1
Thanks,
David
I'm currently fighting with an internal library at work. I'll see if
the code works in the run task soon.
On Nov 29, 4:07 pm, Doug Tangren <d.tang...@gmail.com> wrote:
> I had a similar issue recently when using jerkson deserialization which
> requires access to case class picked signatures. While my code complied
> fine, I ran into the same cnf exceptions at runtime.
>
> Here is my workaround
>
> https://github.com/softprops/ls/blob/master/plugin/src/main/scala/cla...
>
> -Doug Tangrenhttp://lessis.me