Hi Jochen,
I don't think you need to include the goalPrefix (xml) when you lookup
the mojo in your test case
when you use the testing harness.
It should be:
ValidatorMojo vm = (ValidatorMojo) lookupMojo( validate, testPom );
Thanks,
Odea
Jochen Wiedmann wrote:
Hi,
I am attempting to
Maria Odea Ching wrote:
I don't think you need to include the goalPrefix (xml) when you lookup
the mojo in your test case
when you use the testing harness.
It should be:
ValidatorMojo vm = (ValidatorMojo) lookupMojo( validate, testPom );
Thanks, that worked!
Jochen
Hi,
I am attempting to write a plugin test by using the
maven-plugin-testing-harness. I have created the following test-POM and am
trying to invoke it through
File testPom = new File( getBasedir(), src/test/it1/pom.xml );
ValidatorMojo vm = (ValidatorMojo) lookupMojo( xml:validate, testPom