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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building web1 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat-maven-plugin:1.1:deploy (default-cli) @ web1 >>>
[INFO] 
[INFO] --- maven-dependency-plugin:2.1:copy (default) @ web1 ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ web1 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ web1 ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ web1 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Media and Docs\Documents\NetBeansProjects\web1\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ web1 ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ web1 ---
[INFO] No tests to run.
[INFO] Surefire report directory: E:\Media and Docs\Documents\NetBeansProjects\web1\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ web1 ---
[INFO] Packaging webapp
[INFO] Assembling webapp [web1] in [E:\Media and Docs\Documents\NetBeansProjects\web1\target\web1-1]
[INFO] Processing war project
[INFO] Copying webapp resources [E:\Media and Docs\Documents\NetBeansProjects\web1\src\main\webapp]
[INFO] Webapp assembled in [15 msecs]
[INFO] Building war: E:\Media and Docs\Documents\NetBeansProjects\web1\target\web1-1.war
[INFO] 
[INFO] <<< tomcat-maven-plugin:1.1:deploy (default-cli) @ web1 <<<
[INFO] 
[INFO] --- tomcat-maven-plugin:1.1:deploy (default-cli) @ web1 ---
[INFO] Deploying war to http://localhost:8080/web1  
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.317s
[INFO] Finished at: Sat Oct 20 22:30:13 EDT 2012
[INFO] Final Memory: 13M/221M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project web1: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 for URL: http://localhost:8080/manager/deploy?path=%2Fweb1&war= -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException