Maven Plugin Tools
  1. Maven Plugin Tools
  2. MPLUGIN-218

Tag 'since' not recognized in the plugin model

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7, 2.8, 2.9, 3.0
    • Fix Version/s: 3.1
    • Component/s: Metadata Model
    • Labels:
      None
    • Flags:
      Patch

      Description

      Hi,

      When using the 'since' tag in ANT mojo descriptors, the builds fails:


      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:2.7:descriptor (default-descriptor) on project trivial-maven-plugin: Error extracting plugin descriptor: 'Error extracting mojo descriptor from script: .../src/main/scripts/sample.mojos.xml': Error parsing file: .../src/main/scripts/sample.mojos.xml.
      Reason: Cannot parse plugin metadata from file. Unrecognised tag: 'since' (position: START_TAG seen ...</requiresProject>\n <since>... @10:14) -> [Help 1]

      The solution is very trivial: just add the tag information to the modello ('plugin-metadata.mdo').

      I attach a patch for the 'maven-plugin-tools' trunk.

      Best wishes,
      Tinguaro Barreno

      1. maven-plugin-tools.patch
        1 kB
        Tinguaro Barreno
      2. trivial-mojo.zip
        2 kB
        Tinguaro Barreno

        Activity

        Tinguaro Barreno created issue -
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        Thanks for the patch.
        Do you have any test case to add at least for ant mojos ?

        Show
        Olivier Lamy (*$^¨%`£) added a comment - Thanks for the patch. Do you have any test case to add at least for ant mojos ?
        Hide
        Tinguaro Barreno added a comment -

        Testcase: just a mojo with 'since' tag in the descriptor and parameter.

        Show
        Tinguaro Barreno added a comment - Testcase: just a mojo with 'since' tag in the descriptor and parameter.
        Tinguaro Barreno made changes -
        Field Original Value New Value
        Attachment trivial-mojo.zip [ 60424 ]
        Olivier Lamy (*$^¨%`£) made changes -
        Assignee Olivier Lamy [ olamy ]
        Olivier Lamy (*$^¨%`£) made changes -
        Affects Version/s 3.1 [ 18553 ]
        Fix Version/s 3.1 [ 18553 ]
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        applied.
        Thanks!

        Show
        Olivier Lamy (*$^¨%`£) added a comment - applied. Thanks!
        Olivier Lamy (*$^¨%`£) made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Hervé Boutemy made changes -
        Affects Version/s 2.10 [ 17658 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:08:28 UTC 2015 [ 1428235708524 ]
        Mark Thomas made changes -
        Workflow jira [ 12723203 ] Default workflow, editable Closed status [ 12756222 ]
        Mark Thomas made changes -
        Patch Submitted Yes [ 10763 ]
        Flags Patch [ 10430 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:41:51 UTC 2015 [ 1428280911727 ]
        Mark Thomas made changes -
        Workflow jira [ 12960716 ] Default workflow, editable Closed status [ 12997258 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        3h 21m 1 Olivier Lamy (*$^¨%`£) 29/Jun/12 08:26

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Tinguaro Barreno
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development