简体   繁体   English

Eclipse这个图标是什么意思?

[英]What is the meaning of this icon in Eclipse?

I'm using the Eclipse IDE Mars and I made a maven project.我正在使用 Eclipse IDE Mars,我做了一个 maven 项目。 I did dependency setting, file generation, code writing, and so on.我做了依赖设置、文件生成、代码编写等等。 At first, it was fine, but at some point, the error 'maven java e configuration process - an error occured while filtering resources' appeared in the project.一开始还好,但在某个时候,项目中出现了错误'maven java e配置过程-过滤资源时出错'。 So to solve the problem, I clicked on the project and clicked maven->upgrade project, and the error disappeared, but the above icon appeared.于是为了解决问题,我点了项目,点了maven->upgrade project,错误消失了,但是出现了上面的图标。 What does this icon mean?这个图标是什么意思?

在此处输入图像描述

It's simply a feature of Eclipse where everything that belongs to test sources is visualized with darker icons.这只是 Eclipse 的一个功能,其中属于测试源的所有内容都使用较暗的图标进行可视化。

Classpath separation via test source prevents JUnit and other test libraries and code from being used accidentally in the main code (src/main/java).通过测试源分离类路径可防止 JUnit 和其他测试库和代码在主代码(src/main/java)中被意外使用。

Since Eclipse Photon, in Java Maven projects source folders containing test code (src/test/java) are marked automatically as test source.由于 Eclipse Photon,在 Java Maven 项目源文件夹中包含测试代码(src/test/java)被自动标记为测试源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM