You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Subhash Chandran <su...@gmail.com> on 2006/03/02 10:39:31 UTC

cobertura plugin

I have seen that work is going on in this regard:

http://mojo.codehaus.org/cobertura-maven-plugin/

Is there any way to use this with m2.0.2? i have tried:

* Tried to use as specified in
http://mojo.codehaus.org/cobertura-maven-plugin/usage.html. Failed.

* Downloaded the source for the plugin from (
http://mojo.codehaus.org/cobertura-maven-plugin/source-repository.html has
stale links.)
http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/cobertura-maven-plugin/.
Did a mvn install. Again tried mvn cobertura:instrument. it is throwing this
exception:

subhash@linux:~/code/java/wizcrypt/trunk> mvn cobertura:instrument
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cobertura'.
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] null
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
        at org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(
PluginDescriptor.java:259)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
DefaultLifecycleExecutor.java:1490)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
(DefaultLifecycleExecutor.java:378)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:134)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        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)

can't i use cobertura now with m2.0.2?

--
Regards,
Subhash Chandran S

Cross platform OpenSource Java based file encryption software:
http://www.WizTools.org/project/WizCrypt/