Package org.kordamp.maven.checker
Class MavenCentralChecker
- java.lang.Object
-
- org.kordamp.maven.checker.MavenCentralChecker
-
public class MavenCentralChecker extends Object
Checks if a POM complies with the rules for uploading to Maven Central.The following blocks are required:
- <groupId>
- <artifactId>
- <version>
- <name>
- <description>
- <url>
- <licenses>
- <scm>
All previous blocks may be supplied by a parent POM with the exception of <artifactId>.
The following blocks are forbidden if
strict = true- <repositories>
- <pluginRepositories>
- Since:
- 1.0.0
- Author:
- Andres Almiray
- See Also:
- http://maven.apache.org/repository/guide-central-repository-upload.html, https://central.sonatype.org/pages/requirements.html
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMavenCentralChecker.Configuration
-
Constructor Summary
Constructors Constructor Description MavenCentralChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheck(Logger log, org.apache.maven.project.MavenProject project, MavenCentralChecker.Configuration configuration)Checks the resolved model of the given MavenProject for compliance.
-
-
-
Constructor Detail
-
MavenCentralChecker
public MavenCentralChecker()
-
-
Method Detail
-
check
public static void check(Logger log, org.apache.maven.project.MavenProject project, MavenCentralChecker.Configuration configuration) throws PomCheckException
Checks the resolved model of the given MavenProject 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
-
-