问题描述
我正在使用 Google Compile-Testing 和 JUnit 为我的注释处理器编写测试。
如何提供一些存在于 maven 中的库(例如 "somegroup:somelib:1.0"
)进行编译?
Compilation compilation = Compiler.javac().withProcessors(new MyProcessor())
.withClasspath(???) //What's there to use?
.compile(
JavaFileObjects.forResource("path/to/SomeClass.java")
...
);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)