在eclipse中导入的项目文件夹图标 [英] Imported project folder icons in eclipse

查看:305
本文介绍了在eclipse中导入的项目文件夹图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse工作空间中新导入的Maven项目在项目文件夹(项目文件夹)顶部有 J M 图标其他导入的Maven项目只有 J 图标。

My newly imported Maven project in Eclipse workpace has J and M icons on top of the project folder (Project and Package explorer) while the other imported Maven projects has only a J icon.

有人可以解释一下这个区别吗?

Can someone explain the difference ?

推荐答案

具有 J 装饰器的项目称为Java项目和项目 M decorator被称为Maven项目。 eclipse项目可以有多种类型。

The project having J decorator are called Java projects and projects having M decorator are called Maven projects. An eclipse project can be of more than one type.

项目类型可以在任何给定项目中的 .project 文件中看到。

Project type can be seen in the .project file present inside any given project.

.project 文件的典型内容如下所示

Typical content of .project file look like as shown below

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>Test</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.pde.ManifestBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.pde.SchemaBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.pde.PluginNature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>

查看性质标记。所有Java项目都具有 org.eclipse.jdt.core.javanature 特性,并且单个项目可以具有多种性质。

Look at natures tag. All Java projects will have org.eclipse.jdt.core.javanature nature and a single project can have multiple nature.

您可以通过右键单击任何Java项目并选择配置>将Java项目转换为Maven项目。隐藏到Maven项目

You can convert Java projects to Maven projects by right clicking on any Java project and selecting Configure > Covert to Maven project

转换后检查 .project 文件中的更改。

Check the changes in .project file after converting.

这篇关于在eclipse中导入的项目文件夹图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