我在日食上遇到m2e的奇怪行为:
示例:在更新maven项目之前:
.settings/
src/
pom.xml
.gitignore
Run Code Online (Sandbox Code Playgroud)
更新maven项目后:
.settings/
src/
pom.xml
.gitignore
bin/ <------ this dir appears after update maven project
bin/.settings/ <----------- contents the same as outside dir
bin/src
bin/.gitignore
bin/pom.xml
Run Code Online (Sandbox Code Playgroud)
我该如何避免这种奇怪的行为?
看来,在您执行"更新项目"之前,bin
dir已配置为输出目录.Eclipse中默认隐藏输出目录(至少在Package Explorer和Project Explorer中).将项目配置为Maven项目时,输出目录已更改为target/classes
.您的bin文件夹现在只是另一个文件夹,不再隐藏.
由于您不再需要它,您可以安全地删除它.