[ 
http://jira.codehaus.org/browse/MCHECKSTYLE-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215245#action_215245
 ] 

Tim Moore commented on MCHECKSTYLE-136:
---------------------------------------

Workaround, run: '{{mvn checkstyle:checkstyle checkstyle:check 
-Dcheckstyle.skipExec}}' instead of '{{mvn checkstyle:check}}'

> Running checkstyle:check on the top-level POM of a multi-module build fails
> ---------------------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-136
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-136
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Tim Moore
>
> {noformat}
> [INFO] [checkstyle:check]
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] basedir /Users/tmoore/Projects/atlassian/JST/src/main/java does not 
> exist
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.IllegalStateException: basedir 
> /Users/tmoore/Projects/atlassian/JST/src/main/java does not exist
>       at 
> org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:550)
>       at 
> org.codehaus.plexus.util.FileUtils.getFileAndDirectoryNames(FileUtils.java:1717)
>       at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1645)
>       at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1627)
>       at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1601)
>       at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1584)
>       at 
> org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.getFilesToProcess(DefaultCheckstyleExecutor.java:407)
>       at 
> org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.executeCheckstyle(DefaultCheckstyleExecutor.java:89)
>       at 
> org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execute(CheckstyleViolationCheckMojo.java:393)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> {noformat}
> This is without an existing report. It appears to be a regression of 
> MCHECKSTYLE-25 and MCHECKSTYLE-26
> Probably introduced when the check mojo was refactored to invoke checkstyle 
> directly rather than executing the report 
> (http://svn.apache.org/viewvc?view=revision&revision=836274)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to