Interface MavenSanitizer

All Known Implementing Classes:
MavenSanitizerImpl

public interface MavenSanitizer
Validates and modifies Maven's pom file to remove possible security holes.
  • Method Details

    • sanitize

      File sanitize(@NotNull @NotNull File sourcePom, @NotNull @NotNull RssExecutionOutputHandler stdout) throws PomProcessingException
      Sanitizes Specs POM
      Parameters:
      sourcePom - source POM file
      stdout - logger
      Returns:
      sanitized POM file created in the same directory where original POM was located
      Throws:
      PomProcessingException - if can't parse pom file or parent pom is wrong