Declarative plugins similar to "jsp tags" or "jsf composites"
-------------------------------------------------------------
Key: MNG-4656
URL: http://jira.codehaus.org/browse/MNG-4656
Project: Maven 2 & 3
Issue Type: New Feature
Components: Design, Patterns & Best Practices
Reporter: Mykola Golubyev
By now there is only one option to create maven plugin. And this is by using
JVM based language.
There are situations when all you need is just to combine some already written
plugins, pass to them some attributes and you can use this as a plugin. But you
can't. You need to copy and paste bunch of plugins. And move some predefined
configuration to pluginManagment.
I suggest to add mechanic which is similar to JSP tags or JSF composites.
Let's say
<pluginDefinition>
<groupId>my.com</groupId>
<artifactId>deploy</artifactId>
<attribute name="path"/>
<attribute name="list" type="..."/>
<body>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
... ${path} ...
... ${list} ...
</execution>
...
</executions>
</plugin>
<plugin>
...
</plugin>
</body>
</pluginDefinition>
and then in some other pom.xml
<plugin>
<groupId>my.com</groupId>
<artifactId>deploy</artifactId>
<configuration>
<path>test.war</path>
<list>
<item>1</item>
<item>2</item>
</list>
</configuration>
</plugin>
or something like this.
Thanks for the attention.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira