@@ -66,8 +66,10 @@ public class JApiCmpMojo extends AbstractMojo {
6666 private List <Dependency > oldClassPathDependencies ;
6767 @ org .apache .maven .plugins .annotations .Parameter (required = false )
6868 private List <Dependency > newClassPathDependencies ;
69- @ org .apache .maven .plugins .annotations .Parameter (property = "japicmp.skip" , required = false )
69+ @ org .apache .maven .plugins .annotations .Parameter (defaultValue = "false" )
7070 private boolean skip ;
71+ @ org .apache .maven .plugins .annotations .Parameter (property = "japicmp.skip" , defaultValue = "false" )
72+ private boolean skipExec ;
7173 @ org .apache .maven .plugins .annotations .Parameter (property = "japicmp.skipXmlReport" , required = false )
7274 private boolean skipXmlReport ;
7375 @ org .apache .maven .plugins .annotations .Parameter (property = "japicmp.skipHtmlReport" , required = false )
@@ -104,7 +106,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
104106 MavenParameters mavenParameters = new MavenParameters (this .artifactRepositories ,
105107 this .mavenProject , this .mojoExecution , this .versionRangeWithProjectVersion , this .repoSystem , this .repoSession ,
106108 this .remoteRepos );
107- PluginParameters pluginParameters = new PluginParameters (this .skip , this .newVersion , this .oldVersion , this .parameter , this .dependencies , Optional .of (
109+ PluginParameters pluginParameters = new PluginParameters (this .skipExec || this . skip , this .newVersion , this .oldVersion , this .parameter , this .dependencies , Optional .of (
108110 this .projectBuildDir ), Optional .<String >absent (), true , this .oldVersions , this .newVersions , this .oldClassPathDependencies ,
109111 this .newClassPathDependencies );
110112 executeWithParameters (pluginParameters , mavenParameters );
@@ -185,8 +187,6 @@ private void setUpOverrideCompatibilityChanges(JarArchiveComparatorOptions compa
185187 }
186188 }
187189
188-
189-
190190 private boolean skipModule (PluginParameters pluginParameters , MavenParameters mavenParameters ) {
191191 SkipModuleStrategy skipModuleStrategy = new SkipModuleStrategy (pluginParameters , mavenParameters , getLog ());
192192 return skipModuleStrategy .skip ();
@@ -197,7 +197,6 @@ private enum ConfigurationVersion {
197197 }
198198
199199 private static DefaultArtifact createDefaultArtifact (MavenProject mavenProject , String version ) {
200-
201200 org .apache .maven .artifact .Artifact artifact = mavenProject .getArtifact ();
202201 return createDefaultArtifact (artifact .getGroupId (), artifact .getArtifactId (), artifact .getClassifier (), artifact .getType (), version );
203202 }
0 commit comments