Interface MavenSanitizer
- All Known Implementing Classes:
MavenSanitizerImpl
public interface MavenSanitizer
Validates and modifies Maven's pom file to remove possible security holes.
-
Method Summary
Modifier and TypeMethodDescriptionsanitize
(@NotNull File sourcePom, @NotNull RssExecutionOutputHandler stdout) Sanitizes Specs POM
-
Method Details
-
sanitize
File sanitize(@NotNull @NotNull File sourcePom, @NotNull @NotNull RssExecutionOutputHandler stdout) throws PomProcessingException Sanitizes Specs POM- Parameters:
sourcePom
- source POM filestdout
- 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
-