0

I'm a little confused by the Maven documentation - should lifecycles be defined in lifecycles.xml or lifecycle.xml? Even the Sonatype reference talks about these two names seemingly interchangeably!

Still confused about components.xml too - if there's any good reference for that can you post it please?

Thanks, -Dave

Dave
  • 141
  • 1
  • 9
  • 1
    What about [lifecycle documentation](http://maven.apache.org/ref/3.2.5/maven-plugin-api/lifecycle-mappings.html) – khmarbaise Jan 14 '15 at 08:11

1 Answers1

0

It should be lifecycle.xml (see Lifecycle Mappings):

Configuration of custom lifecycle mappings for the plugin, as generally stored in META-INF/maven/lifecycle.xml in a plugin's jar artifact.

lifecycles.xml, with an 's', appears only once in the Maven source, commented out as a distinct and never-used file.

Also, components.xml, as in Overriding the Default Lifecycle:

In your plugin project, create a META-INF/plexus/components.xml under src/main/resources.

See Creating a new phase for a full example.

Community
  • 1
  • 1
Joe
  • 29,416
  • 12
  • 68
  • 88