Hudson with Maven and Checkstyle

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Hudson with Maven and Checkstyle

vetalok
Hi all,
I have maven2 ptoject.
Pom.xml of Jproject contains maven-surefire-plugin, <report> section contains maven-checkstyle-plugin.
Can someone give me the answer to the following questions:
1. How can I change tests duration time from seconds (default value) to milliseconds?
2. How can I use violations plugin in my maven project (wiki says: Note: the violations plugin does *not* work for hudson maven project).
Is it possible to use maven checkstyle plugin? I have run my project with checkstyle:checkstyle goal but there in no link in Hudson that points to the report generated by maven-checkstyleplugin :(.
3. How can I add the link in Hudson that points to the report generated by maven-checkstyleplugin or by another plugin.

Please, give me advice.
Thanks for your attention.

--
Best regards,
Vitaliy
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

stephenconnolly
Use the freestyle project build and that will give you the violations
plugin working with your maven2 project

On Dec 17, 2007 7:01 PM, Vitaliy Obmanyuk <[hidden email]> wrote:

> Hi all,
> I have maven2 ptoject.
> Pom.xml of Jproject contains maven-surefire-plugin, <report> section
> contains maven-checkstyle-plugin.
> Can someone give me the answer to the following questions:
> 1. How can I change tests duration time from seconds (default value) to
> milliseconds?
> 2. How can I use violations plugin in my maven project (wiki says: Note: the
> violations plugin does *not* work for hudson maven project).
> Is it possible to use maven checkstyle plugin? I have run my project with
> checkstyle:checkstyle goal but there in no link in Hudson that points to the
> report generated by maven-checkstyleplugin :(.
> 3. How can I add the link in Hudson that points to the report generated by
> maven-checkstyleplugin or by another plugin.
>
> Please, give me advice.
> Thanks for your attention.
>
> --
> Best regards,
> Vitaliy

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

Kohsuke Kawaguchi
Administrator
In reply to this post by vetalok
Vitaliy Obmanyuk wrote:

> Hi all,
> I have maven2 ptoject.
> Pom.xml of Jproject contains maven-surefire-plugin, <report> section
> contains maven-checkstyle-plugin.
> Can someone give me the answer to the following questions:
> 1. How can I change tests duration time from seconds (default value) to
> milliseconds?
> 2. How can I use violations plugin in my maven project (*wiki says: Note:
> the violations plugin does *not* work for hudson maven project*).
> Is it possible to use maven checkstyle plugin? I have run my project with
> checkstyle:checkstyle goal but there in no link in Hudson that points to the
> report generated by maven-checkstyleplugin :(.
> 3. How can I add the link in Hudson that points to the report generated by
> maven-checkstyleplugin or by another plugin.
How do you generate reports? "mvn site"? Is there any other way to
generate reports?

I think Hudson should listen to generated reports and try to do
something with it, but I'd like to better understand how people do this.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

stephenconnolly
you don't have to call the site lifecycle to generate the reports. You
can just call the maven goals direct

On Dec 18, 2007 1:54 AM, Kohsuke Kawaguchi <[hidden email]> wrote:

>
> Vitaliy Obmanyuk wrote:
> > Hi all,
> > I have maven2 ptoject.
> > Pom.xml of Jproject contains maven-surefire-plugin, <report> section
> > contains maven-checkstyle-plugin.
> > Can someone give me the answer to the following questions:
> > 1. How can I change tests duration time from seconds (default value) to
> > milliseconds?
> > 2. How can I use violations plugin in my maven project (*wiki says: Note:
> > the violations plugin does *not* work for hudson maven project*).
> > Is it possible to use maven checkstyle plugin? I have run my project with
> > checkstyle:checkstyle goal but there in no link in Hudson that points to the
> > report generated by maven-checkstyleplugin :(.
> > 3. How can I add the link in Hudson that points to the report generated by
> > maven-checkstyleplugin or by another plugin.
>
> How do you generate reports? "mvn site"? Is there any other way to
> generate reports?
>
> I think Hudson should listen to generated reports and try to do
> something with it, but I'd like to better understand how people do this.
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems                   [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

vetalok
Hi all

Special thanks to Stephen and Kohsuke :)

2007/12/18, Stephen Connolly <[hidden email]>:
you don't have to call the site lifecycle to generate the reports. You
can just call the maven goals direct

I tried this goal:
clean install checkstyle:checkstyle
then this:
checkstyle:checkstyle
Generated reports are in
C:\Users\Vetal\.hudson\jobs\core\workspace\core\target\site\checkstyle.html
but there is no any link on the report generated by maven checkstyle plugin in Hudson UI.

2007/12/18, Kohsuke Kawaguchi <[hidden email]>:
> How do you generate reports? "mvn site"? Is there any other way to
> generate reports?
>
> I think Hudson should listen to generated reports and try to do

It seems Hudson does not do so :( 

> something with it, but I'd like to better understand how people do this.

I have searching the answer on the maillist archive but did not find any suitable solution

2007/12/17, Stephen Connolly <[hidden email]>:
Use the freestyle project build and that will give you the violations
plugin working with your maven2 project

Yes but freestyle project is another type of project, so the logic of testing will be very difficult
I need just add link to checkstyle.html in Hudson UI

Any other ideas?

--
Best regards,
Vitaliy
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

stephenconnolly
On Dec 18, 2007 8:39 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> Hi all
>  2007/12/17, Stephen Connolly <[hidden email]>:
> > Use the freestyle project build and that will give you the violations
> > plugin working with your maven2 project
>
>  Yes but freestyle project is another type of project, so the logic of
> testing will be very difficult
> I need just add link to checkstyle.html in Hudson UI

There's the quick hack:

edit the project description (Button on the right hand side of the
screen on project view) and put an <a
href="workspace/target/site/checkstyle.html">Checkstyle</a> into the
description

>
> Any other ideas?
>
> --
> Best regards,
> Vitaliy

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

edit_proj_desc1.jpg (201K) Download Attachment
edit_proj_result.jpg (185K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

vetalok
Hi Stephen,
This looks great but another problem has appeared:
checkstyle results are in "
workspace" folder, not in "builds" folder, so there is no posibility to view progress ( e.g compare with previous build).

2007/12/18, Stephen Connolly <[hidden email]>:
On Dec 18, 2007 8:39 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> Hi all
>  2007/12/17, Stephen Connolly <[hidden email]>:
> > Use the freestyle project build and that will give you the violations
> > plugin working with your maven2 project
>
>  Yes but freestyle project is another type of project, so the logic of
> testing will be very difficult
> I need just add link to checkstyle.html in Hudson UI

There's the quick hack:

edit the project description (Button on the right hand side of the
screen on project view) and put an <a
href="workspace/target/site/checkstyle.html">Checkstyle</a> into the
description

>
> Any other ideas?
>
> --
> Best regards,
> Vitaliy

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Best regards,
Vitaliy
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

stephenconnolly
Sorry out of luck.... it's only a quick hack..

What I would do for trending is have a second freestyle project that
just runs the Maven checkstyle:checkstyle goal and uses the violations
plugin to present the trend graphs

That would probably give you faster feedback on the checkstyles too...

On Dec 18, 2007 9:04 AM, Vitaliy Obmanyuk <[hidden email]> wrote:

> Hi Stephen,
> This looks great but another problem has appeared:
> checkstyle results are in "workspace" folder, not in "builds" folder, so
> there is no posibility to view progress ( e.g compare with previous build).
>
> 2007/12/18, Stephen Connolly <[hidden email]>:
> >
> >
> >
> > On Dec 18, 2007 8:39 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> > > Hi all
> > >  2007/12/17, Stephen Connolly <[hidden email] >:
> > > > Use the freestyle project build and that will give you the violations
> > > > plugin working with your maven2 project
> > >
> > >  Yes but freestyle project is another type of project, so the logic of
> > > testing will be very difficult
> > > I need just add link to checkstyle.html in Hudson UI
> >
> > There's the quick hack:
> >
> > edit the project description (Button on the right hand side of the
> > screen on project view) and put an <a
> > href="workspace/target/site/checkstyle.html">Checkstyle</a> into the
> > description
> >
> > >
> > > Any other ideas?
> > >
> > > --
> > > Best regards,
> > > Vitaliy
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
>
> --
> Best regards,
> Vitaliy

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

stephenconnolly
The other option is to pester the Peter "ANT-committer" Reilly to
support the m2 project type ;-)

I'm not so sure how successful you'll be with that though... he only
uses maven under protest and even then only if I set it up for him ;-)

On Dec 18, 2007 9:28 AM, Stephen Connolly
<[hidden email]> wrote:

> Sorry out of luck.... it's only a quick hack..
>
> What I would do for trending is have a second freestyle project that
> just runs the Maven checkstyle:checkstyle goal and uses the violations
> plugin to present the trend graphs
>
> That would probably give you faster feedback on the checkstyles too...
>
>
> On Dec 18, 2007 9:04 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> > Hi Stephen,
> > This looks great but another problem has appeared:
> > checkstyle results are in "workspace" folder, not in "builds" folder, so
> > there is no posibility to view progress ( e.g compare with previous build).
> >
> > 2007/12/18, Stephen Connolly <[hidden email]>:
> > >
> > >
> > >
> > > On Dec 18, 2007 8:39 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> > > > Hi all
> > > >  2007/12/17, Stephen Connolly <[hidden email] >:
> > > > > Use the freestyle project build and that will give you the violations
> > > > > plugin working with your maven2 project
> > > >
> > > >  Yes but freestyle project is another type of project, so the logic of
> > > > testing will be very difficult
> > > > I need just add link to checkstyle.html in Hudson UI
> > >
> > > There's the quick hack:
> > >
> > > edit the project description (Button on the right hand side of the
> > > screen on project view) and put an <a
> > > href="workspace/target/site/checkstyle.html">Checkstyle</a> into the
> > > description
> > >
> > > >
> > > > Any other ideas?
> > > >
> > > > --
> > > > Best regards,
> > > > Vitaliy
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> >
> >
> > --
> > Best regards,
> > Vitaliy
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

vetalok
Hi Stephen,
Thanks for your helpful suggestions, I will try to add new freestyle project with maven2 goals first.

2007/12/18, Stephen Connolly <[hidden email]>:
The other option is to pester the Peter "ANT-committer" Reilly to
support the m2 project type ;-)

I'm not so sure how successful you'll be with that though... he only
uses maven under protest and even then only if I set it up for him ;-)

On Dec 18, 2007 9:28 AM, Stephen Connolly
<[hidden email]> wrote:
> Sorry out of luck.... it's only a quick hack..
>
> What I would do for trending is have a second freestyle project that
> just runs the Maven checkstyle:checkstyle goal and uses the violations
> plugin to present the trend graphs
>
> That would probably give you faster feedback on the checkstyles too...
>
>

> On Dec 18, 2007 9:04 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> > Hi Stephen,
> > This looks great but another problem has appeared:
> > checkstyle results are in "workspace" folder, not in "builds" folder, so
> > there is no posibility to view progress ( e.g compare with previous build).
> >
> > 2007/12/18, Stephen Connolly <[hidden email]>:
> > >
> > >
> > >
> > > On Dec 18, 2007 8:39 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> > > > Hi all
> > > >  2007/12/17, Stephen Connolly <[hidden email] >:
> > > > > Use the freestyle project build and that will give you the violations
> > > > > plugin working with your maven2 project
> > > >
> > > >  Yes but freestyle project is another type of project, so the logic of
> > > > testing will be very difficult
> > > > I need just add link to checkstyle.html in Hudson UI
> > >
> > > There's the quick hack:
> > >
> > > edit the project description (Button on the right hand side of the
> > > screen on project view) and put an <a
> > > href="workspace/target/site/checkstyle.html">Checkstyle</a> into the
> > > description
> > >
> > > >
> > > > Any other ideas?
> > > >
> > > > --
> > > > Best regards,
> > > > Vitaliy
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> >
> >
> > --
> > Best regards,
> > Vitaliy
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Best regards,
Vitaliy
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

vetalok
It works! :)

This is bad idea to use "maven project", freestyle project with maven goals is much better.
I have created new frestyle progect, added maven goals there
(clean install checkstyle:checkstyle).
The project has been configured to point to *.xml files that were generated by checkstyle and surefire(junit) and it works fine except small stacktrace when clicking on "Violations" link (the results are present). Why this stacktrace has occured?

18/12/2007 12:46:43 org.apache.commons.jelly.expression.jexl.JexlExpression evaluate
WARNING: Caught exception evaluating: prev.fileCount(t.name). Reason: java.lang.NullPointerException
java.lang.NullPointerException
        at hudson.plugins.violations.ViolationsReport.fileCount(ViolationsReport.java:371)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke (UberspectImpl.java:259)
        at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
        at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
        at org.apache.commons.jexl.parser.ASTReference.value (ASTReference.java:57)
        at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
        at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
        at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69)
        at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)



