Package org.kordamp.maven.checker
Class BomChecker
- java.lang.Object
-
- org.kordamp.maven.checker.BomChecker
-
public class BomChecker extends Object
Checks if a POM file is a minimal BOM file.The following blocks are required:
- <dependencyManagement>
The following blocks are forbidden:
- <build>
- <reporting>
- <dependencies>
- <repositories>
- <pluginRepositories>
- <profiles>
- <modules>
- Since:
- 1.0.0
- Author:
- Andres Almiray
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BomChecker.Configuration
-
Constructor Summary
Constructors Constructor Description BomChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
check(Logger log, org.apache.maven.project.MavenProject project, BomChecker.Configuration configuration)
Checks the resolved model of the given MaveProject for compliance.
-
-
-
Constructor Detail
-
BomChecker
public BomChecker()
-
-
Method Detail
-
check
public static void check(Logger log, org.apache.maven.project.MavenProject project, BomChecker.Configuration configuration) throws PomCheckException
Checks the resolved model of the given MaveProject for compliance.- Parameters:
log
- the logger to use.project
- the project to be checked.configuration
- configuration required for inspection.- Throws:
PomCheckException
- if the POM is invalid
-
-