Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6069

Migrate to non deprecated parts of Commons CLI

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.9, 3.5.0-alpha-1, 3.5.0-beta-1, 3.5.0
    • Fix Version/s: 3.6.2
    • Component/s: Embedding
    • Labels:
      None

      Description

      At the moment all parts of OptionBuilder... are marked deprecated in CLIManager. They should be migrated to:

      Option.builder( HELP ).longOpt( "help" ).desc( "Display help information" ).build()
      

      Ensure that the following command succeeds: mvn -X -D x=1 -D y=2 test ( watch out for the space after -D )

       

      For now, leave GnuParser. Despite the upgrade advice in the GnuParser Javadoc ("since 1.3, use the DefaultParser instead"), it behaves differently (see this Stack Overflow answer for possible reasons).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slachiewicz Sylwester Lachiewicz
                Reporter:
                khmarbaise Karl Heinz Marbaise
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h