Skip to content

Commit 17c66b8

Browse files
committed
Revert fix and IT changes for MCHECKSTYLE-314
The fix introduces another run of Checkstyle with default settings interfering with the one set in an execution. git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1798404 13f79535-47bb-0310-9956-ffa450edef68
1 parent c4a93f9 commit 17c66b8

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/it/MCHECKSTYLE-214-basedir-resource/verify.groovy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
def buildLog = new File( basedir, 'build.log' )
2121

2222
// LICENSE.txt has 2 errors, src/main/resources/README.txt has 1 error
23-
// MCHECKSTYLE-314 added 2 errors from target/checkstyle-header.txt
24-
assert buildLog.text.contains( "[INFO] There are 5 errors reported by Checkstyle" )
23+
assert buildLog.text.contains( "[INFO] There are 3 errors reported by Checkstyle" )
2524

2625
def checkstyle = new XmlSlurper().parse( new File( basedir, "target/checkstyle-result.xml" ) )
27-
assert 3 == checkstyle.file.size()
26+
assert 2 == checkstyle.file.size()

src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleViolationCheckMojo.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.apache.maven.plugin.MojoFailureException;
4242
import org.apache.maven.plugin.descriptor.PluginDescriptor;
4343
import org.apache.maven.plugins.annotations.Component;
44-
import org.apache.maven.plugins.annotations.Execute;
4544
import org.apache.maven.plugins.annotations.LifecyclePhase;
4645
import org.apache.maven.plugins.annotations.Mojo;
4746
import org.apache.maven.plugins.annotations.Parameter;
@@ -74,7 +73,6 @@
7473
*/
7574
@Mojo( name = "check", defaultPhase = LifecyclePhase.VERIFY, requiresDependencyResolution = ResolutionScope.TEST,
7675
threadSafe = true )
77-
@Execute( goal = "checkstyle" )
7876
public class CheckstyleViolationCheckMojo
7977
extends AbstractMojo
8078
{

0 commit comments

Comments
 (0)