David,

I do run into (the same you had I think )
net.sourceforge.cobertura.instrument.Main - Unable to instrument file.
Do you know a solution?

I'm using mvn 2.02.

regards,

Rik


2006/2/3, David Sag <[EMAIL PROTECTED]>:
>
>
> Hi Rik,
>
> So you have actually been able to get the 2.0-SNAPSHOT to work?  I'd love
> to see how. I have been trying all week to get the cobertura reports to work
> but since iupping to maven 2.0.2 have not been successful due to the
> problem of it generating 0 byte instrumented class files during the
> reporting phase that overwrite the originally instrumented class files.
>
> Kind regards,
> Dave Sag
>
>
>
>
>
>
> Rik Bosman <[EMAIL PROTECTED]> wrote on 03-02-2006 10:29:45:
>
> > Jared,
> >
> > I had the same problem and solved it with the following actions:
> >
> > - Add the version to both the plugins: <version>2.0-SNAPSHOT</version>
> > - Add the sandbox repository to the pom, see below.
> >
> > Hope this helps,
> >
> > Kindly revert for clarifications,
> >
> > Rik
> >
> > <repositories>
> >   <repository>
> >    <id>Maven Snapshots</id>
> >    <url>http://snapshots.maven.codehaus.org/maven2/</url>
> >    <snapshots>
> >     <enabled>true</enabled>
> >    </snapshots>
> >    <releases>
> >     <enabled>false</enabled>
> >    </releases>
> >   </repository>
> >  </repositories>
> >  <pluginRepositories>
> >   <pluginRepository>
> >    <id>Maven Snapshots</id>
> >    <url>http://snapshots.maven.codehaus.org/maven2/</url>
> >    <snapshots>
> >     <enabled>true</enabled>
> >    </snapshots>
> >    <releases>
> >     <enabled>false</enabled>
> >    </releases>
> >   </pluginRepository>
> >  </pluginRepositories>
> >
> >
> >
> > 2006/2/3, javed mandary <[EMAIL PROTECTED]>:
> > >
> > > Hi Guys,
> > >             i'd like to know some information about the cobertura
> plugin
> > > in
> > > general:
> > >
> > > 1. On which repo is the cobertura-maven-plugin hosted ?
> > > 2. How to configure it in your POM ?
> > >
> > > I tried the following 2 configurations in my POM:
> > > -----------------------------------EXTRACT OF MY POM
> > > ------------------------------------------
> > > <build>
> > > ....
> > >   <plugins>
> > >             <plugin>
> > >                <groupId>org.codehaus.mojo</groupId>
> > >                <artifactId>cobertura-maven-plugin</artifactId>
> > >                <executions>
> > >                  <execution>
> > >                    <goals>
> > >                      <goal>clean</goal>
> > >                    </goals>
> > >                  </execution>
> > >                </executions>
> > >             </plugin>
> > >
> > > <plugins>
> > > ...
> > > <reporting>
> > >      <plugins>
> > >           <plugin>
> > >                    <groupId>org.codehaus.mojo</groupId>
> > >                    <artifactId>cobertura-maven-plugin</artifactId>
> > >              </plugin>
> > >        </plugins>
> > >    </reporting>
> > > </build>
> > >
> > > ---------------------------------------------------------
> > END-------------------------------------
> > >
> > > I get the following error:
> > >
> > > ---
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> -------------------------------------------------------------------------
> > > ---
> > > [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not
> > > exist
> > > or n
> > > o valid version could be found
> > > [INFO]
> > >
> -------------------------------------------------------------------------
> > > ---
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > >
> -------------------------------------------------------------------------
> > > ---
> > > [INFO] Total time: 1 second
> > > [INFO] Finished at: Fri Feb 03 11:34:19 GST 2006
> > > [INFO] Final Memory: 2M/4M
> > > [INFO] --------------------------
> > > -----------------------------------------------
> > >
> > > Is there any other configurations that is required ? I am using Maven
> > > 2.0.2.
> > >
> > > kind regards,
> > >          Javed
> > >
> > >
>

Reply via email to