Hi,
thanks to Odea's help, I managed to get a few steps further. However, I have
to return with another question in the end.
My plugin contains the following variable:
/**
* The base directory, relative to which directory names are
* interpreted.
*
* @parameter expression="${basedir}"
* @required
* @readonly
*/
public File basedir;
The plugin is started with the following code:
public void testIt1() throws Exception
{
File testPom = new File( getBasedir(), "src/test/it1/pom.xml" );
ValidatorMojo vm = (ValidatorMojo) lookupMojo( "validate", testPom );
vm.execute();
}
However, the plugins execution fails, because basedir is null. I have
attempted to gain the base directory through a variable "project" of type
MavenProject, which is initialized with ${project}, but this one is also null.
Any ideas?
Regards,
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]