On Mon, Aug 15, 2011 at 4:55 PM, Kasun Gajasinghe <[email protected]> wrote:
> Hi,
> We're very close to have the results.
> maven-{clean,resources,compile}-plugin works as expected. Now, I'm at
> [surefire:test {execution: default-test}] phase. Well, m-surefire-p is
> giving me issues.
>
> I'm getting a weird ClassCastException for
> org.apache.maven.plugin.surefire.SurefirePlugin.
>    "java.lang.ClassCastException:
> org.apache.maven.plugin.surefire.SurefirePlugin cannot be cast to
> org.apache.maven.plugin.Mojo"

I'm no expert in this particular error, but I thought I'd throw out
that ClassCastExceptions also arise from ClassLoader issues as the
same class loaded via two different class loaders are considered
different and will give ClassCastExceptions.
Perhaps you are running into this.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to