Yes the release version does NOT use checkstyle 4 ... the release version
has no way to tell it a config file of your own. So the fact that the
eclipse plugin that I am using works with checkstyle 4 wouldn't matter.
(Well ... not yet.) I didn't give it a config file when I was using the
release version. Perhaps I am confused about it having no way to take a
config file.

It also fails with the built in config file (config/maven_checks.xml) and it
fails when there is no specified config file.

It went spelunking in the source code. The place where the exception bubbles
up into the maven plugin was rearranged in the 12/7/05 version of
CheckstyleReport.java. I know this doesn't mean the problem came up there
but it does make it suspicious.

Do you know which version in SVN reflects the release version beta-1?

Further, do you know which version in SVN added checkstyle 4.1?

I need to go look at the difference between 4.0 and 4.1.

Thanks.

On 12/27/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
>
> But the release version doesn't use checkstyle 4
>
> On 12/27/05, Lee Meador <[EMAIL PROTECTED]> wrote:
> > The only other version I tried was beta-1, the release version.
> >
> > I just found out that the error occurs even with no config file
> specified. I
> > guess that's what you are telling me. The SVN version has that bug.
> >
> >
> >
> > On 12/27/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > Yes, that's the problem the current plugin has.
> > > Did a previous version work for you? what day was it built?
> > >
> > > On 12/27/05, Lee Meador <[EMAIL PROTECTED]> wrote:
> > > > I am getting an exception running the maven2 checkstyle plugin.
> > > >
> > > > Since I need a custom checkstyle configuration, I'm running the
> > Checkstyle
> > > > plugin version from SVN. I updated around noon today, built and
> > installed
> > > > the snapshot.
> > > >
> > > > Previously, running the release plugin and "sun" checks, the plugin
> ran
> > > > without error and I got some results from checkstyle.
> > > >
> > > > I have read the Jira issue about checkstyle config files and read
> recent
> > > > comments in the archive for this mailing list that contain the word
> > > > "checkstyle" I have generated and read the new site docs for for the
> > > > checkstyle plugin that I just got from SVN.
> > > >
> > > > Here is a bit of the POM:
> > > >
> > > >     <reporting>
> > > >         <plugins>
> > > >             <plugin>
> > > >                 <groupId>org.apache.maven.plugins</groupId>
> > > >
> > <artifactId>maven-project-info-reports-plugin</artifactId>
> > > >             </plugin>
> > > >             <plugin>
> > > >                 <groupId>org.codehaus.mojo</groupId>
> > > >
> > <artifactId>surefire-report-maven-plugin</artifactId>
> > > >             </plugin>
> > > >             <plugin>
> > > >                 <groupId>org.apache.maven.plugins </groupId>
> > > >
> > <artifactId>maven-checkstyle-plugin</artifactId>
> > > >                 <version>2.0-beta-2-SNAPSHOT</version>
> > > >                 <configuration>
> > > >                     <!--
> > > >
> > configLocation>config/maven_checks.xml</configLocation-->
> > > >                     <configLocation>../AA-IFS-checkstyle-rules.xml
> > > > </configLocation>
> > > >                 </configuration>
> > > >             </plugin>
> > > >         </plugins>
> > > >     </reporting>
> > > >
> > > > NOTE: I get the same error whether I use my xml file (as shown) or
> > > > config/maven_checks.xml (which is currently commented out). If I
> change
> > the
> > > > config file name to some non-existent filename, I get a different
> error
> > > > saying that it can't find the config file. My config file was
> generated
> > by
> > > > the eclipse 3.1 checkstyle 4.? plugin.
> > > >
> > > > This bit of POM is in the parent. The error occurs in the 1st child
> > project
> > > > that is processed. The parent doesn't have any source and does
> nothing
> > but
> > > > serve as a base POM.
> > > >
> > > > Here is the error: (with -e)
> > > >
> > > > [INFO] Generate "Checkstyle" report.
> > > > [INFO]
> > > >
> >
> ----------------------------------------------------------------------------
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > >
> >
> ----------------------------------------------------------------------------
> > > > [INFO] Error during report generation
> > > >
> > > > Embedded error: Failed during checkstyle configuration
> > > > [INFO]
> > > >
> >
> ----------------------------------------------------------------------------
> > > > [INFO] Trace
> > > > org.apache.maven.lifecycle.LifecycleExecutionException:
> > Error during report
> > > > generation
> > > >     at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > DefaultLifecycleExecutor.java:544)
> > > >     at
> > > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> > > > (DefaultLifecycleExecutor.java:469)
> > > >     at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> > > > DefaultLifecycleExecutor.java:448)
> > > >     at
> > > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> > > > (DefaultLifecycleExecutor.java:301)
> > > >     at
> > > >
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> > > > DefaultLifecycleExecutor.java:268)
> > > >     at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> > (
> > > > DefaultLifecycleExecutor.java:137)
> > > >     at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> > > >     at
> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
> > > >     at org.apache.maven.cli.MavenCli.main
> > (MavenCli.java:249)
> > > >     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:585)
> > > >     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)
> > > > Caused by:
> > org.apache.maven.plugin.MojoExecutionException : Error
> > during
> > > > report generation
> > > >     at
> > org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:389)
> > > >     at
> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > > DefaultPluginManager.java :399)
> > > >     at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > DefaultLifecycleExecutor.java:519)
> > > >     ... 16 more
> > > > Caused by:
> > org.apache.maven.reporting.MavenReportException: Failed
> > during
> > > > checkstyle configuration
> > > >     at
> > org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(
> > > > CheckstyleReport.java:461)
> > > >     at
> > org.apache.maven.reporting.AbstractMavenReport.generate (
> > > > AbstractMavenReport.java:98)
> > > >     at
> > org.apache.maven.plugins.site.SiteMojo.generateReportsPages(
> > > > SiteMojo.java:802)
> > > >     at
> > org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
> > > >     ... 18 more
> > > > Caused by:
> > com.puppycrawl.tools.checkstyle.api.CheckstyleException:
> > unable
> > > > to read default package names
> > > >     at
> > com.puppycrawl.tools.checkstyle.PackageNamesLoader.loadModuleFactory
> > (
> > > > PackageNamesLoader.java:198)
> > > >     at
> > com.puppycrawl.tools.checkstyle.PackageNamesLoader.loadModuleFactory(
> > > > PackageNamesLoader.java:146)
> > > >     at
> > org.apache.maven.plugin.checkstyle.CheckstyleReport.getModuleFactory
> > (
> > > > CheckstyleReport.java:823)
> > > >     at
> > org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(
> > > > CheckstyleReport.java:455)
> > > >     ... 21 more
> > > > Caused by: java.net.MalformedURLException
> > > >     at java.net.URL.<init>(URL.java:601)
> > > >     at java.net.URL.<init>(URL.java:464)
> > > >     at java.net.URL.<init>(URL.java:413)
> > > >     at
> > > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity
> > (
> > > > XMLEntityManager.java:968)
> > > >     at
> > > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion
> > > > (XMLVersionDetector.java:184)
> > > >     at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > (
> > > > XML11Configuration.java:798)
> > > >     at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> > > > XML11Configuration.java:764)
> > > >     at
> > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
> > (
> > > > XMLParser.java:148)
> > > >     at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
> > > > AbstractSAXParser.java:1242)
> > > >     at
> > com.puppycrawl.tools.checkstyle.api.AbstractLoader.parseInputSource
> > (
> > > > AbstractLoader.java:96)
> > > >     at
> > com.puppycrawl.tools.checkstyle.PackageNamesLoader.loadModuleFactory(
> > > > PackageNamesLoader.java:184)
> > > >     ... 24 more
> > > > [INFO]
> > ---------------------------------------------------------------------
> > > >
> > > > Anyone got any clues?
> > > >
> > > > -- Lee Meador
> > > > Sent from gmail. My real email address is [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
> >
> >
> > --
> >
> > -- Lee Meador
> > Sent from gmail. My real email address is [EMAIL PROTECTED]
>
>


--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]

Reply via email to