Hi all,
I have developed a maven plugin which I want to execute during the
'package' phase. In addition I need a custom packaging type for my
plugin(i.e: newType). Thus for this new packaging type, I have overridden
the default maven life cycle by adding components.xml in
resource/META-INF/plexus and set my maven goal to execute in the package
phase inside components.xml.
In the maven project which use this plugin, I want to add the plugin
configuration inside executions/execution/configuration tag as follow;
i.e:
<project>
....
* <packaging>newType</packaging>*
...
<build>
<plugins>
<plugin>
<groupId>org.wso2.carbon</groupId>
<artifactId>samplePlugin</artifactId>
<version>1.0-SNAPSHOT</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>generate-artifact</goal>
</goals>
<phase>package</phase>
*<configuration> <param>some value</param>
</configuration>*
</execution>
</executions>
</plugin>
</plugins>
</build>
<project>
*Problem*:
When the plugin is configured as above, the *param* variable in the mojo is
not getting set. However, if I give the configuration at the plugin level
as below, then it works.
<plugin>
<groupId>org.wso2.carbon</groupId>
<artifactId>samplePlugin</artifactId>
<version>1.0-SNAPSHOT</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>generate-artifact</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
* <configuration> <param>some value</param> </configuration>*
</plugin>
Since this plugin works in package phase I want to provide the
configuration inside the <execution> tag. Any thoughts on what I am missing
here?
Thanks,
--
*Dinusha Boteju*
*WSO2, Inc. http://wso2.com <http://wso2.com/> *
*lean.enterprise.middleware.*
email: [email protected] <[email protected]>
phone:(+94) 776640275 <%28%2B94%29%20777739736>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev