damianszczepanik / cucumber-reporting

HTML reports for Cucumber
GNU Lesser General Public License v2.1
548 stars 403 forks source link

Continually getting NullPointerException #237

Closed kschurr closed 8 years ago

kschurr commented 8 years ago

Hi, I am trying to set up running cucumber reports in a project as smoke tests, and cannot get around a NullPointerException when triggering the profile that runs the plugin. Can you please help?

The error is as follows: [INFO] --- maven-cucumber-reporting:0.0.6:generate (execution) @ project name here

About to generate java.io.FileNotFoundException: **\target\cucumber.json (The system cannot find the file specified) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.590 s [INFO] Finished at: 2015-11-23T11:25:52-05:00 [INFO] Final Memory: 10M/204M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal net.masterthought:maven-cucumber-reporting:0.0.6: generate (execution) on project rxspend-app: Error Found: NullPointerException -

[Help 1]

Applicable code from POM

smoketest org.codehaus.mojo build-helper-maven-plugin 1.9.1 add-source generate-sources add-test-source src/smoketest/java add-resource generate-sources add-test-resource src/smoketest/resources org.apache.maven.plugins maven-surefire-plugin true net.masterthought maven-cucumber-reporting 0.0.5 execution verify generate cucumber-jvm-example ${project.build.directory}/cucumber-html-reports ${project.build.directory}/cucumber.json false UTF-8
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-core</artifactId>
            <version>${cucumber.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-java</artifactId>
            <version>${cucumber.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-junit</artifactId>
            <version>${cucumber.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-picocontainer</artifactId>
            <version>${cucumber.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>net.masterthought</groupId>
            <artifactId>maven-cucumber-reporting</artifactId>
            <version>0.2.1</version>
        </dependency>
sonatype-releases https://oss.sonatype.org/content/repositories/releases/
damianszczepanik commented 8 years ago

The problem is not about configuring the plugin but cucumber-jvm itself. Try to run with maven debug mode or ask on https://github.com/cucumber/cucumber-jvm