The properties of project in Eclipse Deployment Assembly (deployment assembly) disappears, doesn't exist, where is it?

Source: Internet
Author: User

1. The project is not a Web project, so there is no deployment Assembly property. In eclipse, how to turn a non-Web project into a Web project.

1 Right key item, select Project Facets, click Convert to faceted from


2) Configure Project Facets

Change the version of Dynamic Web module to 2.5. (3.0 for Java7).

If you are prompted for an error, you may need to set the compiler compliance level to 1.6 in the Java compiler. Or you need to change the Java version of this window to 1.6.


3) Configure Modify faceted Project

Click further configuration available ..., eject modify faceted Project window

Here is the path to set the Web.xml file, we enter Src/main/webapp.

Generate Web.xml Deployment descriptor automatically generate Web.xml files, optional.

2. After 1 of project transformations, you should be able to see deployment assembly appear, but if it does, it is likely that deployment assembly was disable in eclipse, So what we need to do is to enable the Deployment assembly option.

There is a. project file in the work area where the project is located, and opening the file adds the following line for the Enable Deployment Assembly property.

<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>

Like the following. project file. XML code    <?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>   &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBsp;<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>          <nature> org.eclipse.wst.common.modulecore.modulecorenature</nature>       </ natures>   </projectDescription>  

Then restart Eclipse to see the Deployment assembly option in Project properties.

Attach: Set up Deployment Assemblies (Web deployment Assembly)

The list here is the path to the file publication when the project is deployed.

1, we delete the two items of test because test is used and does not need to be deployed.

2, set up the Maven jar package to be published under Lib.

ADD-> Java Build Path Entries-> Maven dependencies-> Finish

To set the finish chart


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.