Create and Run ZK Application with Maven Artifacts"
From Documentation
Line 11: | Line 11: | ||
*:[[File:ZK_Installation_Guide_Maven_step3.png]] | *:[[File:ZK_Installation_Guide_Maven_step3.png]] | ||
== Add Web Project Facet (WTP Support) == | == 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''' | ||
*: Note: if it showing '''Covert facet from...''', simply click it to enable facet. | *: Note: if it showing '''Covert facet from...''', simply click it to enable facet. | ||
*:[[File:ZK_Installation_Guide_Maven_web1.png]] | *:[[File:ZK_Installation_Guide_Maven_web1.png]] | ||
− | + | #Click '''Further configuration available'''' --> input the ''Context Root'' and ''Content Directory'' --> Check '''Generate web.xml deployment descriptor''' | |
+ | *:[[File:ZK_Installation_Guide_Maven_web2.png]] | ||
=How to run Maven project on Run-Jetty-Run= | =How to run Maven project on Run-Jetty-Run= |
Revision as of 06:16, 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