Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • J jruby-maven-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The TorqueBox Project
  • jruby-maven-plugins
  • Issues
  • #85
Closed
Open
Issue created Mar 17, 2016 by Charles Kayser@ckayser

"unpexpected kEND" with rspec-maven-plugin

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>
Assignee
Assign to
Time tracking