Skip to content

Maven Fails when ${errai.jboss.home} path contains spaces #7

@Hayato-Hess

Description

@Hayato-Hess

The maven build fails with following message:
[ERROR] Error: Could not find or load main class Documents\errai-tutorial-master\target.wildfly-10.0.0.Final [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24.912 s [INFO] Finished at: 2017-07-03T17:52:19+02:00 [INFO] Final Memory: 53M/386M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.8.0:run (default-cli) on project errai-tutorial: Command [[ [ERROR] cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_121\jre\bin\java" -Xmx2048m -XX:CompileThreshold=7000 -Derrai.jboss.home=C:\Projects\CLT Documents\errai-tutorial-master\target/wildfly-10.0.0.Final -Derrai.dev.context=errai-tutorial com.google.gwt.dev.DevMode -gen "C:\Projects\CLT Documents\errai-tutorial-master\target\.generated" -war "C:\Projects\CLT Documents\errai-tutorial-master\src\main\webapp" -logLevel INFO -port 8888 -codeServerPort 9997 -startupUrl errai-tutorial/ -sourceLevel auto -server org.jboss.errai.cdi.server.gwt.EmbeddedWildFlyLauncher org.jboss.errai.demo.App" [ERROR] ]] failed with status 1 [ERROR] -> [Help 1]

The error occurs because there is a space in the path "C:\Projects\CLT Documents\errai-tutorial-master\target/wildfly-10.0.0.Final" resulting in -Derrai.jboss.home to be "C:\Projects\CLT"

To resolve this issue, I had to add quotation marks around ${errai.jboss.home} in the pom.xml:
-Xmx2048m -XX:CompileThreshold=7000 -Derrai.jboss.home="${errai.jboss.home}" -Derrai.dev.context="${errai.dev.context}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions