Hi,

If I run the mojo tests in the same project that the
mojo is in, they run fine.

If I create another project with the same setup, but
different artifactId, I get the exception pasted at
the end (xml2spec.mojo.test is the new testing project
I created.  It allows me to simulate how the mojo
works without modifying the resource directories that
a project that uses the mojo would use).

It seems like the Test Harness is reading the mojo
artifact Id from the project POM, instead of the
plugin-config.xml testing pom.

Thoughts?

Thanks,
- Ole

EXCEPTION
org.apache.maven.plugin.testing.ConfigurationException:
Cannot find a configuration element for a plugin with
an artifactId of xml2spec.mojo.test.
        at
org.apache.maven.plugin.testing.AbstractMojoTestCase.extractPluginConfiguration(AbstractMojoTestCase.java:217)
        at
org.apache.maven.plugin.testing.AbstractMojoTestCase.extractPluginConfiguration(AbstractMojoTestCase.java:191)
        at
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:108)
        at org.jpackage.test.JPackageMojoTest.setUp(JPackageMojoTest.java:27


 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

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

Reply via email to