All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.plugins.maven.PomFileUpdater Maven / Gradle / Ivy

package io.codemodder.plugins.maven;

import io.codemodder.DependencyGAV;
import java.io.IOException;
import java.nio.file.Path;
import java.util.List;

/** A type responsible for making sure a pom has dependencies. */
interface PomFileUpdater {

  /**
   * Given a pom file, make sure it has the given dependencies, and update it if it doesn't.
   *
   * @param pomPath the path to the pom file
   * @param dependencies the dependencies that need to be injected (if necessary) into the pom
   * @throws IOException if there was an error reading or writing to the pom
   */
  PomUpdateResult updatePom(Path projectDir, Path pomPath, List dependencies)
      throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy