Create and Run ZK Application with Maven Artifacts"
From Documentation
m |
|||
Line 21: | Line 21: | ||
== Update pom.xml and web.xml == | == Update pom.xml and web.xml == | ||
+ | === web.xml === | ||
+ | *Overwrite the content of '''/src/main/webapp/WEB-INF/web.xml''' with [[ZK Installation Guide/ZK Background/Sample of web.xml | Sample of web.xml]]. | ||
+ | |||
+ | === pom.xml === | ||
+ | *Overwrite the content of '''pom.xml''' with [[ZK Installation Guide/Setting up IDE/Maven/Use ZK Maven Repository#Sample_of_pom.xml | Sample of pom.xml]] | ||
=How to run Maven project on Run-Jetty-Run= | =How to run Maven project on Run-Jetty-Run= |
Revision as of 06:29, 7 July 2011
ZK Maven Project Overview
How to create Maven web project
Create Maven Project
- [File] -> [New] -> [Other] --> [Maven Project]
- Check Create a simple Project
- Fill the first 4 field (you can change them later) --> Click [Finish]
Add Web Project Facet (WTP Support)
- Create new folder under /src/main/ named webapp
- Right Click on your Maven Project -> Choose Properties -> Choose Project Facets -> Check Dynamic Web Module
- Click Further configuration available' --> input the Context Root and Content Directory --> Check Generate web.xml deployment descriptor
Update pom.xml and web.xml
web.xml
- Overwrite the content of /src/main/webapp/WEB-INF/web.xml with Sample of web.xml.
pom.xml
- Overwrite the content of pom.xml with Sample of pom.xml