cobertura is re-invoking and that will be the forked lifecycle that is
throwing you for a wobbly.

bind to a later phase that is not included in the forked lifecycle, e.g.
package or verify

Hopefully that will fix your issues.

The same will apply to the enforcer, or any plugin which is invoked for the
forked lifecycle

-Stephen

2009/12/14 Dan Rollo <[email protected]>

> I'm trying to use the 1.4 sniffer to detect api incompatibilities, but it
> appears to be detecting [[ERROR] Undefined reference:] "errors everywhere"
> (where they do not exist).
>
> I was able to get sniffer working with the old 1.2 java.net version.
> In case it helps: Using jvnet, 1.2; saw similar "errors everywhere" when I
> had sniffer bound to the "test" phase and when cobertura attempted to
> re-exec unit tests.
>
> FYI, I see the same "errors everywhere" behavior using the enforcer sniffer
> plugin.
>
> Here's my config snippet:
>
>        <pluginManagement>
>
>                <plugin>
>                    <groupId>org.codehaus.mojo</groupId>
>                    <artifactId>animal-sniffer-maven-plugin</artifactId>
>                    <version>1.4</version>
>                </plugin>
>
>        </pluginManagement>
>
>
>        <plugins>
>
>            <plugin>
>                <artifactId>maven-compiler-plugin</artifactId>
>                <configuration>
>                    <source>1.5</source>
>                    <target>1.5</target>
>                </configuration>
>            </plugin>
>
>            <plugin>
>                <groupId>org.codehaus.mojo</groupId>
>                <artifactId>animal-sniffer-maven-plugin</artifactId>
>
>                <configuration>
>                    <signature>
>                        <groupId>org.codehaus.mojo.signature</groupId>
>                        <artifactId>java15</artifactId>
>                        <version>1.0</version>
>                    </signature>
>                </configuration>
>                <executions>
>                    <execution>
>                        <id>check-java-version</id>
>                        <phase>package</phase>
>                        <goals>
>                            <goal>check</goal>
>                        </goals>
>                    </execution>
>                </executions>
>            </plugin>
>
>        </plugins>
>
> I did not add any codehaus repo's (as I am hoping to use central, but
> adding codehaus did not seem to matter...).
>
> I'm using maven 2.2.1 on sun 64bit jvm 1.6.0_16 on linux (Ubuntu).
>
> Any ideas on what I'm missing?
>
> Thanks,
> Dan
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to