title: Karate Api Testing with Maven and Jenkins
body: <p>I am using karate default arche type as mentioned in the karate tutorial and running testing successfully with cucumber reports using Eclipse but when i use the same project in Jenkins i am getting following error. 
  I am using Java 1.8 and Cucumber-reporting tool, Please help me solving this issue as i suspect this is issue with the project structure</p>
  
  <pre><code>    &lt;===[JENKINS REMOTING CAPACITY]===&gt;channel started
  Executing Maven:  -B -f D:\CogsdaleWorkspace\karate-archetype\pom.xml clean test
  [INFO] Scanning for projects...
  [INFO] 
  [INFO] ----------------------&lt; com.mycompany:myproject &gt;-----------------------
  [INFO] Building myproject 1.0-SNAPSHOT
  [INFO] --------------------------------[ jar ]---------------------------------
  [INFO] 
  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ myproject ---
  [INFO] Deleting D:\CogsdaleWorkspace\karate-archetype\target
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myproject ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory D:\CogsdaleWorkspace\karate-archetype\src\main\resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ myproject ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ myproject ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] Copying 10 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ myproject ---
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling 1 source file to D:\CogsdaleWorkspace\karate-archetype\target\test-classes
  [INFO] -------------------------------------------------------------
  [ERROR] COMPILATION ERROR : 
  [INFO] -------------------------------------------------------------
  [ERROR] /D:/CogsdaleWorkspace/karate-archetype/src/test/java/nexusportalapi/TestParallel.java:[3,24] package org.junit does not exist
  [ERROR] /D:/CogsdaleWorkspace/karate-archetype/src/test/java/nexusportalapi/TestParallel.java:[3,1] static import only from classes and interfaces
  [ERROR] /D:/CogsdaleWorkspace/karate-archetype/src/test/java/nexusportalapi/TestParallel.java:[11,17] package org.junit does not exist
  [ERROR] /D:/CogsdaleWorkspace/karate-archetype/src/test/java/nexusportalapi/TestParallel.java:[34,10] cannot find symbol
    symbol:   class Test
    location: class nexusportalapi.TestParallel
  [INFO] 4 errors 
  [INFO] -------------------------------------------------------------
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  4.046 s
  [INFO] Finished at: 2019-12-18T07:25:48-06:00
  [INFO] ------------------------------------------------------------------------
  Waiting for Jenkins to finish collecting data
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:testCompile (default-testCompile) on project myproject: Compilation failure: Compilation failure:
  [ERROR] /D:/CogsdaleWorkspace/karate-archetype/src/test/java/nexusportalapi/TestParallel.java:[3,24] package org.junit does not exist
  [ERROR] /D:/CogsdaleWorkspace/karate-archetype/src/test/java/nexusportalapi/TestParallel.java:[3,1] static import only from classes and interfaces
  [ERROR] /D:/CogsdaleWorkspace/karate-archetype/src/test/java/nexusportalapi/TestParallel.java:[11,17] package org.junit does not exist
  [ERROR] /D:/CogsdaleWorkspace/karate-archetype/src/test/java/nexusportalapi/TestParallel.java:[34,10] cannot find symbol
  [ERROR] symbol:   class Test
  [ERROR] location: class nexusportalapi.TestParallel
  [ERROR] -&gt; [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/MojoFailureException
  
  </code></pre>
  
  <p>POM FILE</p>
  
  <p>`http://maven.apache.org/xsd/maven-4.0.0.xsd">
      4.0.0</p>
  
  <pre><code>&lt;groupId&gt;com.mycompany&lt;/groupId&gt;
  &lt;artifactId&gt;myproject&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;maven.compiler.version&gt;3.6.0&lt;/maven.compiler.version&gt;
      &lt;karate.version&gt;0.9.4&lt;/karate.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.intuit.karate&lt;/groupId&gt;
          &lt;artifactId&gt;karate-apache&lt;/artifactId&gt;
          &lt;version&gt;${karate.version}&lt;/version&gt;
  
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.intuit.karate&lt;/groupId&gt;
          &lt;artifactId&gt;karate-junit5&lt;/artifactId&gt;
          &lt;version&gt;${karate.version}&lt;/version&gt;
  
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
          &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
          &lt;version&gt;5.4.0&lt;/version&gt;
  
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.masterthought&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-reporting&lt;/artifactId&gt;
          &lt;version&gt;5.0.0&lt;/version&gt;
  
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
          &lt;version&gt;2.1&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;testResources&gt;
          &lt;testResource&gt;
              &lt;directory&gt;src/test/java&lt;/directory&gt;
              &lt;excludes&gt;
                  &lt;exclude&gt;**/*.java&lt;/exclude&gt;
              &lt;/excludes&gt;
          &lt;/testResource&gt;
      &lt;/testResources&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;${maven.compiler.version}&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                  &lt;source&gt;${java.version}&lt;/source&gt;
                  &lt;target&gt;${java.version}&lt;/target&gt;
                  &lt;compilerArgument&gt;-Werror&lt;/compilerArgument&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.22.2&lt;/version&gt;
          &lt;/plugin&gt;
  
      &lt;/plugins&gt;
  
  
  &lt;/build&gt;
  </code></pre>
  
  <p></p>