I’m writing a tests for my annotation processor with Google Compile-Testing and JUnit. How to provide some libraries, which present at maven(as example, “somegroup:somelib:1.0”), to compilation? Answer It can be reached by using withClasspathFrom for provide to test compilation all classes which available at test itself: