added configuration for starting Tomcat from Maven

git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@407 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
ch.ko123 2009-11-08 16:43:00 +00:00
parent 98fe279dc7
commit 34abecdbe5
2 changed files with 18 additions and 2 deletions

View File

@ -29,8 +29,8 @@ Don't forget to declare a classpath variable named M2_REPO, pointing to ~/.m2/re
You can declare new variables in Eclipse in Windows -> Preferences... and selecting Java -> Build Path -> Classpath Variables
Run the project on Tomcat within Eclipse
-----------------------------------------
Option 1: Run the project on Tomcat within Eclipse
---------------------------------------------------
1. Install a local Tomcat server
2. Open Eclipse -> File -> New -> Other -> Server -> Apache -> Tomcat -> Next
-> Insert your Tomcat Installation directory
@ -53,4 +53,9 @@ Run the project on Tomcat within Eclipse
5. http://localhost:8080/webgoat/attack
Option 2: Run the project on Tomcat with Maven
---------------------------------------------------
1. mvn tomcat:run-war
2. http://localhost:8080/webgoat/attack

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
<role rolename="webgoat_basic"/>
<role rolename="webgoat_admin"/>
<role rolename="webgoat_user"/>
<role rolename="tomcat"/>
<user password="webgoat" roles="webgoat_admin" username="webgoat"/>
<user password="basic" roles="webgoat_user,webgoat_basic" username="basic"/>
<user password="tomcat" roles="tomcat" username="tomcat"/>
<user password="guest" roles="webgoat_user" username="guest"/>
</tomcat-users>