Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-1567

improvements to complex mojo configuration

    Details

    • Complexity:
      Expert
    • Number of attachments :
      0

      Description

      currently, you can specify an object in the configuration that allows nesting multiple levels of config. This is helpful, but it would be good to be able to validate those portions of the configuration as well as set default values, and make them extendable by making them fully fledged configured component requirements.

      basically:

      • be able to specify expressions and default values within the fields of the object, not just the top mojo, as long as it is in the same source tree as the mojo (like extends)
      • to be able to put a polymorphic object in there without an implementation given in the pom. This might require selectors, and so might be best left until a later version (se elinked issue for a use case)

      I haven't tried, but it might already be possible to do this (from components.xml), and we just need to wire up the tools to handle it.

        Issue Links

          Activity

          Brett Porter made changes -
          Field Original Value New Value
          Link This issue is related to MNG-1566 [ MNG-1566 ]
          Vincent Massol made changes -
          Workflow Maven [ 42056 ] Maven New [ 48125 ]
          Jason van Zyl made changes -
          Fix Version/s 2.1.x [ 13142 ]
          Fix Version/s 2.1 [ 11704 ]
          Hide
          Brett Porter added a comment -

          will write a proposal next time

          Show
          Brett Porter added a comment - will write a proposal next time
          Brett Porter made changes -
          Fix Version/s 2.x [ 13145 ]
          Fix Version/s 2.1 [ 13142 ]
          Hide
          Marvin Froeder added a comment -

          Will be cool if complex parameters use xstream to parse....
          http://xstream.codehaus.org/

          With this, is easy to parse any XML to any object.

          VELO

          Show
          Marvin Froeder added a comment - Will be cool if complex parameters use xstream to parse.... http://xstream.codehaus.org/ With this, is easy to parse any XML to any object. VELO
          Show
          Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
          Hide
          Jason van Zyl added a comment -

          Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

          Show
          Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
          Jason van Zyl made changes -
          Resolution Incomplete [ 4 ]
          Status Open [ 1 ] Closed [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Brett Porter
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: