Maven Behavior when compiling twice without clean lifecycle

风格不统一 提交于 2020-05-24 05:21:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!