Custom NIO filesystem doesn't load through SBT's test task

前提是你 提交于 2019-12-04 14:49:27

The comment by openCage hinted at the solution.

It turns out custom file systems do require an additional element, i.e. a service provider definition file located in META-INF/services.

If you use a custom NIO FileSystem, you need to make that provider definition file available in the test classpath.

The simplest way is probably just to fork the test VM, i.e. add the following to your build.sbt:

fork in Test := true
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!