cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Tutkowski <mike.tutkow...@solidfire.com>
Subject Re: Unfamiliar with checkstyle
Date Thu, 09 Jan 2014 20:04:57 GMT
I can install the plug-in for Eclipse.

Thanks, Alex!


On Thu, Jan 9, 2014 at 11:34 AM, Alex Huang <Alex.Huang@citrix.com> wrote:

> Mike,
>
> If you're using eclipse, checkstyle has a plugin that you can install.
>  Point the plugin to the style file in tools/checkstyle/cloud-style.xml and
> it will use the same syntax.  I've always found it much easier to use the
> plugin than to read the build outputs.
>
> If you don't want to install the plugin, I don't think your log copy
> didn't include the actual errors.  You might want to look further up or
> down on your console to see what's the violation.
>
> --Alex
>
> > -----Original Message-----
> > From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com]
> > Sent: Thursday, January 9, 2014 9:49 AM
> > To: dev@cloudstack.apache.org
> > Subject: Unfamiliar with checkstyle
> >
> > Hi,
> >
> > I was merging some code from 4.3 to master and received three checkstyle
> > errors.
> >
> > I'm not really familiar with how to find out details of these errors. Can
> > someone point me to the right place to begin my investigation?
> >
> > All I see right now is the following:
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-checkstyle-plugin:2.11:check (default) on
> > project cloudstack: Failed during checkstyle execution: There are 3
> checkstyle
> > errors. -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> > goal org.apache.maven.plugins:maven-checkstyle-plugin:2.11:check
> (default)
> > on project cloudstack: Failed during checkstyle execution at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> > va:217)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> > va:153)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> > va:145)
> > at
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> > cycleModuleBuilder.java:84)
> > at
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> > cycleModuleBuilder.java:59)
> > at
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif
> > ecycleStarter.java:183)
> > at
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter
> > .java:161)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> > ava:57)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:606)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
> > er.java:290)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:23
> > 0)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
> > cher.java:409)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> > Caused by: org.apache.maven.plugin.MojoExecutionException: Failed during
> > checkstyle execution at
> > org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execut
> > e(CheckstyleViolationCheckMojo.java:422)
> > at
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
> > BuildPluginManager.java:101)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> > va:209)
> > ... 19 more
> > Caused by:
> > org.apache.maven.plugin.checkstyle.CheckstyleExecutorException:
> > There are 3 checkstyle errors.
> > at
> > org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.executeChe
> > ckstyle(DefaultCheckstyleExecutor.java:218)
> > at
> > org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execut
> > e(CheckstyleViolationCheckMojo.java:413)
> > ... 21 more
> >
> > Thanks!
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *(tm)*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message