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是enabledWhen的projectNatureIS org.eclipse.wst.common.modulecore.ModuleCoreNature.
小智 16
当我尝试将此配置添加到.project时,我遇到了与wharron相同的问题,"Error Checking Project Facets",然后我转到构建路径的" Project Facets "选项,我选择了一个自定义的,然后检查应用程序 " 实用程序模块 ",应用程序和下次打开构建路径时,部署程序集在那里并且正常工作.
| 归档时间: |
|
| 查看次数: |
45833 次 |
| 最近记录: |