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

Wrong command line analysis for joined profile activation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.6.3
    • 4.0.x-candidate
    • None
    • None

    Description

      On command line you can activate profiles via -PprofileName and activating several profiles via -Pprofile1,profile2. Given the following command line:

      mvn -Prun-p1,-Prun-p2 ...

      The result is that the first profile run-p1 is being activate but the second run-p2 (intended profile) is not because those two profiles have been accidentally joined via , without giving spaces between.

      The issue here is of course the , between them (without spaces) which is obviously wrong but the preceding hyphen for the second profile -Prun-p2 violates the naming rules for profiles (If I correctly remember).

      From my point of view it would be good to identify such case and fail with an error...

      In the end is it a question of naming a profile? Which means is it allowed having a profile which starts with a hyphen?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              khmarbaise Karl Heinz Marbaise
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: