Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven Plugins: components.xml and lifecycles.xml

I'm looking for the XSDs and documentation about META-INF/plexus/components.xml and META-INF/maven/lifecycles.xml which are used in Maven plugins.

The only documentation I've found so far is:

http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-plugins-lifecycle.html

like image 416
Puce Avatar asked Sep 03 '25 17:09

Puce


2 Answers

Lifecycle XSD is at http://maven.apache.org/xsd/lifecycle-1.0.0.xsd (linked to from the documentation.)

Plexus is a project at Codehaus, I didn't see any documentation of their schema there (but I didn't dig too deeply).

like image 198
TMN Avatar answered Sep 07 '25 10:09

TMN


As mentioned in the other (accepted) answer, lifecycle-1.0.0.xsd is documented in the maven 3.2.1 docs.

As for the codehaus components schema, Codehaus is unfortunately no more (Codehaus: The once great house of code has fallen), but while the old site is now accessible via http://plexus.codehaus.org/, it looks like some of the materials didn't make it over, including the components-1.3.0.xsd from the plexus components docs. Even the Wayback machine only has 404s and redirects for the schema.

As the components schema doesn't appear to be stored anywhere in the source archive, I assume that it was generated from code, but I haven't been able to find anything definitive or useful enough to reconstruct the schema.

like image 25
tzrlk Avatar answered Sep 07 '25 08:09

tzrlk