Search in the Documentation:

Project structure

Here is the Hello World directory structure:

HelloWorldPortlet (top level directory)
|- pom.xml (the pom file)
|- src (Subdir containing main subdirectory)
|- main (Subdir containing java, resources and webapp subdirs)
|- java (java source code goes under here)
| `- com
| `- mycompany
| `- portlet
| `- HelloWorldPortlet.java (portlet source)
|- webapp (webapp resources (jsp, css, images) go under here)
`- jsp
`- HelloWorldPortletView.jsp (for view mode)
`- HelloWorldPortletEdit.jsp (for edit mode)
`- META-INF
`- HelloWorldPortlet.xml (Tomcat context deployment descriptor)
`- WEB-INF
`- portlet.xml (JSR-168 deployment descriptor)
`- web.xml (This will be modified by maven-pluto-plugin)