Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-06 Thread Dennis Lundberg
Are you using your own custom checks or provide a custom 
packagenames.xml file? In that case see this page:


http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/custom-developed-checkstyle.html

Julien Simon wrote:

Thanks for the answer. So, I tried maven-checkstyle-plugin 2.2 and it didn't
work either, but that's a good beginning to have the correct plugin
version...
In the xml checkstyle configuration file where modules are defined, i tried
to change
module name=TreeWalker by module
name=com.puppycrawl.tools.checkstyle.TreeWalkerand it now works. I don't
really understand why we have to specify the fully qualified name of this
class, because it works fine when not using maven.




On Wed, Jun 4, 2008 at 11:47 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:


The Checkstyle plugin version 2.1 uses Checkstyle 4.1. So you can't use
stuff from Checkstyle 4.3 in your Checkstyle configuration.

Version 2.2 of the plugin, which is being released as we speak, uses
Checkstyle 4.4. Start by giving that version a try.


Julien Simon wrote:


Hi,
I'm trying  to integrate a checkstyle report in a maven project, but I'm
facing a problem. The checkstyle report is based on a custom checkstyle
check module I developed.
I'm using maven 2.0.9, maven-checkstyle-plugin 2.1, and checkstyle 4.3

When I execute mvn checkstyle:checkstyle or mvn site, I get the following
exception. I don't really understand why the TreeWalker can't be
instantiated.

Any help would be great!




[ERROR] BUILD ERROR
[INFO]

[INFO] An error has occurred in Checkstyle report generation.

Embedded error: Failed during checkstyle configuration
Unable to instantiate TreeWalkerCheck
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error has
occurred in Checkstyle report generation.
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
   at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:615)
   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: An error has
occurred in Checkstyle report generation.
   at

org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
   at

org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
   at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
   ... 16 more
Caused by: org.apache.maven.reporting.MavenReportException: Failed during
checkstyle configuration
   at

org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:488)
   at

org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
   at

org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
   ... 18 more
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot
initialize module TreeWalker - Unable to instantiate TreeWalker
   at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:165)
   at

com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:209)
   at

org.apache.maven.plugin.checkstyle.CheckstyleReport.executeCheckstyle(CheckstyleReport.java:723)
   at

org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:484)
   ... 20 more
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable
to instantiate TreeWalker
   at

com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:152)
   at 

Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-06 Thread Julien Simon
I'm using custom checks, I followed the procedure described on the web link
you gave me. Everything now works correctly.
Maybe I'm wrong but I think there's a mistake in this documentation: in the
pom.xml example, dependencies containing custom developed checks are placed
in the build extensions ... /extensions /build section. But when I
run maven with my dependencies configured like that, these dependencies are
not placed on the classpath and maven can't resolve my custom developed
checks. If I place my dependencies containing custom developed checks in the
plugin dependencies ... /dependencies /plugin section, it works
fine.

On Fri, Jun 6, 2008 at 1:54 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:

 Are you using your own custom checks or provide a custom packagenames.xml
 file? In that case see this page:


 http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/custom-developed-checkstyle.html


 Julien Simon wrote:

 Thanks for the answer. So, I tried maven-checkstyle-plugin 2.2 and it
 didn't
 work either, but that's a good beginning to have the correct plugin
 version...
 In the xml checkstyle configuration file where modules are defined, i
 tried
 to change
 module name=TreeWalker by module
 name=com.puppycrawl.tools.checkstyle.TreeWalkerand it now works. I
 don't
 really understand why we have to specify the fully qualified name of this
 class, because it works fine when not using maven.




 On Wed, Jun 4, 2008 at 11:47 PM, Dennis Lundberg [EMAIL PROTECTED]
 wrote:

  The Checkstyle plugin version 2.1 uses Checkstyle 4.1. So you can't use
 stuff from Checkstyle 4.3 in your Checkstyle configuration.

 Version 2.2 of the plugin, which is being released as we speak, uses
 Checkstyle 4.4. Start by giving that version a try.


 Julien Simon wrote:

  Hi,
 I'm trying  to integrate a checkstyle report in a maven project, but I'm
 facing a problem. The checkstyle report is based on a custom checkstyle
 check module I developed.
 I'm using maven 2.0.9, maven-checkstyle-plugin 2.1, and checkstyle 4.3

 When I execute mvn checkstyle:checkstyle or mvn site, I get the
 following
 exception. I don't really understand why the TreeWalker can't be
 instantiated.

 Any help would be great!




 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] An error has occurred in Checkstyle report generation.

 Embedded error: Failed during checkstyle configuration
 Unable to instantiate TreeWalkerCheck
 [INFO]
 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: An error has
 occurred in Checkstyle report generation.
   at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
   at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
   at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
   at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
   at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
   at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at


 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
   at


 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:615)
   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: An error has
 occurred in Checkstyle report generation.
   at


 org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
   at


 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
   at


 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
   ... 16 more
 Caused by: org.apache.maven.reporting.MavenReportException: Failed
 during
 checkstyle configuration
   at


 org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:488)
   at


 org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
   at


 org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
   ... 18 

Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-06 Thread Dennis Lundberg

Hi

You probably still have the old version of that page cached in your 
browser. A new corrected version of the page was deployed on June 4. 
Check that the publish date matches.


You are correct that your checks should be added as a plugin dependency.

Julien Simon wrote:

I'm using custom checks, I followed the procedure described on the web link
you gave me. Everything now works correctly.
Maybe I'm wrong but I think there's a mistake in this documentation: in the
pom.xml example, dependencies containing custom developed checks are placed
in the build extensions ... /extensions /build section. But when I
run maven with my dependencies configured like that, these dependencies are
not placed on the classpath and maven can't resolve my custom developed
checks. If I place my dependencies containing custom developed checks in the
plugin dependencies ... /dependencies /plugin section, it works
fine.

On Fri, Jun 6, 2008 at 1:54 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:


Are you using your own custom checks or provide a custom packagenames.xml
file? In that case see this page:


http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/custom-developed-checkstyle.html


Julien Simon wrote:


Thanks for the answer. So, I tried maven-checkstyle-plugin 2.2 and it
didn't
work either, but that's a good beginning to have the correct plugin
version...
In the xml checkstyle configuration file where modules are defined, i
tried
to change
module name=TreeWalker by module
name=com.puppycrawl.tools.checkstyle.TreeWalkerand it now works. I
don't
really understand why we have to specify the fully qualified name of this
class, because it works fine when not using maven.




On Wed, Jun 4, 2008 at 11:47 PM, Dennis Lundberg [EMAIL PROTECTED]
wrote:

 The Checkstyle plugin version 2.1 uses Checkstyle 4.1. So you can't use

stuff from Checkstyle 4.3 in your Checkstyle configuration.

Version 2.2 of the plugin, which is being released as we speak, uses
Checkstyle 4.4. Start by giving that version a try.


Julien Simon wrote:

 Hi,

I'm trying  to integrate a checkstyle report in a maven project, but I'm
facing a problem. The checkstyle report is based on a custom checkstyle
check module I developed.
I'm using maven 2.0.9, maven-checkstyle-plugin 2.1, and checkstyle 4.3

When I execute mvn checkstyle:checkstyle or mvn site, I get the
following
exception. I don't really understand why the TreeWalker can't be
instantiated.

Any help would be great!




[ERROR] BUILD ERROR
[INFO]

[INFO] An error has occurred in Checkstyle report generation.

Embedded error: Failed during checkstyle configuration
Unable to instantiate TreeWalkerCheck
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error has
occurred in Checkstyle report generation.
  at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
  at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
  at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
  at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
  at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
  at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
  at


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:615)
  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: An error has
occurred in Checkstyle report generation.
  at


org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
  at


org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
  at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
  ... 16 more
Caused by: org.apache.maven.reporting.MavenReportException: Failed
during
checkstyle configuration
  at


org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:488)

Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-05 Thread Julien Simon
Thanks for the answer. So, I tried maven-checkstyle-plugin 2.2 and it didn't
work either, but that's a good beginning to have the correct plugin
version...
In the xml checkstyle configuration file where modules are defined, i tried
to change
module name=TreeWalker by module
name=com.puppycrawl.tools.checkstyle.TreeWalkerand it now works. I don't
really understand why we have to specify the fully qualified name of this
class, because it works fine when not using maven.




