问题
Working with a multi-module maven project. Want to have separate maven compile
& install
logs. Thus executing steps as follows:
mvn clean compile
Followed by
mvn install
to run other phases in install lifecycle. Since maven-compiler-plugin
(version 3.1) is capable of incremental compilation, is this execution right, or will it produce unexpected results? Do not wish to change execution if it works as expected(without skipping or compiling any file twice).
来源:https://stackoverflow.com/questions/61756586/maven-behavior-when-compiling-twice-without-clean-lifecycle