Hi all,
Is this the right place to ask questions about writing Maven plugins? I'm
writing a plugin and I have a unit test that tries to verify that the
<configuration> in an <execution> is being read (because right now it
doesn't, so it's got its own unit test now).
This pom is read correctly, and my Mojo's execute() method has the
parameters set correctly:
..
..
<build>
<plugins>
<plugin>
<artifactId>p2composite-maven-plugin</artifactId>
<configuration>
<folder>target/test-classes/test5</folder>
<repositoryName>test5</repositoryName>
</configuration>
</plugin>
</plugins>
</build>
However, this pom fails because the variables holding my parameters are
null in the execute() method:
..
..
<build>
<plugins>
<plugin>
<artifactId>p2composite-maven-plugin</artifactId>
<executions>
<execution>
<id>check-configuration-works-in-execution</id>
<phase>deploy</phase>
<goals>
<goal>p2composite</goal>
</goals>
<configuration>
<repositoryName>test6</repositoryName>
<folder>target/test-classes/test6</folder>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Do I need to do something special? I'm happy to provide more information if
necessary, I figured I'd start brief and work up..
Cheers,
Kev.