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

MAVEN_OPTS are incorrectly resolved in Unix

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1, 3.0.5
    • Fix Version/s: None
    • Component/s: Command Line
    • Labels:
      None
    • Environment:
      OS: Linux, 2.6.32-11-generic, amd64.
      Java: 1.6.0_17
      Also Operating System = Mac OS X version 10.9.2 running on x86_64
      Java; VM; Vendor = 1.7.0_51

      Description

      I'm trying to pass a quoted parameter through MAVEN_OPTS, e.g.
      MAVEN_OPTS="-Dfoo='bar baz'"

      As a result the quotes are not resolved, causing Java failure:
      Exception in thread "main" java.lang.NoClassDefFoundError: baz'
      ...

      I couldn't figure out a way to make it work.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                maximp Maxim Podkolzine
              • Votes:
                3 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated: