Create and Run ZK Application with Maven Artifacts"
From Documentation
Line 4: | Line 4: | ||
[[File:MavenProject.png]] | [[File:MavenProject.png]] | ||
− | =How to create Maven web project= | + | =How to create ZK Maven web project= |
− | == Create Maven | + | == Create Project of Maven== |
*'''[File]''' -> '''[New]''' -> '''[Other]''' --> '''[Maven Project]''' | *'''[File]''' -> '''[New]''' -> '''[Other]''' --> '''[Maven Project]''' | ||
*:[[File:ZK_Installation_Guide_Maven_step1.png]] | *:[[File:ZK_Installation_Guide_Maven_step1.png]] | ||
Line 12: | Line 12: | ||
*Fill the first 4 field '''(you can change them later)''' --> Click '''[Finish]''' | *Fill the first 4 field '''(you can change them later)''' --> Click '''[Finish]''' | ||
*:[[File:ZK_Installation_Guide_Maven_step3.png]] | *:[[File:ZK_Installation_Guide_Maven_step3.png]] | ||
− | == Add | + | |
+ | == Add WTP Support (Project Facet) == | ||
#Create new folder under '''/src/main/''' named webapp | #Create new folder under '''/src/main/''' named webapp | ||
#Right Click on your Maven Project -> Choose '''Properties''' -> Choose '''Project Facets''' -> Check '''Dynamic Web Module''' | #Right Click on your Maven Project -> Choose '''Properties''' -> Choose '''Project Facets''' -> Check '''Dynamic Web Module''' | ||
Line 20: | Line 21: | ||
*:[[File:ZK_Installation_Guide_Maven_web2.png]] | *:[[File:ZK_Installation_Guide_Maven_web2.png]] | ||
− | == | + | == Enable Dependency and Web Project configuration == |
+ | |||
=== 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]]. | *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]]. |
Revision as of 06:31, 7 July 2011
ZK Maven Project Overview
How to create ZK Maven web project
Create Project of Maven
- [File] -> [New] -> [Other] --> [Maven Project]
- Check Create a simple Project
- Fill the first 4 field (you can change them later) --> Click [Finish]
Add WTP Support (Project Facet)
- 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
Enable Dependency and Web Project configuration
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