Wednesday, October 26, 2011

Simple Maven command

Create a webapp:
mvn archetype:generate -DgroupId=com.exoplatform.app -DartifactId=hello-strut -DarchetypeArtifactId=maven-archetype-webapp

Create a portlet app:
mvn archetype:create -DgroupId=com.exoplatform.app -DartifactId=hello-portlet -DarchetypeArtifactId=maven-archetype-portlet

.
|-- src
| `-- main
| `-- java
| |-- [your project's package]
| | `-- MyPortal.java
| |-- jetspeed
| | `-- web.xml
| |-- resources
| |-- webapp
| | |-- WEB-INF
| | | |-- tld
| | | | `-- portlet.tld
| | | |-- portlet.xml
| | | `-- web.xml
| | |-- help.jsp
| | |-- maximized.jsp
| | `-- normal.jsp
| `-- index.jsp
`-- pom.xml

No comments:

Post a Comment