Thank you for the Response, Tommy. I already had a classpathScope test as shown
in baha_baniya / exec-maven-plugin-sample / source / pom.xml — Bitbucket.
|
|
| |
baha_baniya / exec-maven-plugin-sample / source / pom.xml — Bitbucket
|
|
|
Just figured out - I have to run class
Hello Baha,
You need a dependency to a jar containing the `np.com.bahadur.ExecTest` class.
According to: https://www.mojohaus.org/exec-maven-plugin/java-mojo.html the
dependency should have scope ’runtime’ unless you set the ’classpathScope’
parameter to something else.
Your pom has no
Hi
When I run mvn exec:java :
I get error:
java.lang.ClassNotFoundException: np.com.bahadur.ExecTest at
java.net.URLClassLoader.findClass (URLClassLoader.java:381) at
java.lang.ClassLoader.loadClass (ClassLoader.java:424) at
java.lang.ClassLoader.loadClass (ClassLoader.java:357) at