Maven JVM terminated unexpectedly with exit code 1

1,147 views
Skip to first unread message

prasanna. purohit

unread,
Oct 15, 2015, 9:48:08 AM10/15/15
to Cukes
Hi All,

When I execute Cucumber Tests using Jenkins and Maven, able to execute Cucumber Tests depending on the tag provided. But the Jenkins build status is not reflected depend on the outcome of the Cucumber Tests execution. All the Cucumber tests are successfully executing and they are PASSED but the Jenkins build status is shown aborted with the error in Console "Maven JVM terminated unexpectedly with exit code 1". Below is the POM file I have used

It will be great help and there is no answer in the google who solved the issue, lt depend on the status of the build 

  <modelVersion>4.0.0</modelVersion>
  <groupId>WebUITests</groupId>
  <artifactId>WebUITests</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <name>WebUITests</name>
  <description>WebUITests using selenium</description>
  
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <selenium.version>[2.45.0,)</selenium.version>
    <cucumber.version>[1.2.4,)</cucumber.version>
    <jna.version>[4.1.0,)</jna.version>
     <junit.version>[4.11.0,)</junit.version>
     <cucumber-html.version>[0.2.3,)</cucumber-html.version>
     <masterthought.version>0.1.0</masterthought.version> 
  </properties>
  
  <dependencies>
 <!--  JAVA DEPENDENCY -->
    <dependency>
     <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>16.0.1</version>
    </dependency>
   <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>1.6.4</version>
    </dependency>
    
<!-- SELENIUM DEPENCY -->
    <dependency>
     <groupId>org.seleniumhq.selenium</groupId>
     <artifactId>selenium-java</artifactId>
     <version>${selenium.version}</version>
        </dependency>
        <dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
<version>${selenium.version}</version>
</dependency>
        <dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>${selenium.version}</version>
</dependency>
<!-- CUCUMBER DEPENCY -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
           <groupId>com.googlecode.totallylazy</groupId>
           <artifactId>totallylazy</artifactId>
           <version>1077</version>
   </dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>${cucumber.version}</version>
<scope>test</scope>
</dependency>

        <dependency>
    <groupId>net.masterthought</groupId>
    <artifactId>cucumber-reporting</artifactId>
    <version>${masterthought.version}</version>
</dependency>
<!-- WebUIFramework Depencies -->
        <dependency>
            <groupId>WebUIFramework</groupId>
            <artifactId>WebUIFramework</artifactId>
            <version>0.0.1-SNAPSHOT</version>
            <scope>system</scope>
            <systemPath>${basedir}\lib\WebUIFramework.jar</systemPath>
</dependency>
<dependency>
            <groupId>com.googlecode.totallylazy</groupId>
            <artifactId>totallylazy</artifactId>
            <scope>system</scope>
            <version>1.20</version>
            <systemPath>${basedir}\lib\totallylazy-1.20.jar</systemPath>
</dependency>
        </dependencies>
         <build>
         
     <plugins>
         <plugin>
             <groupId>org.codehaus.mojo</groupId>
             <artifactId>exec-maven-plugin</artifactId>
             <version>1.4.0</version>
             <executions>
                 <execution>
                     <phase>integration-test</phase>
                     <goals>
                         <goal>java</goal>
                     </goals>
                 </execution>
             </executions>
             <configuration>
                 <executableDependency>
                     <groupId>info.cukes</groupId>
                     <artifactId>cucumber-core</artifactId>
                 </executableDependency>
                 <classpathScope>test</classpathScope>
                 <mainClass>cucumber.api.cli.Main</mainClass>
                 <arguments>
                     <argument>--format</argument>
                     <argument>junit:target/cucumber-junit-report/allcukes.xml</argument>
                     <argument>--format</argument>
                     <argument>pretty</argument>
                     <argument>--format</argument>
                     <argument>html:target/cucumber-html-report</argument>
                     <argument>--format</argument>
        <argument>json:target/cucumber-json-report.json</argument>
                     <argument>--tags</argument>
                     <argument>@Check_Search</argument>
                     <argument>--glue</argument>
                     <argument>com/webuitests/cuketests</argument>
                     <argument>src/test/resources/features</argument>
                 </arguments>
             </configuration>
         </plugin>
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>1.5</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      </plugins>
</build>
</project>

Thanks
Prasanna
Reply all
Reply to author
Forward
0 new messages