Maven 2 & 3

Guide to transforming a maven.xml goal into a plugin

Details

  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

Many users coming from maven 1 have large maven.xml files and don't really know how to start migrating those.
Usually these maven.xml do simple things like copy some files or run an ant task.

3 use cases should be shown:
1) old custom assembly script can now be done by the assembly plugin
2) some ant task can be done with the antrun plugin
3) some custom script can be turned into a plugin
You probably don't like solution 2) and it's indeed not the best solution,
like use maven.xml in maven 1 was also not the best solution,
despite that people are doing it to do things quick & dirty or as proofs of concepts,
so they should be guided (and also be told that 3) is better)

This could become a part of "Guide to Moving from Maven 1.x to Maven 2.x":
http://maven.apache.org/guides/mini/guide-m1-m2.html
But seeing the length of that one, some sort of index would be usefull (like in FAQ's).

Issue Links

Activity

Hide
Vincent Siveton added a comment -

just add related links

Show
Vincent Siveton added a comment - just add related links

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: