首页 文章

Eclipse Deployment Assembly不会出现在属性中

提问于
浏览
21

在我的新项目中,我无法在项目属性中看到Deployment Assembly链接 . 在我的其他项目中,以相同的方式配置(据我所见) .

我在facets中有动态web模块和java . 我安装了m2eclipse并调用了菜单选项“更新项目配置” . 我正在运行eclipse 3.7 EE版 . 我也有谷歌eclipse插件 .

我想知道的是如何显示部署程序集选项,以便我可以配置通过WTP将哪些资源推送到本地服务器 .

我的.project文件:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>shortbread</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.common.project.facet.core.builder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.m2e.core.maven2Builder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.jdt.core.javanature</nature>
        <nature>org.eclipse.m2e.core.maven2Nature</nature>
        <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
        <nature>com.google.gwt.eclipse.core.gwtNature</nature>
    </natures>
</projectDescription>

5 回答

  • 15

    当我尝试将此配置添加到.project时,我遇到了同样的问题,wharron, "Error Checking Project Facets" ,然后我去了“ Project Facets " option of the build path , I choose a custom one, then checked the option " Utility Module ”,应用,下次我打开构建路径时,部署程序集在那里工作好 .

  • 39

    尝试将 <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> 添加到.project文件中 . 插件 Spy (ALT SHIFT F1)非常有助于找到类似的东西 . 属性页面在插件 org.eclipse.wst.common.modulecore.ui 和plugin.xml文件中定义,您可以看到,DeploymentAssemblyPage是 enabledWhen projectNatureorg.eclipse.wst.common.modulecore.ModuleCoreNature .

  • 2

    我也面临同样的问题,我按照以下步骤,我的问题得到解决 . 我已经在第二个屏幕上检查了我的动态网络模块 .

    enter image description here

    enter image description here

    enter image description here

  • 5

    根据接受的答案中的建议,将 <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> 添加到.project文件,并在部署程序集屏幕中添加 <nature>org.eclipse.wst.common.project.facet.core.nature</nature> 以解析"Error Checking Project Facets" .

    **如果导入现有项目保持“现有项目描述符”不覆盖,因为在大多数情况下,eclipse将从.project文件中删除这些性质 .

  • 2

    通过两个简单的步骤解决了这个问题

    • right click on the project > Build path > configure build path > Project facets 然后确保您已选中 Dynamic Web Module

    • 右键单击项目>运行为>在服务器上运行

    那么你可以看到错误已经消失了

    Build path > configure build path > Deployment ssembly

相关问题