Nevermind. I had the package name wrong. I used the package name from my main classes in addition to the test class.
Sorry for the confusion. Thank you, Neil -- Neil Aggarwal, 972-834-1565, http://propfinancing.com We offer 30 year loans on single family houses! *From:* Neil Aggarwal <n...@propfinancing.com> *Sent:* Tuesday, February 6, 2024 12:49 PM *To:* 'Maven Users List' <users@maven.apache.org> *Subject:* Invoking POJO test from batch file not working I have a test class krazydad.slitherlink.SolverTest It has a method public void testRun() Reading the Maven page, that should be enough to run it as a POJO test. If I use this command line to invoke Maven: mvn test -Dtest=com._3dmathpuzzles.krazydad.slitherlink.SolverTest It does not run and I get this output: [INFO] Scanning for projects... [INFO] [INFO] -----------------< com.3dmathpuzzles:3DMathPuzzlesWeb >----------------- [INFO] Building 3DMathPuzzlesWeb 2.0.0 [INFO] from pom.xml [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- resources:3.3.0:resources (default-resources) @ 3DMathPuzzlesWeb --- [INFO] Copying 0 resource [INFO] Copying 42 resources [INFO] [INFO] --- compiler:3.10.1:compile (default-compile) @ 3DMathPuzzlesWeb --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- resources:3.3.0:testResources (default-testResources) @ 3DMathPuzzlesWeb --- [INFO] Copying 3 resources [INFO] [INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ 3DMathPuzzlesWeb --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- surefire:2.22.2:test (default-test) @ 3DMathPuzzlesWeb --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.428 s [INFO] Finished at: 2024-02-06T12:47:32-06:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project 3DMathPuzzlesWeb: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException My pom has this to make sure junit and testNG are disabled: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <junitArtifactName>none:none</junitArtifactName> <testNGArtifactName>none:none</testNGArtifactName> </configuration> </plugin> Any help on why this did not work? Thank you, Neil -- Neil Aggarwal, 972-834-1565, http://propfinancing.com We offer 30 year loans on single family houses!