Author: michaelo
Date: Sat Dec 19 19:12:50 2015
New Revision: 1720969

URL: http://svn.apache.org/viewvc?rev=1720969&view=rev
Log:
[MCHECKSTYLE-314] checkstyle:check should invoke the execution of this plugin's 
goal "checkstyle" prior to executing itself

Modified:
    
maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java

Modified: 
maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java?rev=1720969&r1=1720968&r2=1720969&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java
 (original)
+++ 
maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java
 Sat Dec 19 19:12:50 2015
@@ -46,6 +46,7 @@ import org.apache.maven.plugin.checkstyl
 import org.apache.maven.plugin.checkstyle.exec.CheckstyleExecutorRequest;
 import org.apache.maven.plugin.descriptor.PluginDescriptor;
 import org.apache.maven.plugins.annotations.Component;
+import org.apache.maven.plugins.annotations.Execute;
 import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
@@ -76,6 +77,7 @@ import com.puppycrawl.tools.checkstyle.a
  */
 @Mojo( name = "check", defaultPhase = LifecyclePhase.VERIFY, 
requiresDependencyResolution = ResolutionScope.TEST,
        threadSafe = true )
+@Execute( goal = "checkstyle" )
 public class CheckstyleViolationCheckMojo
     extends AbstractMojo
 {


Reply via email to