Maven error when running the testcases
<p>I have a Jenkins environment where I am trying to build a java project. Locally, this java project builds without any errors. But in the Jenkins environment it has the same error in each testcase:</p>

<pre><code>java.lang.NoClassDefFoundError: org.junit.runner.Runner
    at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:61)
    at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:262)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
</code></pre>

<p>I can not find out why this happens or how to debug to solve the error.
Any proposals?</p>