Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: _Plugin Submission
    • Labels:
      None
    • Complexity:
      Intermediate
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      I would like to create a plugin that can read and rewrite the pom.
      This could be used for things like:

      • sorting and cleaning up dependencies (included in the patch)
      • resolving plugin versions and adding the version numbers to the pom
      • look for missing configuration like the scm or license and give a warning for the stuff that's missing
      • general validation or other pom related tasks?

      Since there appears to be no maven pom plugin for maven 2, maybe this can be the new maven pom plugin.

        Issue Links

          Activity

          Hide
          Paul Benedict added a comment -

          The Maven Help plugin may be a good place for this.

          Show
          Paul Benedict added a comment - The Maven Help plugin may be a good place for this.
          Hide
          Paul Gier added a comment -

          I was thinking this one could be more for actually rewritting the pom, such as following format conventions, etc. Whereas the help plugin I think is more informational.

          Show
          Paul Gier added a comment - I was thinking this one could be more for actually rewritting the pom, such as following format conventions, etc. Whereas the help plugin I think is more informational.
          Hide
          Mark Hobson added a comment -

          A related plugin has emerged in the sandbox, you may be interested in combining forces:
          http://mojo.codehaus.org/versions-maven-plugin/

          Show
          Mark Hobson added a comment - A related plugin has emerged in the sandbox, you may be interested in combining forces: http://mojo.codehaus.org/versions-maven-plugin/
          Hide
          Stephen Connolly added a comment -

          i'm working on tidy-maven-plugin@mojo to do this

          Show
          Stephen Connolly added a comment - i'm working on tidy-maven-plugin@mojo to do this
          Hide
          Björn Ekryd added a comment -

          If you are interested in a plugin that sorts the pom-file according format conventions you should try Maven-SortPom-Plugin http://code.google.com/p/sortpom/. It has been around since 2009 and it is still active. The plugin can be found i Central. The plugin is mainly concerned with the formatting of the pom and does not address issues like cleaning up dependencies or adding version numbers. Feature requests are always welcome though.

          Show
          Björn Ekryd added a comment - If you are interested in a plugin that sorts the pom-file according format conventions you should try Maven-SortPom-Plugin http://code.google.com/p/sortpom/ . It has been around since 2009 and it is still active. The plugin can be found i Central. The plugin is mainly concerned with the formatting of the pom and does not address issues like cleaning up dependencies or adding version numbers. Feature requests are always welcome though.
          Hide
          Archimedes Trajano added a comment -

          I got to this from the https://maven.apache.org/developers/conventions/code.html page. I posted my XSLT that does the reordering that works with Xalan

          Show
          Archimedes Trajano added a comment - I got to this from the https://maven.apache.org/developers/conventions/code.html page. I posted my XSLT that does the reordering that works with Xalan
          Hide
          Anders Hammar added a comment -

          Have a try with the tidy plugin: http://mojo.codehaus.org/tidy-maven-plugin/

          Show
          Anders Hammar added a comment - Have a try with the tidy plugin: http://mojo.codehaus.org/tidy-maven-plugin/

            People

            • Assignee:
              Unassigned
              Reporter:
              Paul Gier
            • Votes:
              10 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated: