Hi, I'm trying to run a JUnit test in Maven, but for some reason, the tests are being skipped. In my pom.xml file, I have the junit dependency and added the maven-surefire-plugin in the hopes my JUnit test gets invoked.
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <includes> <include>AssetManagerTest.java</include> </includes> </configuration> </plugin> Is there anything I need to do different? The Junit test is 10 sub-directories deep from the pom.xml, but I don't think this is an issue. I've also included a screenshot of the output from the mvn test command. Thanks in advance. Screenshot from mvn test command: [EMAIL PROTECTED]:~/projects/csdp_build/sources/csdp/com.ibm.csdp.bss.catalog/catalog.repository.cmd> mvn test [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building catalog.repository.cmd [INFO] task-segment: [test] [INFO] ---------------------------------------------------------------------------- [INFO] [buildnumber:create {execution: default}] [INFO] Build Number: 20070418-0955 [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Not compiling test sources [INFO] [surefire:test] [INFO] Tests are skipped. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12 seconds [INFO] Finished at: Wed Apr 18 09:55:18 CDT 2007 [INFO] Final Memory: 15M/36M [INFO] ------------------------------------------------------------------------ Enrique