简体   繁体   中英

What is the meaning of this icon in Eclipse?

I'm using the Eclipse IDE Mars and I made a maven project. 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. So to solve the problem, I clicked on the project and clicked maven->upgrade project, and the error disappeared, but the above icon appeared. What does this icon mean?

在此处输入图像描述

It's simply a feature of Eclipse where everything that belongs to test sources is visualized with darker icons.

Classpath separation via test source prevents JUnit and other test libraries and code from being used accidentally in the main code (src/main/java).

Since Eclipse Photon, in Java Maven projects source folders containing test code (src/test/java) are marked automatically as test source.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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