title: 'No main manifest attribute' error with Maven + TestNG + Selenium Grid2
body: <p>I wants to run Selenium grid hub, With my project framework Maven + TestNG.</p>
  
  <p>I have added selenium-server 3.12 dependency in POM.XML and When I call this selenium-server jar from our maven project, its gives me error as 'No main manifest attribute'. </p>
  
  <p>I am having Doubt, to call "java -jar selenium-server-standalone-3.12.0.jar -role hub" Do we need to externally download this Jar for Selenium Hub ? As its already imported in Maven project.</p>
  
  <p>Error with Maven project setup,'No main manifest attribute'</p>
  
  <pre><code>C:\Users\Desktop-pc&gt;java -jar org\seleniumhq\selenium\selenium-server\3.12.0\selenium-server-3.12.0.jar -role hub
  no main manifest attribute, in org\seleniumhq\selenium\selenium-server\3.12.0\selenium-server-3.12.0.jar
  </code></pre>
  
  <p>Where if I use separate 'Selenium Server Standalone' jar, hub is created successfully: </p>
  
  <pre><code>C:\&gt;java -jar selenium-server-standalone-3.8.1.jar -role hub
  16:05:07.614 INFO - Selenium build info: version: '3.8.1', revision: '6e95a6684b'
  16:05:07.616 INFO - Launching Selenium Grid hub
  2018-05-28 16:05:08.690:INFO::main: Logging initialized @1490ms to org.seleniumhq.jetty9.util.log.StdErrLog
  16:05:08.707 INFO - Will listen on 4444
  2018-05-28 16:05:08.823:INFO:osjs.Server:main: jetty-9.4.7.v20170914
  2018-05-28 16:05:08.867:INFO:osjs.session:main: DefaultSessionIdManager workerName=node0
  2018-05-28 16:05:08.868:INFO:osjs.session:main: No SessionScavenger set, using defaults
  2018-05-28 16:05:08.871:INFO:osjs.session:main: Scavenging every 660000ms
  2018-05-28 16:05:08.876:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@1672fe87{/,null,AVAILABLE}
  2018-05-28 16:05:11.946:INFO:osjs.AbstractConnector:main: Started ServerConnector@1816a71f{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
  2018-05-28 16:05:11.948:INFO:osjs.Server:main: Started @4748ms
  16:05:11.948 INFO - Nodes should register to http://localhost:4444/grid/register/
  16:05:11.949 INFO - Selenium Grid hub is up and running
  </code></pre>
  
  <p><strong>POM.XML</strong></p>
  
  <pre><code>       &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;archive&gt;
                          &lt;manifest&gt;
                              &lt;mainClass&gt; ???? &lt;/mainClass&gt;
                          &lt;/manifest&gt;
                      &lt;/archive&gt;
                  &lt;/configuration&gt;
         &lt;/plugin&gt;
  </code></pre>
  
  <p>what I need to declare in mainclass, If I am using <code>@TestNG</code> and its without static main class method. </p>