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

MAVEN_OPTS are incorrectly resolved in Unix

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.2.1, 3.0.5
    • None
    • Command Line
    • None
    • 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

              Unassigned Unassigned
              maximp Maxim Podkolzine
              Votes:
              5 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated: