Hi,

I have a really strange thing happening.

I narrowed my mojo code down to this (This is all that
is in the execute body:

Model model = PomFactory.eINSTANCE.createModel();
//model.setVersion("sss");

Model is just a representation of the pom root
element.

The mojo runs fine if all I do is create a Model.

If I uncommment the 

model.setVersion("sss"); 

part.

And even if I turn on the stack traces with -e,
all I get still is:

java.lang.IncompatibleClassChangeError
        at
org.jpackage.XML2SpecMojoImpl.execute(XML2SpecMojoImpl.java:100)


If I test the model.setVersion outside of the mojo, it
runs fine.

I've also tried the following:
- Deleted all the mojo imports and verifying them to
be correct, after narrowing the code the only imports
I have are:
import org.apache.maven.model.Model;
import org.apache.maven.model.PomFactory;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;

- Deleted the entire m2 repository, and let Maven
repopulate it.

Any ideas?

Thanks,
- Ole
                



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to