List of usage examples for org.eclipse.jgit.transport NetRCCredentialsProvider install
public static void install()
From source file:org.codehaus.mojo.versions.BumpMojo.java
License:Apache License
public void init() throws MojoExecutionException { try {//from ww w . ja v a 2 s . c om NetRCCredentialsProvider.install(); FileRepositoryBuilder builder = new FileRepositoryBuilder(); Repository repository = builder.findGitDir().readEnvironment().findGitDir().build(); git = new Git(repository); } catch (IOException e) { throw new MojoExecutionException(e.getMessage(), e); } }