Changed the groupId back to 'org.apache.struts'. (See: r418556)

Updated the instructions after publishing a snapshot of the archetype.

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@418589 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Wendy Smoak
2006-07-02 12:55:41 +00:00
parent 041009135e
commit 7a24382947
3 changed files with 22 additions and 15 deletions
+15 -14
View File
@@ -13,27 +13,28 @@ INFORMATION
USAGE
=====
- change directory to SAF2's maven archetype directory eg. from SAF2's root directory
cd ./archetype <press enter>
- run the following command to install SAF2 maven archetype into the local repository
mvn install
- change directory to where the web app template is to be created eg. assuming the directory to be myWebApp.
mkdir /home/tmjee/myWebApp
cd /home/tmjee/myWebApp
- 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 templatem, assuming :-
- root java package -> com.myCompany.mySystem
- the webapp war name -> myWebApp
mvn archetype:create -DgroupId=com.myCompany.mySystem -DartifactId=myWebApp -DarchetypeGroupId=org.apache.struts2 -DarchetypeArtifactId=struts2-archetype-quickstart
- the webapp war name -> myWebApp
mvn archetype:create -DgroupId=com.myCompany.mySystem \
-DartifactId=myWebApp \
-DarchetypeGroupId=org.apache.struts \
-DarchetypeArtifactId=struts2-archetype-quickstart \
-DarchetypeVersion=1.0-SNAPSHOT \
-DremoteRepositories=http://people.apache.org/maven-snapshot-repository
THis will create the sample Web app template
- to complile execute
- to compile, execute
mvn compile
- to run test cases execute
+6 -1
View File
@@ -1,8 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts-master</artifactId>
<version>3-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.struts2</groupId>
<artifactId>struts2-archetype-quickstart</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
@@ -167,6 +167,7 @@
</repositories>
<build>
<finalName>${artifactId}</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>