Jaroslav Tulach created NETBEANS-4746:
-----------------------------------------
Summary: Running test in Maven is slower than in Ant
Key: NETBEANS-4746
URL: https://issues.apache.org/jira/browse/NETBEANS-4746
Project: NetBeans
Issue Type: Task
Components: projects - Maven
Affects Versions: 12.0
Reporter: Jaroslav Tulach
Assignee: Jaroslav Tulach
Attachments: justtest.diff
NetBeans users has just recently complained that Maven support is slower than
Ant - some even claimed they [rather maintain dual Ant script
support|http://mail-archives.apache.org/mod_mbox//netbeans-dev/202008.mbox/browser]
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:
{code:java}
$ 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
{code}
and you can also run it with Ant:
{code:java}
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
{code}
2.6s vs. 1.9s! Really? Is that the problem? Probably not, I guess the
difference is the integration into the IDE then.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists