Check http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html,
childDelegation option

On 4/26/06, Gordon Henriksen <[EMAIL PROTECTED]> wrote:
> On Apr 26, 2006, at 6:13 PM, Mike Perham wrote:
>
> > On Apr 26, 2006, at 4:47 PM, Gordon Henriksen wrote:
> >
> >> Is this a FAQ that I haven't found? My tests run fine
> >> uninstrumented under mvn test, but fail in spectacular and
> >> surprising ways under Cobertura (triggered from mvn site).
> >
> > You haven't told us which version of the plugin you are running.
>
> The plugin is cobertura-maven-plugin-2.0-20060331.055400-6.pom. Maven
> itself is 2.0.3. At the end of this message are the relevant entries
> from my parent POM.
>
> > The Cobertura plugin used to inject asm 2.1 into the project
> > classpath which broke Hibernate projects.  Are you using asm?
>
> I am not using asm.
>
>
> My instrumented and uninstrumented test results are the same if I add
> this to my pom:
>
>        <plugin>
>          <artifactId>maven-surefire-plugin</artifactId>
>          <configuration>
>            <forkMode>once</forkMode>
>          </configuration>
>        </plugin>
>
> So this seems to be a surefire issue, not a cobertura-plugin issue.
>
> — G
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
> www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
>    …
>    <build>
>      <plugins>
>        …
>        <plugin>
>          <groupId>org.codehaus.mojo</groupId>
>          <artifactId>cobertura-maven-plugin</artifactId>
>          <executions>
>            <execution>
>              <goals>
>                <goal>clean</goal>
>              </goals>
>            </execution>
>          </executions>
>        </plugin>
>        …
>      </plugins>
>      …
>    </build>
>    <reporting>
>      <plugins>
>        …
>        <plugin>
>          <groupId>org.codehaus.mojo</groupId>
>          <artifactId>cobertura-maven-plugin</artifactId>
>        </plugin>
>        …
>      </plugins>
>    </reporting>
>    <repositories>
>      <repository>
>        <id>Maven Snapshots</id>
>        <url>http://snapshots.maven.codehaus.org/maven2/</url>
>      </repository>
>      …
>    </repositories>
>    <pluginRepositories>
>      <pluginRepository>
>        <id>Maven Snapshots</id>
>        <url>http://snapshots.maven.codehaus.org/maven2/</url>
>      </pluginRepository>
>    </pluginRepositories>
>    …
> </project>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                             -- The Princess Bride

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

Reply via email to