I posted a while back about the latest version not graphing right.  Just
use 2.0 and everything works:

           <plugin><!-- http://mojo.codehaus.org/cobertura-maven-plugin/
-->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.0</version><!-- version 2.1 has bug that
doesn't graph properly -->
            </plugin>

Paul Sundling

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Aaron Zeckoski
Sent: Tuesday, July 24, 2007 9:02 AM
To: Maven Users List
Subject: Re: Cobertura broken ?


I wanted to mention that I think the plugin is really great and
invaluable for generating code test coverage reports. We are using it on
all our maven 2 projects and the output that is generated is very
helpful. Even if the current version doesn't work, it is still a great
body of work. Well done! -AZ


On 7/24/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
> Ironic as that may be, there's no need to rub it in. This is open 
> source software where many people contribute on their spare time. That

> means that sometimes it will take time for issues to be solved. If you

> feel that this is a *really* important issue for you, then please feel

> free to write a patch for it, and attach that to the issue I mentioned

> earlier.
>
> Larry Meadors wrote:
> > Am I the only one that finds it profoundly ironic that a testing 
> > tool is broken? The cobbler's children have no shoes?
> >
> > Larry
> >
> >
> > On 7/24/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
> >> Mac-Systems wrote:
> >> > I tested 2.0 with an -U (force update)
> >> > Again it is broken like shown below.
> >>
> >> Then you would get 2.1 which is the latest released version.
> >>
> >> > How can a stable version break ?
> >>
> >> It is called a regression [1] and happens to many systems.
> >>
> >> [1] http://en.wikipedia.org/wiki/Software_regression
> >>
> >> > - Jens
> >> >
> >> >> That is odd. Version 2.1 of the plugin does not use Cobertura 
> >> >> 1.9. That has just recently been added to the 2.2-SNAPSHOT 
> >> >> version, which is not yet stable.
> >> >>
> >> >> Have you added a dependency on cobertura (not the plugin) 
> >> >> yourself somewhere?
> >> >>
> >> >> There is a reported issue for this, but that is against version 
> >> >> 2.2 of the plugin:
> >> >>   http://jira.codehaus.org/browse/MCOBERTURA-71
> >> >>
> >> >> Mac-Systems wrote:
> >> >>>                <plugin>
> >> >>>                    <groupId>org.codehaus.mojo</groupId>
> >> >>>
<artifactId>cobertura-maven-plugin</artifactId>
> >> >>>                    <version>2.1</version>
> >> >>>
> >> >>>
> >> >>> If i added the cobertura to my pom and run mvn site i get error

> >> >>> like:
> >> >>>
> >> >>> [ERROR] There are test failures.
> >> >>> [INFO] Preparing surefire-report:report-only
> >> >>> [INFO] No goals needed for project - skipping
> >> >>> [INFO] Preparing cobertura:cobertura
> >> >>> [INFO] [resources:resources]
> >> >>> [INFO] Using default encoding to copy filtered resources. 
> >> >>> [INFO] [compiler:compile] [INFO] Nothing to compile - all 
> >> >>> classes are up to date [INFO] [cobertura:instrument]
> >> >>> [INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See
COPYRIGHT
> >> >>> file
> >> >>> Cobertura: Loaded information on 418 classes.
> >> >>> Instrumenting 418 files to
> >> >>>
> >> /home/mavensite/continuum-1.0.3/apps/continuum/working-directory/1/
> >> Project/target/generated-classes/cobertura
> >>
> >> >>>
> >> >>> Cobertura: Saved information on 418 classes. Instrument time: 
> >> >>> 2321ms
> >> >>>
> >> >>> [INFO] Instrumentation was successful.
> >> >>> [INFO]
> >> >>>
> >> -------------------------------------------------------------------
> >> -----
> >> >>> [ERROR] BUILD ERROR
> >> >>> [INFO]
> >> >>>
> >> -------------------------------------------------------------------
> >> -----
> >> >>> [INFO] Couldn't find 'cobertura' artifact in plugin 
> >> >>> dependencies [INFO]
> >> >>>
> >> -------------------------------------------------------------------
> >> -----
> >> >>> [INFO] Trace
> >> >>> org.apache.maven.lifecycle.LifecycleExecutionException: 
> >> >>> Couldn't find 'cobertura' artifact in plugin dependencies
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(De
> >> faultLifecycleExecutor.java:564)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWith
> >> Lifecycle(DefaultLifecycleExecutor.java:480)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLife
> >> cycle(DefaultLifecycleExecutor.java:896)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(D
> >> efaultLifecycleExecutor.java:739)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(De
> >> faultLifecycleExecutor.java:530)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWith
> >> Lifecycle(DefaultLifecycleExecutor.java:480)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Def
> >> aultLifecycleExecutor.java:459)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndH
> >> andleFailures(DefaultLifecycleExecutor.java:311)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegm
> >> ents(DefaultLifecycleExecutor.java:278)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(Default
> >> LifecycleExecutor.java:143)
> >>
> >> >>>
> >> >>>        at
> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> >> >>>        at
> >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >> >>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> >> >>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> >> >>>        at
> >> >>>
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
> >> l.java:39)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
> >> essorImpl.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:
Couldn't
> >> >>> find 'cobertura' artifact in plugin dependencies
> >> >>>        at
> >> >>>
> >> org.codehaus.mojo.cobertura.CoberturaInstrumentMojo.addCoberturaDep
> >> endenciesToTestClasspath(CoberturaInstrumentMojo.java:164)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.codehaus.mojo.cobertura.CoberturaInstrumentMojo.execute(Cobertu
> >> raInstrumentMojo.java:122)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlu
> >> ginManager.java:443)
> >>
> >> >>>
> >> >>>        at
> >> >>>
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(De
> >> faultLifecycleExecutor.java:539)
> >>
> >> >>>
> >> >>>        ... 20 more
> >> >>> [INFO]
> >> >>>
> >> -------------------------------------------------------------------
> >> -----
> >> >>> [INFO] Total time: 46 seconds
> >> >>> [INFO] Finished at: Tue Jul 24 14:17:14 CEST 2007 [INFO] Final 
> >> >>> Memory: 30M/54M [INFO]
> >> >>>
> >> -------------------------------------------------------------------
> >> -----
> >> >>>
> >> >>>
> >> >>>
> >> >>> Anyone can tell me whats wrong there. I deleted my local repro 
> >> >>> alread getting same problem again. It seems maven have no 
> >> >>> problems downloading expected version. Also also tried to use 
> >> >>> version 2.3 with same result.
> >> >>>
> >> >>> Whats wrong there ?
> >> >>>
> >> >>> - Jens
> >>
> >> --
> >> Dennis Lundberg
> >>
> >> -------------------------------------------------------------------
> >> --
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > --------------------------------------------------------------------
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Aaron Zeckoski ([EMAIL PROTECTED])
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

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



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

Reply via email to