I have a Java Maven project with about 800 source files (some generated by javacc/JTB) which is taking a good 25 minutes to compile with javac.
When I changed my pom.xml
Perhaps the Eclipse build is only compiling modified source. What happens if you compile it in eclipse after a clean?