2007/12/18, Vitaliy Obmanyuk <[hidden email]>:
Hi Stephen,
Thanks for your helpful suggestions, I will try to add new freestyle project with maven2 goals first.


2007/12/18, Stephen Connolly < [hidden email]>:
The other option is to pester the Peter "ANT-committer" Reilly to
support the m2 project type ;-)

I'm not so sure how successful you'll be with that though... he only
uses maven under protest and even then only if I set it up for him ;-)

On Dec 18, 2007 9:28 AM, Stephen Connolly
<[hidden email]> wrote:
> Sorry out of luck.... it's only a quick hack..
>
> What I would do for trending is have a second freestyle project that
> just runs the Maven checkstyle:checkstyle goal and uses the violations
> plugin to present the trend graphs
>
> That would probably give you faster feedback on the checkstyles too...
>
>

> On Dec 18, 2007 9:04 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> > Hi Stephen,
> > This looks great but another problem has appeared:
> > checkstyle results are in "workspace" folder, not in "builds" folder, so
> > there is no posibility to view progress ( e.g compare with previous build).
> >
> > 2007/12/18, Stephen Connolly <[hidden email]>:
> > >
> > >
> > >
> > > On Dec 18, 2007 8:39 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> > > > Hi all
> > > >  2007/12/17, Stephen Connolly <[hidden email] >:
> > > > > Use the freestyle project build and that will give you the violations

