0

I am working on running Cucumber tests through Maven "mvn clean install" command. One of my Cuke tests including executes a jar file through command line with the following command - "java -jar -Dprop1:value... ./jarLocation. This test is working correctly and passing locally in my IDE, but when I perform a "maven clean install", it fails to start the process and throws a Null Pointer exception on the line where I start the Process.. Would anybody have an idea as to how to get this Cuke test to execute jar file, working with Maven? Any suggestions would be very much helpful.

Hello
  • 373
  • 2
  • 10
  • 21

1 Answers1

0

May be its an issue of mapping, please check the below URL hope it would be helpful for you.

m2e lifecycle-mapping not found

Community
  • 1
  • 1
ChayanC
  • 201
  • 7
  • 29
  • I checked the link.. But I could not resolve the issue yet. I am still getting a Null Pointer exception in the code, where it is trying to start the jar process. It is not creating the Process object for me.NullPointerException occurs at : Process process = new ProcessBuilder(command).start(); – Hello Mar 23 '15 at 15:24