mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
a7443f0693
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1406062 13f79535-47bb-0310-9956-ffa450edef68
INFORMATION =========== - This is Struts 2's "Database Portlet" Maven Archetype - To be used to create a simple portlet that displays information in a database and can be deployed as a webapp or JSR168 portlet. USAGE ===== - change directory to where the portlet template is to be created, for example, a 'projects' directory (which you may need to create): cd /home/tmjee/projects - run the following command to generate the sample portlet template, assuming :- - root java package -> com.myCompany.myPortlet - the portlet war name -> myWebApp mvn archetype:create -DgroupId=com.myCompany.myPortlet \ -DartifactId=myWebApp \ -DarchetypeGroupId=org.apache.struts \ -DarchetypeArtifactId=struts2-archetype-dbportlet \ -DarchetypeVersion=2.0.9-SNAPSHOT \ -DremoteRepositories=http://people.apache.org/maven-snapshot-repository - to compile, execute mvn compile - to run test cases execute mvn test - to clean execute mvn clean - to package execute mvn package - to start it with jetty execute as a servlet mvn jetty:run