> > > > > plugin working with your maven2 project
> > > >
> > > >  Yes but freestyle project is another type of project, so the logic of
> > > > testing will be very difficult
> > > > I need just add link to checkstyle.html in Hudson UI
> > >
> > > There's the quick hack:
> > >
> > > edit the project description (Button on the right hand side of the
> > > screen on project view) and put an <a
> > > href="workspace/target/site/checkstyle.html">Checkstyle</a> into the
> > > description
> > >
> > > >
> > > > Any other ideas?
> > > >
> > > > --
> > > > Best regards,
> > > > Vitaliy
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> >
> >
> > --
> > Best regards,
> > Vitaliy
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Best regards,
Vitaliy



--
Best regards,
Vitaliy
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

Peter Reilly-2
Ikk,
that is a bug.
Please file a report and I will get around the Xmas pudding to fix it
during the holidays.

What versions of violations and hudson are you using?
Peter


On Dec 18, 2007 10:56 AM, Vitaliy Obmanyuk <[hidden email]> wrote:

> It works! :)
>
> This is bad idea to use "maven project", freestyle project with maven goals
> is much better.
> I have created new frestyle progect, added maven goals there
> (clean install checkstyle:checkstyle).
> The project has been configured to point to *.xml files that were generated
> by checkstyle and surefire(junit) and it works fine except small stacktrace
> when clicking on "Violations" link (the results are present). Why this
> stacktrace has occured?
>
> 18/12/2007 12:46:43 org.apache.commons.jelly.expression.jexl.JexlExpression
> evaluate
> WARNING: Caught exception evaluating: prev.fileCount(t.name). Reason:
> java.lang.NullPointerException
> java.lang.NullPointerException
>         at
> hudson.plugins.violations.ViolationsReport.fileCount(ViolationsReport.java:371)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke
> (UberspectImpl.java:259)
>         at
> org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
>         at
> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
>         at org.apache.commons.jexl.parser.ASTReference.value
> (ASTReference.java:57)
>         at
> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
>         at
> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
>         at
> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69)
>         at
> org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)
>
>
>
>  2007/12/18, Vitaliy Obmanyuk <[hidden email]>:
>
> > Hi Stephen,
> > Thanks for your helpful suggestions, I will try to add new freestyle
> project with maven2 goals first.
> >
> >
> >
> > 2007/12/18, Stephen Connolly < [hidden email]>:
> > > The other option is to pester the Peter "ANT-committer" Reilly to
> > > support the m2 project type ;-)
> > >
> > > I'm not so sure how successful you'll be with that though... he only
> > > uses maven under protest and even then only if I set it up for him ;-)
> > >
> > > On Dec 18, 2007 9:28 AM, Stephen Connolly
> > > <[hidden email]> wrote:
> > > > Sorry out of luck.... it's only a quick hack..
> > > >
> > > > What I would do for trending is have a second freestyle project that
> > > > just runs the Maven checkstyle:checkstyle goal and uses the violations
> > > > plugin to present the trend graphs
> > > >
> > > > That would probably give you faster feedback on the checkstyles too...
> > > >
> > > >
> > > > On Dec 18, 2007 9:04 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> > > > > Hi Stephen,
> > > > > This looks great but another problem has appeared:
> > > > > checkstyle results are in "workspace" folder, not in "builds"
> folder, so
> > > > > there is no posibility to view progress ( e.g compare with previous
> build).
> > > > >
> > > > > 2007/12/18, Stephen Connolly < [hidden email] >:
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Dec 18, 2007 8:39 AM, Vitaliy Obmanyuk < [hidden email]>
> wrote:
> > > > > > > Hi all
> > > > > > >  2007/12/17, Stephen Connolly <[hidden email]
> >:
> > > > > > > > Use the freestyle project build and that will give you the
> violations
> > > > > > > > plugin working with your maven2 project
> > > > > > >
> > > > > > >  Yes but freestyle project is another type of project, so the
> logic of
> > > > > > > testing will be very difficult
> > > > > > > I need just add link to checkstyle.html in Hudson UI
> > > > > >
> > > > > > There's the quick hack:
> > > > > >
> > > > > > edit the project description (Button on the right hand side of the
> > > > > > screen on project view) and put an <a
> > > > > > href="workspace/target/site/checkstyle.html">Checkstyle</a> into
> the
> > > > > > description
> > > > > >
> > > > > > >
> > > > > > > Any other ideas?
> > > > > > >
> > > > > > > --
> > > > > > > Best regards,
> > > > > > > Vitaliy
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Best regards,
> > > > > Vitaliy
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> >
> >
> > --
> > Best regards,
> > Vitaliy
>
>
>
> --
> Best regards,
> Vitaliy

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

