mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
6e18c3dd5c
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1524182 13f79535-47bb-0310-9956-ffa450edef68
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
INFORMATION
|
|
===========
|
|
- This is Struts 2's "HTML5 AngularJS" Maven Archetype
|
|
|
|
USAGE
|
|
=====
|
|
|
|
- change directory to where the web app 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 web app template, assuming :-
|
|
- root java package -> com.mycompany.mysystem
|
|
|
|
- the webapp war name -> myWebApp
|
|
|
|
|
|
mvn archetype:generate -B -DgroupId=com.mycompany.mysystem \
|
|
-DartifactId=myWebApp \
|
|
-DarchetypeGroupId=org.apache.struts \
|
|
-DarchetypeArtifactId=struts2-archetype-angularjs \
|
|
-DarchetypeVersion=<CURRENT_STRUTS_VERSION> \
|
|
-DremoteRepositories=http://struts.apache.org
|
|
|
|
|
|
For more details about the Struts2 archetypes, please take a look at our Wiki page.
|
|
|
|
-> https://cwiki.apache.org/confluence/display/WW/Struts+2+Maven+Archetypes
|
|
|
|
|
|
IMPORTANT:
|
|
==========
|
|
- The generated template uses the 'example' package, regardless of what you
|
|
specify during mvn archetype:create.
|
|
|
|
Unfortunately, the Maven Archetype plugin does not currently provide a way to
|
|
move resource files into a package structure.
|
|
|
|
- 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 jetty6 execute
|
|
mvn jetty:run
|
|
|