Package org.kordamp.maven.checker
Class BomChecker
java.lang.Object
org.kordamp.maven.checker.BomChecker
Checks if a POM file is a minimal BOM file.
The following blocks are required:
- <dependencyManagement>
- <build>
- <reporting>
- <dependencies>
- <repositories>
- <pluginRepositories>
- <profiles>
- <modules>
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BomChecker
public BomChecker()
-
-
Method Details
-
check
public static void check(Logger log, org.apache.maven.project.MavenProject project) throws PomCheckException Checks the resolved model of the given MaveProject for compliance.- Parameters:
log
- the logger to use.project
- the project to be checked.- Throws:
PomCheckException
- if the POM is invalid
-