Unable to set the path to bin, lib for selenium (maven) project for jenkins
<p>Trying to run selenium test cases. Which ever document i have seen, suggestion is to add path to bin and lib directory. </p>

<pre><code>Set projectLocation=F:\Selenium\TestNGBatchExample
cd %projectLocation%
set classpath=%projectLocation%\bin;%projectLocation%\lib\*
java org.testng.TestNG %projectLocation%\testng.xml
pause
</code></pre>

<p>But in maven project, there is no bin, lib folders in my maven project. Is there any mistake being done in exporting the projecting or any other place. Test cases run perfectly in local environment when executed from eclipse.</p>

<p><a href="https://i.stack.imgur.com/UqmyE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UqmyE.png" alt="project structure in local"></a></p>

<p><a href="https://i.stack.imgur.com/Bt9FW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bt9FW.png" alt="Project structure on windows server"></a></p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
 &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
 &lt;groupId&gt;automationtests360&lt;/groupId&gt;
 &lt;artifactId&gt;s360test&lt;/artifactId&gt;
 &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
 &lt;name&gt;page factory in simplify360&lt;/name&gt;
 &lt;description&gt;page factory in simplify360&lt;/description&gt;
 &lt;dependencies&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
   &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
   &lt;version&gt;3.0.0-beta2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
   &lt;artifactId&gt;selenium-firefox-driver&lt;/artifactId&gt;
   &lt;version&gt;3.0.0-beta2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
   &lt;artifactId&gt;selenium-chrome-driver&lt;/artifactId&gt;
   &lt;version&gt;3.0.0-beta2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
   &lt;artifactId&gt;selenium-server&lt;/artifactId&gt;
   &lt;version&gt;3.0.0-beta2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
   &lt;artifactId&gt;selenium-htmlunit-driver&lt;/artifactId&gt;
   &lt;version&gt;2.52.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;org.testng&lt;/groupId&gt;
   &lt;artifactId&gt;testng&lt;/artifactId&gt;
   &lt;version&gt;6.9.10&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;javax.activation&lt;/groupId&gt;
   &lt;artifactId&gt;activation&lt;/artifactId&gt;
   &lt;version&gt;1.1.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;org.mongodb&lt;/groupId&gt;
   &lt;artifactId&gt;mongo-java-driver&lt;/artifactId&gt;
   &lt;version&gt;2.11.3&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
   &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
   &lt;version&gt;1.9.13&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;log4j&lt;/groupId&gt;
   &lt;artifactId&gt;log4j&lt;/artifactId&gt;
   &lt;version&gt;1.2.17&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;mysql&lt;/groupId&gt;
   &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
   &lt;version&gt;5.1.36&lt;/version&gt;
  &lt;/dependency&gt;
 &lt;/dependencies&gt;
 &lt;build&gt;
  &lt;plugins&gt;
   &lt;plugin&gt;
    &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
    &lt;version&gt;3.3&lt;/version&gt;
    &lt;configuration&gt;
     &lt;source&gt;1.7&lt;/source&gt;
     &lt;target&gt;1.7&lt;/target&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.19.1&lt;/version&gt;
    &lt;configuration&gt;
     &lt;suiteXmlFiles&gt;
      &lt;suiteXmlFile&gt;testng.xml&lt;/suiteXmlFile&gt;
     &lt;/suiteXmlFiles&gt;
    &lt;/configuration&gt;
   &lt;/plugin&gt;
  &lt;/plugins&gt;
 &lt;/build&gt;
&lt;/project&gt;</code></pre>
</div>
</div>
</p>