Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
12.0
-
None
Description
NetBeans users has just recently complained that Maven support is slower than Ant - some even claimed they rather maintain dual Ant script support than wait for Maven to launch. I've created this issue to investigate the problem.
First of all we need a sample project: justtest.diff - apply it patch -p1 <justtest.diff in an empty directory shall be enough. Then you can run it with Maven:
$ time JAVA_HOME=~/bin/jdk-8/ mvn -quiet -Dtest=com.mycompany.justtest.MainTest process-test-classes surefire:test ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.mycompany.justtest.MainTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec Results :Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 real 0m2,633s user 0m6,986s sys 0m0,257s
and you can also run it with Ant:
time JAVA_HOME=~/bin/jdk-8/ ant -q test-single -Djavac.includes=com/mycompany/justtest/MainTest.java -Dtest.includes=com/mycompany/justtest/MainTest.java BUILD SUCCESSFUL Total time: 1 second real 0m1,899s user 0m4,250s sys 0m0,244s
2.6s vs. 1.9s! Really? Is that the problem? Probably not, I guess the difference is the integration into the IDE then.