jruby-maven-plugins icon indicating copy to clipboard operation
jruby-maven-plugins copied to clipboard

"unpexpected kEND" with rspec-maven-plugin

Open ckayser opened this issue 8 years ago • 1 comments

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>

ckayser avatar Mar 17 '16 16:03 ckayser