Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"unpexpected kEND" with rspec-maven-plugin #85

Open
ckayser opened this issue Mar 17, 2016 · 1 comment
Open

"unpexpected kEND" with rspec-maven-plugin #85

ckayser opened this issue Mar 17, 2016 · 1 comment

Comments

@ckayser
Copy link

ckayser commented Mar 17, 2016

I can't manage to make the rspec samples work and keep getting the following error:
SyntaxError: -e:35: syntax error, unexpected kEND

Might it be coming from the script generated by RSpecMavenTestScriptFactory ?

Here's the full stack:

mvn rspec:test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building distribution 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- rspec-maven-plugin:1.1.3:test (default-cli) @ distribution ---
[INFO]
[INFO]  run with jruby 1.7.22
[INFO]
[INFO] io/console not supported; tty will not be manipulated
[INFO] SyntaxError: -e:35: syntax error, unexpected kEND
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.093 s
[INFO] Finished at: 2016-03-17T17:15:11+01:00
[INFO] Final Memory: 11M/149M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.saumya.mojo:rspec-maven-plugin:1.1.3:test (default-cli) on project distribution: Unable to read test
report file: C:\Temp\distribution\target\rspec-report.html -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

and my pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <artifactId>distribution</artifactId>
    <packaging>pom</packaging>

    <build>
            <plugin>
                <groupId>de.saumya.mojo</groupId>
                <artifactId>rspec-maven-plugin</artifactId>
                <version>1.1.3</version>
                <configuration>
                    <specSourceDirectory>src/test/rspec</specSourceDirectory>
                </configuration>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>rubygems</groupId>
            <artifactId>rspec</artifactId>
            <version>3.0.0</version>
            <type>gem</type>
            <scope>test</scope>
        </dependency>
    </dependencies>


</project>
@mkristian
Copy link
Member

if you add -Djruby.verbose to your commandline then you will see the java call with all its arguments including the -e bits.

on linux you pom.xml works for me. maybe a windows thing ? too, much escaping in the -e part

maybe https://github.com/torquebox/jruby9-maven-plugins/tree/master/jruby9-exec-maven-plugin is working for you - it just installs gems and you can run the executables from the installed gems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants