Uploaded image for project: 'Maven Invoker Plugin'
  1. Maven Invoker Plugin
  2. MINVOKER-198

mavenOpts in invoker.properties does not accept parameters with spaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.0
    • None
    • None
    • Maven 3.3.9 and 3.2.5.
      Linux/Mac

    Description

      Seems that mavenOpts does some additional parsing and comand line arguments with spaces are not read correctly.
      This prevents writing tests that when run on console in a normal maven build they work.

      Here is an example of what I want to test:
      https://github.com/abelsromero/asciidoctor-maven-plugin/blob/attributes_command/src/it/article-html-attributes/invoker.properties
      If you see the "asciidoctor.attributes" is a chain with many internal parameters and spaces. This works on console, but not in the test.

      But the test fails with the message:
      Error: Could not find or load main class source-highlighter=coderay"

      Attachments

        1. mac_output.txt
          10.36 MB
          Abel Salgado Romero

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Abel S.Romero Abel Salgado Romero
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: