Re: Question on maven-plugin-testing-harness

2006-06-16 Thread Maria Odea Ching
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

Re: Question on maven-plugin-testing-harness

2006-06-16 Thread Jochen Wiedmann
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

Question on maven-plugin-testing-harness

2006-06-15 Thread Jochen Wiedmann
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