On Wed, Jun 4, 2008 at 11:47 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:

 The Checkstyle plugin version 2.1 uses Checkstyle 4.1. So you can't use
 stuff from Checkstyle 4.3 in your Checkstyle configuration.

 Version 2.2 of the plugin, which is being released as we speak, uses
 Checkstyle 4.4. Start by giving that version a try.


 Julien Simon wrote:

 Hi,
 I'm trying  to integrate a checkstyle report in a maven project, but I'm
 facing a problem. The checkstyle report is based on a custom checkstyle
 check module I developed.
 I'm using maven 2.0.9, maven-checkstyle-plugin 2.1, and checkstyle 4.3

 When I execute mvn checkstyle:checkstyle or mvn site, I get the following
 exception. I don't really understand why the TreeWalker can't be
 instantiated.

 Any help would be great!




 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] An error has occurred in Checkstyle report generation.

 Embedded error: Failed during checkstyle configuration
 Unable to instantiate TreeWalkerCheck
 [INFO]
 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: An error has
 occurred in Checkstyle report generation.
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
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: An error has
 occurred in Checkstyle report generation.
at

 org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
at

 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
 Caused by: org.apache.maven.reporting.MavenReportException: Failed during
 checkstyle configuration
at

 org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:488)
at

 org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at

 org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
... 18 more
 Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot
 initialize module TreeWalker - Unable to instantiate TreeWalker
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:165)
at

 com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:209)
at

 org.apache.maven.plugin.checkstyle.CheckstyleReport.executeCheckstyle(CheckstyleReport.java:723)
at

 org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:484)
... 20 more
 Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable
 to instantiate TreeWalker
at

 com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:152)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:140)
... 23 more
 Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable
 to instantiate TreeWalkerCheck

Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-04 Thread Dennis Lundberg
The Checkstyle plugin version 2.1 uses Checkstyle 4.1. So you can't use 
stuff from Checkstyle 4.3 in your Checkstyle configuration.


Version 2.2 of the plugin, which is being released as we speak, uses 
Checkstyle 4.4. Start by giving that version a try.


Julien Simon wrote:

Hi,
I'm trying  to integrate a checkstyle report in a maven project, but I'm
facing a problem. The checkstyle report is based on a custom checkstyle
check module I developed.
I'm using maven 2.0.9, maven-checkstyle-plugin 2.1, and checkstyle 4.3

When I execute mvn checkstyle:checkstyle or mvn site, I get the following
exception. I don't really understand why the TreeWalker can't be
instantiated.

Any help would be great!




[ERROR] BUILD ERROR
[INFO]

[INFO] An error has occurred in Checkstyle report generation.

Embedded error: Failed during checkstyle configuration
Unable to instantiate TreeWalkerCheck
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error has
occurred in Checkstyle report generation.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
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: An error has
occurred in Checkstyle report generation.
at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by: org.apache.maven.reporting.MavenReportException: Failed during
checkstyle configuration
at
org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:488)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
... 18 more
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot
initialize module TreeWalker - Unable to instantiate TreeWalker
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:165)
at
com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:209)
at
org.apache.maven.plugin.checkstyle.CheckstyleReport.executeCheckstyle(CheckstyleReport.java:723)
at
org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:484)
... 20 more
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable
to instantiate TreeWalker
at
com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:152)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:140)
... 23 more
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable
to instantiate TreeWalkerCheck
at
com.puppycrawl.tools.checkstyle.PackageObjectFactory.doMakeObject(PackageObjectFactory.java:94)
at
com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:149)
... 24 more




--
Dennis Lundberg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Checkstyle Problem

2008-01-31 Thread Mitesh51

When I put ur block in pom.xml and try to run on simple maven then it gives
the following error.

'run' was specified in an execution, but not found in the plugin



