Class CheckMavenCentralMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.kordamp.maven.plugin.checker.mojos.CheckMavenCentralMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="check-maven-central")
public class CheckMavenCentralMojo
extends org.apache.maven.plugin.AbstractMojo
Checks if a POM complies with the rules for uploading to Maven Central.
- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.maven.project.MavenProject
The project whose model will be checked.private boolean
Checks if version is -SNAPSHOT.private boolean
Checks if <repositories> and <pluginRepositories> are present.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) private org.apache.maven.project.MavenProject projectThe project whose model will be checked. -
release
@Parameter(property="checker.release", defaultValue="true") private boolean releaseChecks if version is -SNAPSHOT. -
strict
@Parameter(property="checker.strict", defaultValue="true") private boolean strictChecks if <repositories> and <pluginRepositories> are present.
-
-
Constructor Details
-
CheckMavenCentralMojo
public CheckMavenCentralMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-