Skip to content

Commit

Permalink
Merge pull request #115 from DiverOfDark/feature/allow-pom-check
Browse files Browse the repository at this point in the history
Allow to override skip check for pom packaging
  • Loading branch information
nicoulaj committed May 14, 2021
2 parents 607c016 + bdec45c commit 2bfc878
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,22 @@ public class DependenciesCheckMojo extends AbstractMojo
@Parameter(property = "checksum.skip", defaultValue = "false")
protected boolean skip;

/**
* Flag used to allow execution for pom packaging.
*/
@Parameter(property = "checksum.pom.skip", defaultValue = "true")
protected boolean pomSkip;

@Override
public void execute() throws MojoFailureException
{
if (skip)
{
getLog().info("Skipping checksum:check execution because property checksum.skip is set.");
}
else if (skipPackaging("pom"))
else if (pomSkip && skipPackaging("pom"))
{
getLog().warn("The goal is skipped due to packaging '" + project.getPackaging() + "'");
getLog().warn("The goal is skipped due to packaging '" + project.getPackaging() + "'. You can override this using checksum.pom.skip=false property.");
}
else
{
Expand Down

0 comments on commit 2bfc878

Please sign in to comment.