Issue Details (XML | Word | Printable)

Key: MPLUGIN-56
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Kohsuke Kawaguchi
Votes: 3
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Plugin Tools

Inter-plugin Mojo inheritance

Created: 22/Jan/07 07:40 PM   Updated: 08/Aug/08 03:01 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Related
 


 Description  « Hide
It's often desirable to create a new mojo by extending an existing mojo and changing its behavior. For example, one might imagine a NetBeans plugin packager that extends from JarMojo and adds extra stuff into the jar.

Today, if I extends a mojo from another plugin, the plugin:descriptor goal fails to create a proper META-INF/maven/plugin.xml — it doesn't list any of the injections that need to happen for the base class.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Vincent Siveton added a comment - 08/Aug/08 02:54 PM
I think this issue was already fix somewhere... See generated documentation.

http://maven.apache.org/plugins/maven-javadoc-plugin-2.5/javadoc-mojo.html

    * Requires a Maven 2.0 project to be executed.
    * Requires dependency resolution of artifacts in scope: compile.
    * Since version: 2.0.
    * Invokes the execution of the lifecycle phase generate-sources prior to executing itself.

http://maven.apache.org/plugins/maven-javadoc-plugin-2.5/aggregate-mojo.html

    * Requires a Maven 2.0 project to be executed.
    * Executes as an aggregator plugin.
    * Requires dependency resolution of artifacts in scope: compile.
    * Since version: 2.5.
    * Invokes the execution of the lifecycle phase generate-sources prior to executing itself.

Benjamin Bentmann added a comment - 08/Aug/08 03:01 PM
Vincent, this issue is about inheritance between mojos from different plugins which is not possibly right now as it would require to scan the sources of another plugin's dependencies to get all the javadoc annotations of the inherited stuff.