LocalArtifactRepository implements ArtifactRepository { @Override public String getRootDir() { return Aether.getAether() .getLocalRepository() .getUrl() .replaceAll("^file:", "") .replaceAll(File.separatorChar + "$", ""); } LocalArtifactRepository();  LocalArtifactRepository(final String name); @Override String getName(); @Override String getRootDir(); @Override Collection<File> listFiles(final List<String> wildcards); @Override Collection<Artifact> listArtifacts(final List<String> wildcards); @Override boolean containsArtifact(final GAV gav); @Override File getArtifactFileFromRepository(final GAV gav); @Override boolean isRepository(); @Override boolean isPomRepository(); @Override void deploy(final String pom,
                       Artifact... artifacts); @Override void delete(final GAV gav);  }
@Test public void testGetRootDir() throws Exception { LocalArtifactRepository repository = new LocalArtifactRepository("test"); String rootDir = repository.getRootDir(); assertNotNull(rootDir); File rootDirFile = new File(rootDir); assertTrue(rootDirFile.isDirectory()); }