Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.12
-
None
-
mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
Maven home: /home/henning/.mvn
Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.30/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.34.9-69.fc13.x86_64", arch: "amd64", family: "unix"
(also with maven 3.0.3)
mvn --version Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800) Maven home: /home/henning/.mvn Java version: 1.6.0_30, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.30/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.34.9-69.fc13.x86_64", arch: "amd64", family: "unix" (also with maven 3.0.3)
Description
We are running all our tests using a special security manager that restricts IO in tests. There is a regression when running these tests with the 2.12 plugin compared to the 2.11 plugin:
How to reproduce:
1) git clone git@github.com:NessComputing/components-ness-pg.git
2) mvn clean compile test-compile
3) Run the tests with the 2.11 plugin:
mvn -Dtest=TestPostgresUtils org.apache.maven.plugins:maven-surefire-plugin:2.11:test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ness-pg 2.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-surefire-plugin:2.11:test (default-cli) @ ness-pg —
[INFO] Surefire report directory: /home/scratch/components-ness-pg/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.nesscomputing.db.TestPostgresUtils
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec
2012-02-14 15:15:06,823 INFO main com.nesscomputing.testing.lessio.LessIOSecurityManager org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:77): exit(0)
Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
4) Run the tests with the 2.12 plugin:
mvn -Dtest=TestPostgresUtils org.apache.maven.plugins:maven-surefire-plugin:2.12:test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ness-pg 2.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-surefire-plugin:2.12:test (default-cli) @ ness-pg —
[INFO] Surefire report directory: /home/scratch/components-ness-pg/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.nesscomputing.db.TestPostgresUtils
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.092 sec
Z,0,BYE!
2012-02-14 15:15:32,233 INFO main com.nesscomputing.testing.lessio.LessIOSecurityManager org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:79): exit(0)
Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.334s
[INFO] Finished at: Tue Feb 14 15:15:32 PST 2012
[INFO] Final Memory: 5M/181M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-cli) on project ness-pg: Execution default-cli of goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [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/PluginExecutionException
Note the regression.