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(DefaultLifecycleExecutor.java:564)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:896)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:739)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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(NativeMethodAccessorImpl.java:39)
>>>
>>>        at
>>> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>
>>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>>        at
>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>        at
>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Couldn't
>>> find 'cobertura' artifact in plugin dependencies
>>>        at
>>> 
org.codehaus.mojo.cobertura.CoberturaInstrumentMojo.addCoberturaDependenciesToTestClasspath(CoberturaInstrumentMojo.java:164)
>>>
>>>        at
>>> 
org.codehaus.mojo.cobertura.CoberturaInstrumentMojo.execute(CoberturaInstrumentMojo.java:122)
>>>
>>>        at
>>> 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>>>
>>>        at
>>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.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]

Reply via email to