stephenconnolly
In reply to this post by vetalok
On Dec 18, 2007 10:56 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> It works! :)
>
> This is bad idea to use "maven project", freestyle project with maven goals
> is much better.

Welcome to my world.

I think the m2 project type is a bad idea,

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

vetalok
In reply to this post by Peter Reilly-2
Hi Peter,
It seems only some builds  contain this problem.
OS: Windows Vista
JVM:
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)
Hudson: 1.161
Violations: 0.5.3
Project type: frestyle project with maven 2 goals.
See attachment for full stacktrace.

2007/12/18, Peter Reilly < [hidden email]>:
Ikk,
that is a bug.
Please file a report and I will get around the Xmas pudding to fix it
during the holidays.

What versions of violations and hudson are you using?
Peter


On Dec 18, 2007 10:56 AM, Vitaliy Obmanyuk < [hidden email]> wrote:

> It works! :)
>
> This is bad idea to use "maven project", freestyle project with maven goals
> is much better.
> I have created new frestyle progect, added maven goals there
> (clean install checkstyle:checkstyle).
> The project has been configured to point to *.xml files that were generated
> by checkstyle and surefire(junit) and it works fine except small stacktrace
> when clicking on "Violations" link (the results are present). Why this
> stacktrace has occured?
>
> 18/12/2007 12:46:43 org.apache.commons.jelly.expression.jexl.JexlExpression
> evaluate
> WARNING: Caught exception evaluating: prev.fileCount( t.name). Reason:
> java.lang.NullPointerException
> java.lang.NullPointerException
>         at
> hudson.plugins.violations.ViolationsReport.fileCount(ViolationsReport.java:371)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke
> (UberspectImpl.java:259)
>         at
> org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
>         at
> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
>         at org.apache.commons.jexl.parser.ASTReference.value
> (ASTReference.java:57)
>         at
> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
>         at
> org.apache.commons.jexl.ExpressionImpl.evaluate (ExpressionImpl.java:80)
>         at
> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69)
>         at
> org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse (ExpressionSupport.java:61)
>
>
>
>  2007/12/18, Vitaliy Obmanyuk <[hidden email]>:
>
> > Hi Stephen,
> > Thanks for your helpful suggestions, I will try to add new freestyle
> project with maven2 goals first.
> >
> >
> >
> > 2007/12/18, Stephen Connolly < [hidden email]>:
> > > The other option is to pester the Peter "ANT-committer" Reilly to

