In Maven, Why Run 'mvn clean'?

前端 未结 4 554
鱼传尺愫
鱼传尺愫 2020-12-01 04:19

I am wondering what the major difference between running mvn compile and mvn clean compile are, in practicality.

I understand what the actu

4条回答
  •  鱼传尺愫
    2020-12-01 04:40

    If you don't do clean compile then it means you are still allowing to work with some obsolete classes. If your module suppose to migrate to new class then even you missed that, there won't be any compilation error due to old class exist in target/classes. This will remain unnoticed till same module is built at some other place/machine with clean compile goal.

提交回复
热议问题