Tamás Cservenák created SUREFIRE-929: ----------------------------------------
Summary: Unexpected output with "-Dmaven.surefire.debug" Key: SUREFIRE-929 URL: https://jira.codehaus.org/browse/SUREFIRE-929 Project: Maven Surefire Issue Type: Bug Affects Versions: 2.12.4 Reporter: Tamás Cservenák Steps to recreate: 1) create a project out of maven-quickstart org.apache.maven.archetypes:maven-archetype-quickstart (just to have a project, but actually _any_ project would do it) 2) build it by executing following {noformat} mvn clean test -Dmaven.surefire.debug=tru {noformat} Yes, "tru" not "true"! Expected: build "as usual", without debugging (have it aligned with other -D switches like -DfailIfNoTests etc). What happens: WAT? {noformat} [cstamas@zaphod sample]$ mvn -V clean test -Dmaven.surefire.debug=tru Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home: /usr/share/maven Java version: 1.6.0_37, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac" [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building a 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ a --- [INFO] Deleting /Users/cstamas/tmp/sample/target [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ a --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/cstamas/tmp/sample/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ a --- [INFO] Compiling 1 source file to /Users/cstamas/tmp/sample/target/classes [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ a --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/cstamas/tmp/sample/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ a --- [INFO] Compiling 1 source file to /Users/cstamas/tmp/sample/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ a --- [INFO] Surefire report directory: /Users/cstamas/tmp/sample/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Exception in thread "main" java.lang.NoClassDefFoundError: tru Caused by: java.lang.ClassNotFoundException: tru at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.440s [INFO] Finished at: Fri Nov 30 17:06:41 CET 2012 [INFO] Final Memory: 9M/81M [INFO] ------------------------------------------------------------------------ [cstamas@zaphod sample]$ {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira