コード例 #1
0
 public MavenArtifactRepository createMavenLocalRepository() {
   MavenArtifactRepository mavenRepository =
       instantiator.newInstance(
           DefaultMavenLocalArtifactRepository.class,
           fileResolver,
           createPasswordCredentials(),
           transportFactory,
           locallyAvailableResourceFinder,
           resolverStrategy);
   final File localMavenRepository = localMavenRepositoryLocator.getLocalMavenRepository();
   mavenRepository.setUrl(localMavenRepository);
   return mavenRepository;
 }
コード例 #2
0
 public MavenArtifactRepository createMavenLocalRepository() {
   MavenArtifactRepository mavenRepository = createMavenRepository();
   final File localMavenRepository = localMavenRepositoryLocator.getLocalMavenRepository();
   mavenRepository.setUrl(localMavenRepository);
   return mavenRepository;
 }