Maven插件:components.xml和lifecycles.xml

时间:2012-01-19 16:00:28

标签: java maven maven-plugin

我正在寻找有关Maven插件中使用的META-INF / plexus / components.xml和META-INF / maven / lifecycles.xml的XSD和文档。

到目前为止,我发现的唯一文档是:

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

2 个答案:

答案 0 :(得分:2)

生命周期XSD位于http://maven.apache.org/xsd/lifecycle-1.0.0.xsd(与documentation相关联。)

Plexus是project at Codehaus,我没有看到他们的架构的任何文档(但我没有深入挖掘)。

答案 1 :(得分:1)

如另一个(可接受的)答案中所述,lifecycle-1.0.0.xsd记录在the maven 3.2.1 docs中。

对于codehaus组件架构而言,不幸的是Codehaus不再可用(Codehaus: The once great house of code has fallen),但是虽然现在可以通过http://plexus.codehaus.org/访问旧站点,但是看起来有些材料没有实现以上,包括the components-1.3.0.xsd中的plexus components docs。甚至the Wayback machine都只有404,并为模式重定向。

由于组件模式似乎没有存储在源归档文件中的任何位置,因此我认为它是从代码生成的,但是我无法找到足以确定或有用的任何东西来重构模式。