-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathREADME.txt
46 lines (33 loc) · 1.21 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---------------------
Project Configuration
---------------------
the maven tomcat plugin uses the tomcat-manager application
the tomcat-manager requires authentication
edit %M2_HOME%/conf/settings.xml
and add a <server> entry at the corresponding location in the xml:
<server>
<id>tomcat-manager</id>
<username>your-tomcat-usr</username>
<password>your-tomcat-pwd</password>
</server>
-----------
Maven Goals
-----------
mvn clean - for cleaning the project
mvn compile - for compiling
mvn tomcat:deploy - deploying to tomcat
mvn tomcat:undeploy - undeploying from tomcat
-----------------
Eclipse IDE Setup
-----------------
to add the classpath variable M2_HOME to eclipse, run
mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
pointing it to the location of your eclipse workspace folder
in order to generate eclipse configuration files (.classpath, .settings) run
mvn eclipse:eclipse
then open eclipse and run
File -> Import ...
select "Existing Project into Workspace"
browse to the root directory of the maven project
in the lower window you should see all project modules listed
select all and click "Finish"