Ejemplo n.º 1
0
  @CliCommand(
      value = REPOSITORY_REMOVE_COMMAND,
      help = "Removes an existing repository from the Maven project object model (POM)")
  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) {

    mavenOperations.removeRepository(
        mavenOperations.getFocusedModuleName(), new Repository(id, null, url));
  }