Java only compiles the modified source files, not the entire file.
女神的闺蜜爱上我
女神的闺蜜爱上我 2017-06-15 09:22:06
0
1
1040

Currently, maven is used to compile the code. Changing a Java file will cause the entire project to be recompiled. (There is currently a lot of redundant code in the project, and it takes a long time to compile it all.)

Does the background compilation tool have an automatic compilation function similar to Eclipse? Only the changed code will be compiled each time?

女神的闺蜜爱上我
女神的闺蜜爱上我

reply all (1)
黄舟

maven-compiler-plugin has a parameter useIncrementalCompilation that does not set the default fasle

 maven-compiler-plugin ${maven.compiler.version}  ${java.version} ${java.version}  true 
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!