public void removeRepository(@CliOption(key = "id", mandatory = true, help = "The ID of the repository") final String id, @CliOption(key = "url", mandatory = true, help = "The URL of the repository") final String url) { getMavenOperations().removeRepository(getMavenOperations().getFocusedModuleName(), new Repository(id, null, url)); }
public void addRepository(@CliOption(key = "id", mandatory = true, help = "The ID of the repository") final String id, @CliOption(key = "name", mandatory = false, help = "The name of the repository") final String name, @CliOption( key = "url", mandatory = true, help = "The URL of the repository") final String url) { getMavenOperations().addRepository(getMavenOperations().getFocusedModuleName(), new Repository(id, name, url)); }
public void removeDependency( @CliOption(key = "groupId", mandatory = true, help = "The group ID of the dependency") final String groupId, @CliOption(key = "artifactId", mandatory = true, help = "The artifact ID of the dependency") final String artifactId, @CliOption(key = "version", mandatory = true, help = "The version of the dependency") final String version, @CliOption(key = "classifier", help = "The classifier of the dependency") final String classifier) { getMavenOperations().removeDependency(getMavenOperations().getFocusedModuleName(), groupId, artifactId, version, classifier); }
public void addDependency( @CliOption(key = "groupId", mandatory = true, help = "The group ID of the dependency") final String groupId, @CliOption(key = "artifactId", mandatory = true, help = "The artifact ID of the dependency") final String artifactId, @CliOption(key = "version", mandatory = true, help = "The version of the dependency") final String version, @CliOption(key = "classifier", help = "The classifier of the dependency") final String classifier, @CliOption(key = "scope", help = "The scope of the dependency") final DependencyScope scope) { getMavenOperations().addDependency(getMavenOperations().getFocusedModuleName(), groupId, artifactId, version, scope, classifier); }