Monday, September 24

documentation for the maven-inherit-plugin

I've uploaded some documentation for the maven-inherit-plugin in the usual format:

and improved the code to use custom Javadoc tags to get the extended plugin details.

For example:

* @extendsPlugin archetype
* @extendsGoal create
* @goal create-project
* @requiresProject false
public class OSGiProjectArchetypeMojo extends MavenArchetypeMojo
// if you override member fields, remember to propagate the values using reflection


Anonymous said...

no examples at all?

would be nice to see an example of how it really works

mcculls said...

The link mentioned above contains the standard Maven-generated plugin documentation, including how to use it:

There's also a concrete example here:

Note this is a workaround, not a perfect solution to inheritance.