1

我似乎失去了 SpringSource STS 工具 3.2.0 版中的所有 maven 选项。

我无法将 Maven 特性添加到项目中,因为我唯一的选择是转换为 Javascript 或插件项目。在 Window Preferences 中看不到 Maven 选项......虽然我可以在我的 .plugins 文件夹中看到与 m2e 相关的插件,但当我执行“关于 Spring Tool Suite”时,m2e 图标不再存在。我试图从 eclipse 市场重新安装 m2e,但没有帮助。

正如我在我的项目 .metadata/.plugins 中看到的插件:

org.eclipse.m2e.core
org.eclipse.m2e.core.ui
org.eclipse.m2e.core.jdt

我的 .project 文件如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>AdminDirect</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.ajdt.core.ajbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.common.project.facet.core.builder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.m2e.core.maven2Builder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.validation.validationbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.ajdt.core.ajbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.springframework.ide.eclipse.core.springbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.zeroturnaround.eclipse.rebelXmlBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.ajdt.ui.ajnature</nature>
        <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
        <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
        <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
        <nature>com.springsource.sts.roo.core.nature</nature>
        <nature>org.springframework.ide.eclipse.core.springnature</nature>
        <nature>org.zeroturnaround.eclipse.jrebelNature</nature>
        <nature>org.eclipse.m2e.core.maven2Nature</nature>
    </natures>
</projectDescription>

我对这一切有点陌生,但我在这个项目上使用 m2e 构建了 6 个月,它就消失了。我仍然可以通过 mvn 命令行构建。

4

0 回答 0