Monday, September 24

documentation for the maven-inherit-plugin

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

http://www.ops4j.org/projects/pax/construct/maven-inherit-plugin

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
}

2 comments:

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:

http://www.ops4j.org/projects/pax/construct/maven-inherit-plugin/usage.html

There's also a concrete example here:

http://scm.ops4j.org/repos/ops4j/projects/pax/construct/maven-pax-plugin/

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