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