nicklist wrote:
 
 What goals are you running from continuum?
 
 You could attach the checkstyle:checkstyle goal to another phase:
 build
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-checkstyle-plugin/artifactId
 executions
 execution
 goals
 goalrun/goal
 /goals
 phaseverify/phase
 execution
 executions
 /plugin
 /plugins
 /build
 
 Hth,
 
 Nick Stolwijk
 
 -Original Message-
 From: Mitesh51 [mailto:[EMAIL PROTECTED]
 Sent: Thu 1/31/2008 11:40 AM
 To: continuum-users@maven.apache.org
 Subject: RE: Checkstyle Problem
  
 
 What i want to do is generate a checkstyle report.
 
 I can do thais via mvn checkstyle:checkstyle from command prompt but i am
 not able to generate that report when i use the continumm to run the Maven
 project.
 
 If u have yahoo id then can u give me?
 
 Please I need the solution very urgently. 
 
 
 nicklist wrote:
 
 What goals or phase are you running from Continuum? The reporting section
 is only used when generating a site (thus, running mvn site) and not when
 running an install or deploy.
 
 Hth,
 
 Nick Stolwijk
 
 ps. I don't think you need the checkstyle artifact as dependency. This
 way
 it will be included in your project.
 
 
 -Original Message-
 From: Mitesh51 [mailto:[EMAIL PROTECTED]
 Sent: Thu 1/31/2008 11:07 AM
 To: continuum-users@maven.apache.org
 Subject: Checkstyle Problem
  
 
 I want to use checkstyle plugin and use it in continuum.
 
 My pom.xml looks like .
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   namemy-app/name
   urlhttp://maven.apache.org/url
 scm
  connection
 
 scm:svn:svn://shikhas:[EMAIL 
 PROTECTED]/iLabsDevRepo/Source/trunk/iTraining/trunk/maven/my-app/
  /connection
 /scm
 
   dependencies
dependency
   groupIdcheckstyle/groupId
   artifactIdcheckstyle/artifactId
   version4.1/version
typejar/type
   scopepackage/scope
optionaltrue/optional
 /dependency
 
   /dependencies
 
  reporting 
 plugins 
 plugin 

 groupIdorg.apache.maven.plugins/groupId 

 artifactIdmaven-checkstyle-plugin/artifactId 
 configuration 
 configLocationD:\ILabs
 Task\Maven\checkstyle-4.4\sun_checks.xml/configLocation 
 /configuration 
 /plugin 
 /plugins 
 /reporting 
 
 /project
 
 It is downloading the jars necessary for the checkstyle but it is not
 generating the checkstyle documents.
 
 Is there anything missing in pom.xml?
 
 After running the build script in continuum, It does not generate the
 checkstyle reports in the Output directory with the use of continuum.
 
 Any Suggestions??
 -- 
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201303.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201976.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Checkstyle-Problem-tp15201303p15202595.html
Sent from the Continuum - Users mailing list archive at Nabble.com.



RE: Checkstyle Problem

2008-01-31 Thread nicklist
Please throw away the first, the goal jar:install is not valid.

If you use the second, with my configuration it should work.

Hth,

Nick Stolwijk

-Original Message-
From: Mitesh51 [mailto:[EMAIL PROTECTED]
Sent: Thu 1/31/2008 12:07 PM
To: continuum-users@maven.apache.org
Subject: RE: Checkstyle Problem
 

in Continuum- Bulild Defination Template, There are 2 Goals 

clean:clean jar:install

clean install


MATHUS Baptiste wrote:
 
 Hi,
 
 If you need something urgently as you say, better would be to try to
 answer questions asked by those who try to help you :-). 
 
 *What goal did you configure inside Continuum for your project ?*
 
 To generate the reports, you have to use mvn site at least. If not, the
 site, and so the integrated reports won't be generated.
 
 Cheers.
 
 -Message d'origine-
 De : Mitesh51 [mailto:[EMAIL PROTECTED] 
 Envoyé : jeudi 31 janvier 2008 11:40
 À : continuum-users@maven.apache.org
 Objet : RE: Checkstyle Problem
 
 
 What i want to do is generate a checkstyle report.
 
 I can do thais via mvn checkstyle:checkstyle from command prompt but i am
 not able to generate that report when i use the continumm to run the Maven
 project.
 
 If u have yahoo id then can u give me?
 
 Please I need the solution very urgently. 
 
 
 nicklist wrote:
 
 What goals or phase are you running from Continuum? The reporting 
 section is only used when generating a site (thus, running mvn site) 
 and not when running an install or deploy.
 
 Hth,
 
 Nick Stolwijk
 
 ps. I don't think you need the checkstyle artifact as dependency. This 
 way it will be included in your project.
 
 
 -Original Message-
 From: Mitesh51 [mailto:[EMAIL PROTECTED]
 Sent: Thu 1/31/2008 11:07 AM
 To: continuum-users@maven.apache.org
 Subject: Checkstyle Problem
  
 
 I want to use checkstyle plugin and use it in continuum.
 
 My pom.xml looks like .
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   namemy-app/name
   urlhttp://maven.apache.org/url
 scm
  connection
 
 scm:svn:svn://shikhas:[EMAIL 
 PROTECTED]/iLabsDevRepo/Source/trunk/iTraining/trunk/maven/my-app/
  /connection
 /scm
 
   dependencies
dependency
   groupIdcheckstyle/groupId
   artifactIdcheckstyle/artifactId
   version4.1/version
typejar/type
   scopepackage/scope
optionaltrue/optional
 /dependency
 
   /dependencies
 
  reporting 
 plugins 
 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-checkstyle-plugin/artifactId 
 configuration 
 configLocationD:\ILabs 
 Task\Maven\checkstyle-4.4\sun_checks.xml/configLocation
 /configuration 
 /plugin 
 /plugins 
 /reporting
 
 /project
 
 It is downloading the jars necessary for the checkstyle but it is not 
 generating the checkstyle documents.
 
 Is there anything missing in pom.xml?
 
 After running the build script in continuum, It does not generate the 
 checkstyle reports in the Output directory with the use of continuum.
 
 Any Suggestions??
 --
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201303.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 
 
 --
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201976.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 

-- 
View this message in context: 
http://www.nabble.com/Checkstyle-Problem-tp15201303p15202330.html
Sent from the Continuum - Users mailing list archive at Nabble.com.




RE: Checkstyle Problem

2008-01-31 Thread nicklist
What goals are you running from continuum?

You could attach the checkstyle:checkstyle goal to another phase:
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-checkstyle-plugin/artifactId
executions
execution
goals
goalrun/goal
/goals
phaseverify/phase
execution
executions
/plugin
/plugins
/build

Hth,

Nick Stolwijk

-Original Message-
From: Mitesh51 [mailto:[EMAIL PROTECTED]
Sent: Thu 1/31/2008 11:40 AM
To: [EMAIL PROTECTED]
Subject: RE: Checkstyle Problem
 

What i want to do is generate a checkstyle report.

I can do thais via mvn checkstyle:checkstyle from command prompt but i am
not able to generate that report when i use the continumm to run the Maven
project.

If u have yahoo id then can u give me?

Please I need the solution very urgently. 


nicklist wrote:
 
 What goals or phase are you running from Continuum? The reporting section
 is only used when generating a site (thus, running mvn site) and not when
 running an install or deploy.
 
 Hth,
 
 Nick Stolwijk
 
 ps. I don't think you need the checkstyle artifact as dependency. This way
 it will be included in your project.
 
 
 -Original Message-
 From: Mitesh51 [mailto:[EMAIL PROTECTED]
 Sent: Thu 1/31/2008 11:07 AM
 To: [EMAIL PROTECTED]
 Subject: Checkstyle Problem
  
 
 I want to use checkstyle plugin and use it in continuum.
 
 My pom.xml looks like .
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   namemy-app/name
   urlhttp://maven.apache.org/url
 scm
   connection
 
 scm:svn:svn://shikhas:[EMAIL 
 PROTECTED]/iLabsDevRepo/Source/trunk/iTraining/trunk/maven/my-app/
   /connection
 /scm
 
   dependencies
dependency
   groupIdcheckstyle/groupId
   artifactIdcheckstyle/artifactId
   version4.1/version
 typejar/type
   scopepackage/scope
 optionaltrue/optional
 /dependency
 
   /dependencies
 
   reporting 
 plugins 
 plugin 

 groupIdorg.apache.maven.plugins/groupId 

 artifactIdmaven-checkstyle-plugin/artifactId 
 configuration 
 configLocationD:\ILabs
 Task\Maven\checkstyle-4.4\sun_checks.xml/configLocation 
 /configuration 
 /plugin 
 /plugins 
 /reporting 
 
 /project
 
 It is downloading the jars necessary for the checkstyle but it is not
 generating the checkstyle documents.
 
 Is there anything missing in pom.xml?
 
 After running the build script in continuum, It does not generate the
 checkstyle reports in the Output directory with the use of continuum.
 
 Any Suggestions??
 -- 
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201303.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Checkstyle-Problem-tp15201303p15201976.html
Sent from the Continuum - Users mailing list archive at Nabble.com.




RE: Checkstyle Problem

2008-01-31 Thread Mitesh51

What i want to do is generate a checkstyle report.

I can do thais via mvn checkstyle:checkstyle from command prompt but i am
not able to generate that report when i use the continumm to run the Maven
project.

If u have yahoo id then can u give me?

Please I need the solution very urgently. 


nicklist wrote:
 
 What goals or phase are you running from Continuum? The reporting section
 is only used when generating a site (thus, running mvn site) and not when
 running an install or deploy.
 
 Hth,
 
 Nick Stolwijk
 
 ps. I don't think you need the checkstyle artifact as dependency. This way
 it will be included in your project.
 
 
 -Original Message-
 From: Mitesh51 [mailto:[EMAIL PROTECTED]
 Sent: Thu 1/31/2008 11:07 AM
 To: [EMAIL PROTECTED]
 Subject: Checkstyle Problem
  
 
 I want to use checkstyle plugin and use it in continuum.
 
 My pom.xml looks like .
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   namemy-app/name
   urlhttp://maven.apache.org/url
 scm
   connection
 
 scm:svn:svn://shikhas:[EMAIL 
 PROTECTED]/iLabsDevRepo/Source/trunk/iTraining/trunk/maven/my-app/
   /connection
 /scm
 
   dependencies
dependency
   groupIdcheckstyle/groupId
   artifactIdcheckstyle/artifactId
   version4.1/version
 typejar/type
   scopepackage/scope
 optionaltrue/optional
 /dependency
 
   /dependencies
 
   reporting 
 plugins 
 plugin 

 groupIdorg.apache.maven.plugins/groupId 

 artifactIdmaven-checkstyle-plugin/artifactId 
 configuration 
 configLocationD:\ILabs
 Task\Maven\checkstyle-4.4\sun_checks.xml/configLocation 
 /configuration 
 /plugin 
 /plugins 
 /reporting 
 
 /project
 
 It is downloading the jars necessary for the checkstyle but it is not
 generating the checkstyle documents.
 
 Is there anything missing in pom.xml?
 
 After running the build script in continuum, It does not generate the
 checkstyle reports in the Output directory with the use of continuum.
 
 Any Suggestions??
 -- 
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201303.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Checkstyle-Problem-tp15201303p15201976.html
Sent from the Continuum - Users mailing list archive at Nabble.com.



RE: Checkstyle Problem

2008-01-31 Thread MATHUS Baptiste
Hi,

If you need something urgently as you say, better would be to try to answer 
questions asked by those who try to help you :-). 

*What goal did you configure inside Continuum for your project ?*

To generate the reports, you have to use mvn site at least. If not, the site, 
and so the integrated reports won't be generated.

Cheers.

-Message d'origine-
De : Mitesh51 [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 31 janvier 2008 11:40
À : [EMAIL PROTECTED]
Objet : RE: Checkstyle Problem


What i want to do is generate a checkstyle report.

I can do thais via mvn checkstyle:checkstyle from command prompt but i am not 
able to generate that report when i use the continumm to run the Maven project.

If u have yahoo id then can u give me?

Please I need the solution very urgently. 


nicklist wrote:
 
 What goals or phase are you running from Continuum? The reporting 
 section is only used when generating a site (thus, running mvn site) 
 and not when running an install or deploy.
 
 Hth,
 
 Nick Stolwijk
 
 ps. I don't think you need the checkstyle artifact as dependency. This 
 way it will be included in your project.
 
 
 -Original Message-
 From: Mitesh51 [mailto:[EMAIL PROTECTED]
 Sent: Thu 1/31/2008 11:07 AM
 To: [EMAIL PROTECTED]
 Subject: Checkstyle Problem
  
 
 I want to use checkstyle plugin and use it in continuum.
 
 My pom.xml looks like .
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   namemy-app/name
   urlhttp://maven.apache.org/url
 scm
   connection
 
 scm:svn:svn://shikhas:[EMAIL 
 PROTECTED]/iLabsDevRepo/Source/trunk/iTraining/trunk/maven/my-app/
   /connection
 /scm
 
   dependencies
dependency
   groupIdcheckstyle/groupId
   artifactIdcheckstyle/artifactId
   version4.1/version
 typejar/type
   scopepackage/scope
 optionaltrue/optional
 /dependency
 
   /dependencies
 
   reporting 
 plugins 
 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-checkstyle-plugin/artifactId 
 configuration 
 configLocationD:\ILabs 
 Task\Maven\checkstyle-4.4\sun_checks.xml/configLocation
 /configuration 
 /plugin 
 /plugins 
 /reporting
 
 /project
 
 It is downloading the jars necessary for the checkstyle but it is not 
 generating the checkstyle documents.
 
 Is there anything missing in pom.xml?
 
 After running the build script in continuum, It does not generate the 
 checkstyle reports in the Output directory with the use of continuum.
 
 Any Suggestions??
 --
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201303.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 

--
View this message in context: 
http://www.nabble.com/Checkstyle-Problem-tp15201303p15201976.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


RE: Checkstyle Problem

2008-01-31 Thread Mitesh51

in Continuum- Bulild Defination Template, There are 2 Goals 

clean:clean jar:install

clean install


MATHUS Baptiste wrote:
 
 Hi,
 
 If you need something urgently as you say, better would be to try to
 answer questions asked by those who try to help you :-). 
 
 *What goal did you configure inside Continuum for your project ?*
 
 To generate the reports, you have to use mvn site at least. If not, the
 site, and so the integrated reports won't be generated.
 
 Cheers.
 
 -Message d'origine-
 De : Mitesh51 [mailto:[EMAIL PROTECTED] 
 Envoyé : jeudi 31 janvier 2008 11:40
 À : [EMAIL PROTECTED]
 Objet : RE: Checkstyle Problem
 
 
 What i want to do is generate a checkstyle report.
 
 I can do thais via mvn checkstyle:checkstyle from command prompt but i am
 not able to generate that report when i use the continumm to run the Maven
 project.
 
 If u have yahoo id then can u give me?
 
 Please I need the solution very urgently. 
 
 
 nicklist wrote:
 
 What goals or phase are you running from Continuum? The reporting 
 section is only used when generating a site (thus, running mvn site) 
 and not when running an install or deploy.
 
 Hth,
 
 Nick Stolwijk
 
 ps. I don't think you need the checkstyle artifact as dependency. This 
 way it will be included in your project.
 
 
 -Original Message-
 From: Mitesh51 [mailto:[EMAIL PROTECTED]
 Sent: Thu 1/31/2008 11:07 AM
 To: [EMAIL PROTECTED]
 Subject: Checkstyle Problem
  
 
 I want to use checkstyle plugin and use it in continuum.
 
 My pom.xml looks like .
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   namemy-app/name
   urlhttp://maven.apache.org/url
 scm
  connection
 
 scm:svn:svn://shikhas:[EMAIL 
 PROTECTED]/iLabsDevRepo/Source/trunk/iTraining/trunk/maven/my-app/
  /connection
 /scm
 
   dependencies
dependency
   groupIdcheckstyle/groupId
   artifactIdcheckstyle/artifactId
   version4.1/version
typejar/type
   scopepackage/scope
optionaltrue/optional
 /dependency
 
   /dependencies
 
  reporting 
 plugins 
 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-checkstyle-plugin/artifactId 
 configuration 
 configLocationD:\ILabs 
 Task\Maven\checkstyle-4.4\sun_checks.xml/configLocation
 /configuration 
 /plugin 
 /plugins 
 /reporting
 
 /project
 
 It is downloading the jars necessary for the checkstyle but it is not 
 generating the checkstyle documents.
 
 Is there anything missing in pom.xml?
 
 After running the build script in continuum, It does not generate the 
 checkstyle reports in the Output directory with the use of continuum.
 
 Any Suggestions??
 --
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201303.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 
 
 --
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201976.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 

-- 
View this message in context: 
http://www.nabble.com/Checkstyle-Problem-tp15201303p15202330.html
Sent from the Continuum - Users mailing list archive at Nabble.com.



RE: Checkstyle Problem

2008-01-31 Thread Mitesh51

Thank you Very much.

Things worked.

I will be grateful to u for ur help.


nicklist wrote:
 
 Please throw away the first, the goal jar:install is not valid.
 
 If you use the second, with my configuration it should work.
 
 Hth,
 
 Nick Stolwijk
 
 -Original Message-
 From: Mitesh51 [mailto:[EMAIL PROTECTED]
 Sent: Thu 1/31/2008 12:07 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Checkstyle Problem
  
 
 in Continuum- Bulild Defination Template, There are 2 Goals 
 
 clean:clean jar:install
 
 clean install
 
 
 MATHUS Baptiste wrote:
 
 Hi,
 
 If you need something urgently as you say, better would be to try to
 answer questions asked by those who try to help you :-). 
 
 *What goal did you configure inside Continuum for your project ?*
 
 To generate the reports, you have to use mvn site at least. If not, the
 site, and so the integrated reports won't be generated.
 
 Cheers.
 
 -Message d'origine-
 De : Mitesh51 [mailto:[EMAIL PROTECTED] 
 Envoyé : jeudi 31 janvier 2008 11:40
 À : [EMAIL PROTECTED]
 Objet : RE: Checkstyle Problem
 
 
 What i want to do is generate a checkstyle report.
 
 I can do thais via mvn checkstyle:checkstyle from command prompt but i am
 not able to generate that report when i use the continumm to run the
 Maven
 project.
 
 If u have yahoo id then can u give me?
 
 Please I need the solution very urgently. 
 
 
 nicklist wrote:
 
 What goals or phase are you running from Continuum? The reporting 
 section is only used when generating a site (thus, running mvn site) 
 and not when running an install or deploy.
 
 Hth,
 
 Nick Stolwijk
 
 ps. I don't think you need the checkstyle artifact as dependency. This 
 way it will be included in your project.
 
 
 -Original Message-
 From: Mitesh51 [mailto:[EMAIL PROTECTED]
 Sent: Thu 1/31/2008 11:07 AM
 To: [EMAIL PROTECTED]
 Subject: Checkstyle Problem
  
 
 I want to use checkstyle plugin and use it in continuum.
 
 My pom.xml looks like .
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   namemy-app/name
   urlhttp://maven.apache.org/url
 scm
 connection
 
 scm:svn:svn://shikhas:[EMAIL 
 PROTECTED]/iLabsDevRepo/Source/trunk/iTraining/trunk/maven/my-app/
 /connection
 /scm
 
   dependencies
dependency
   groupIdcheckstyle/groupId
   artifactIdcheckstyle/artifactId
   version4.1/version
   typejar/type
   scopepackage/scope
   optionaltrue/optional
 /dependency
 
   /dependencies
 
 reporting 
 plugins 
 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-checkstyle-plugin/artifactId 
 configuration 
 configLocationD:\ILabs 
 Task\Maven\checkstyle-4.4\sun_checks.xml/configLocation
 /configuration 
 /plugin 
 /plugins 
 /reporting
 
 /project
 
 It is downloading the jars necessary for the checkstyle but it is not 
 generating the checkstyle documents.
 
 Is there anything missing in pom.xml?
 
 After running the build script in continuum, It does not generate the 
 checkstyle reports in the Output directory with the use of continuum.
 
 Any Suggestions??
 --
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201303.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 
 
 --
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15201976.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/Checkstyle-Problem-tp15201303p15202330.html
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Checkstyle-Problem-tp15201303p15205211.html
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Checkstyle problem

2003-11-19 Thread dion
Serkan GUNES [EMAIL PROTECTED] wrote on 17/11/2003 07:56:01 PM:

 Hello
 
 I have some problems about the maven checkstyle plugin.
 I am using maven-checkstyle-plugin2.1. I have issued maven 
 checkstyle command at my project home directory. First I got a 
 warning like this.
 

[snip]

 BUILD FAILED
 File.. file:/C:/Documents and 
Settings/myuser/.maven/plugins/maven-checks
 tyle-plugin-2.1/
 Element... ant:checkstyle
 Line.. 127
 Column 65
 antlr/TokenStreamException
 
 Am I doing something wrong?
 I will be very pleased if you help me.
 Best Regards,

It looks like you have an error reading the source code.

Could you run maven -e checkstyle:report and post the stacktrace?

--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]