I have simple selenium test (non junit) which I want to run through Maven. I have kept my class under src/test.
POM file is as below:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>my-execution</id>
<phase>test</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>SeleniumMavenTest.SeleniumMavenTest</mainClass>
<classpathScope>test</classpathScope>
</configuration>
Now Maven is embedded as a plug-in in Eclipse. I am running Maven clean then Maven install but I am getting MojoExecutionException (Class not found).
An error as below:
java.lang.ClassNotFoundException: SeleniumMavenTest.SeleniumMavenTest
Can anyone tell me how to trigger a simple test(non JUnit) using Maven and what is going wrong here?