> > > support the m2 project type ;-)
> > >
> > > I'm not so sure how successful you'll be with that though... he only
> > > uses maven under protest and even then only if I set it up for him ;-)
> > >
> > > On Dec 18, 2007 9:28 AM, Stephen Connolly
> > > <[hidden email]> wrote:
> > > > Sorry out of luck.... it's only a quick hack..
> > > >
> > > > What I would do for trending is have a second freestyle project that
> > > > just runs the Maven checkstyle:checkstyle goal and uses the violations
> > > > plugin to present the trend graphs
> > > >
> > > > That would probably give you faster feedback on the checkstyles too...
> > > >
> > > >
> > > > On Dec 18, 2007 9:04 AM, Vitaliy Obmanyuk <[hidden email]> wrote:
> > > > > Hi Stephen,
> > > > > This looks great but another problem has appeared:
> > > > > checkstyle results are in "workspace" folder, not in "builds"
> folder, so
> > > > > there is no posibility to view progress ( e.g compare with previous
> build).
> > > > >
> > > > > 2007/12/18, Stephen Connolly < [hidden email] >:
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Dec 18, 2007 8:39 AM, Vitaliy Obmanyuk < [hidden email]>
> wrote:
> > > > > > > Hi all
> > > > > > >  2007/12/17, Stephen Connolly <[hidden email]
> >:
> > > > > > > > Use the freestyle project build and that will give you the
> violations
> > > > > > > > plugin working with your maven2 project
> > > > > > >
> > > > > > >  Yes but freestyle project is another type of project, so the
> logic of
> > > > > > > testing will be very difficult
> > > > > > > I need just add link to checkstyle.html in Hudson UI
> > > > > >
> > > > > > There's the quick hack:
> > > > > >
> > > > > > edit the project description (Button on the right hand side of the

> > > > > > screen on project view) and put an <a
> > > > > > href="workspace/target/site/checkstyle.html">Checkstyle</a> into
> the
> > > > > > description
> > > > > >
> > > > > > >
> > > > > > > Any other ideas?
> > > > > > >
> > > > > > > --
> > > > > > > Best regards,
> > > > > > > Vitaliy
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Best regards,
> > > > > Vitaliy
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> >
> >
> > --
> > Best regards,
> > Vitaliy
>
>
>
> --
> Best regards,
> Vitaliy

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Best regards,
Vitaliy
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

hudson.zip (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson with Maven and Checkstyle

vetalok
In reply to this post by stephenconnolly
Bad news :(
My project contains a lot of subprojects,
so if I'm using freestyle project Violations plugin combines all the checkstyle reports of every of subproject into one very big report.
Test results are combined into big report too.

So in this meaning maven project is better than freestyle project (I may see test results and artifacts for every project in hierarhical view), but there is no violations plugin :(

The truth is out there :)

How can I integrate Violation plugin into maven2 project? Is it difficult for developers to do it?


2007/12/18, Stephen Connolly <[hidden email]>:
On Dec 18, 2007 10:56 AM, Vitaliy Obmanyuk < [hidden email]> wrote:
> It works! :)
>
> This is bad idea to use "maven project", freestyle project with maven goals
> is much better.

Welcome to my world.

I think the m2 project type is a bad idea,

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Best regards,
Vitaliy
Loading...