4 ms·
Maven does not recompile everything each time. You have to do mvn clean to force it to. If you change a single class just that one class gets recompiled which i
by bitcharmer 3y ago
Maven does not recompile everything each time. You have to do mvn clean to force it to. If you change a single class just that one class gets recompiled which is evident by Maven's output.
- fiddlerwoaroof 3y agoYeah, although my experience is that people collect shell aliases and similar workflows that always do something like `mvn clean package` and then complain about build times.
- sverhagen 3y agoAlso, while I love Maven, I don't run it very often (or at least not directly on the command line). Most work happens in IntelliJ, and then I'll let the build server deal with it. Builds are short, so no harm if the build server fails and I have to fix something up...
- Calzifer 3y agoDepends on how you interpret 'everything' and 'each time'. The default compiler plugin configuration is quite eager to recompile allot if something changed. https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#useIncrementalCompilation https://maven.apache.org/plugins/maven-compiler-plugin/compi... "true (default) in this mode the compiler plugin determines whether [...] any source file was added, removed or changed since the last compilation. If this is the case, the compiler plugin recompiles _all_ sources.