Eclipse Deployment Assembly不会出现在属性中

mon*_*ack 21 java eclipse m2eclipse maven

在我的新项目中,我无法在项目属性中看到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>
Run Code Online (Sandbox Code Playgroud)

Cod*_*ers 39

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

  • 这正是我讨厌 eclipse 的原因,用户怎么能想象呢???非常感谢您的提示。 (3认同)
  • 没有修复我的GAE样本.选中时出现部署程序集选项显示"错误检查项目构面". (2认同)

小智 16

当我尝试将此配置添加到.project时,我遇到了与wharron相同的问题,"Error Checking Project Facets",然后我转到构建路径的" Project Facets "选项,我选择了一个自定义的,然后检查应用程序 " 实用程序模块 ",应用程序和下次打开构建路径时,部署程序集在那里并且正常工作.


sub*_*his 6

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

在此输入图像描述

在此输入图像描述

在此输入图像描述