[ 
https://issues.apache.org/jira/browse/MINVOKER-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381305#comment-15381305
 ] 

Abel Salgado Romero commented on MINVOKER-198:
----------------------------------------------

I created a branch with the examples required.
Here is the branch: 
https://github.com/abelsromero/asciidoctor-maven-plugin/tree/support/maven-invoker-plugin_spaces_issue

You'll see that the integration test 'src/it/article-html-command-with-spaces' 
fails with the message
    Error: Could not find or load main class source-highlighter=coderay"
Inside the folder I created a plain maven project with the same configuration 
that you can run with the 'run.sh' found inside.
Both the test and the plain project use the same configuration, but only the 
latests works. To see it working you can replace the 'toc' option by 'right' 
and you'll see that the index is generated on the other side of the page.

Let me know if you need any assistance with it, and thanks for your support :)

> mavenOpts in invoker.properties does not accept parameters with spaces
> ----------------------------------------------------------------------
>
>                 Key: MINVOKER-198
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-198
>             Project: Maven Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>         Environment: Maven 3.3.9 and 3.2.5.
> Linux/Mac
>            Reporter: Abel Salgado Romero
>             Fix For: waiting-for-feedback
>
>         Attachments: mac_output.txt
>
>
> 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"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to