本文介绍了Eclipse的“干净项目”之间的区别和Maven的“mvn clean”在m2e的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用M2e + Eclipse + Maven,我想知道两者之间有什么区别:




  • 正在运行mvn

  • 运行clean project从Eclipse



任何人都可以建议?

解决方案

从一些快速测试,看来Eclipse的 clean project 只清除在项目首选项中设置为输出文件夹的文件夹,而maven的 clean 正在删除/目标文件夹完全。


I use M2e + Eclipse + Maven and I would like to know what the difference is between:

  • running "mvn clean" in a terminal and
  • running "clean project" from Eclipse?

Can anyone please advise?

解决方案

From some quick tests, it seems that Eclipse's clean project is only clearing out the folders that are set as output folder in the project's preferences, whereas maven's clean is deleting the /target folder completely.

这篇关于Eclipse的“干净项目”之间的区别和Maven的“mvn clean”在m2e的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 06:55