title: Getting The POM for org.testng:testng:jar:5.14.3 is invalid and java.lang.NoClassDefFoundError while running pom.xml
body: <p>Getting  java.lang.NoClassDefFoundError while running pom.xml, I have updated maven surefire plugin in maven dependency as well as updated maven version but still getting the error,</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building eGem 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [WARNING] The POM for org.testng:testng:jar:5.14.3 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for org.testng:testng:jar:5.14.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for org.testng:testng:jar:5.14.5 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for com.beust:jcommander:jar:1.66 is missing, no dependency information available
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ eGem ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 13 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ eGem ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ eGem ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 12 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ eGem ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ eGem ---
  [WARNING] Error injecting: org.apache.maven.plugin.surefire.SurefirePlugin
  java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
  </code></pre>