Eclipse Deployment Assembly does not appear in properties

五迷三道 提交于 2019-11-27 12:56:25

问题


In a new project of mine I cannot see the Deployment Assembly link in the project properties. It is There in my other projects which are configured in the same way (as far as I can see).

I have dynamic web module and java in the facets. I have m2eclipse installed and invoked the menu option "update project configuration". I am running eclipse 3.7 EE edition. I have google eclipse plugin also.

What I want to know is how to get the deployment assembly option to appear so I can configure which resources are pushed out to local server through WTP.

My .project file:

<?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>

回答1:


Try to add <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> to your .project file. The Plugin Spy (ALT+SHIFT+F1) is very helpful to find out stuff like that. The Property Page is defined in the plugin org.eclipse.wst.common.modulecore.ui and in the plugin.xml file you can see, that the DeploymentAssemblyPage is enabledWhen the projectNature is org.eclipse.wst.common.modulecore.ModuleCoreNature.




回答2:


When I tried to add this config to the .project, I had the same problem that wharron, "Error Checking Project Facets", then I went to the "Project Facets" option of the build path , I choose a custom one, then checked the option "Utility Module", Applied and the next time I opened the build path the Deployment Assembly was there and working ok.




回答3:


I also face the same problem and I follow the below steps and my problem was resolved.i have checked my dynamic web module in the second screen.




回答4:


Solved this with two simple steps

  1. right click on the project > Build path > configure build path > Project facets then make sure you have the Dynamic Web Module checked

  2. right click on the project > run as > run on server

then you could see the error is gone by going back to

Build path > configure build path > Deployment ssembly




回答5:


As suggested in the accepted answer add <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> to .project file and also add <nature>org.eclipse.wst.common.project.facet.core.nature</nature> to resolve "Error Checking Project Facets" in Deployment Assembly screen.

**If importing existing project Keep "existing project descriptors" do not Overwrite as eclipse will remove these natures from .project file in most cases.



来源:https://stackoverflow.com/questions/8399885/eclipse-deployment-assembly-does-not-appear-in-properties

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!