Hello

I am trying to deploy a war into my tomcat

when I run mvn:tomcat deploy

I am getting the following error:

[ERROR] Failed to execute goal
org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project
jsfOS: Cannot invoke Tomcat manager: Server returned HTTP response code:
401 for URL: http://localhost:8080/manager/deploy?path=%2FjsfOS&war= ->
[Help 1]

my pom.xml is the following :

      <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1.1</version>
          <configuration>
                 <packagingExcludes>WEB-INF/web.xml</packagingExcludes>

          </configuration>
      </plugin>

      <plugin>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat6-maven-plugin</artifactId>
            <version>1.1</version>
            <configuration>

<warFile>${project.build.directory}/${project.build.finalName}.war</warFile>
                <url>http://localhost:8080/manager</url>
                <server>tomcat</server>
                <path>jsfOS</path>
            </configuration>
         </plugin>

my settings.xml :
...
    <servers>
     <server>
                <id>tomcat</id>
                <username>ericomtx</username>
                <password>kernel26</password>
        </server>
      </servers>
...

my maven :
mvn -version
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4;
2014-08-11T17:58:10-03:00)
Maven home: /Users/ericomtx/development/apache/apache-maven-3.2.3
Java version: 1.6.0_65, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"


I am using a macos 10.6.8

my tomcat dir :

/Users/ericomtx/development/apache
mac:apache ericomtx$ ls -la
total 32
drwxr-x---@  6 ericomtx  staff    204 Aug 31 12:38 .
drwxrwxrwx  27 ericomtx  staff    918 Aug 31 11:32 ..
-rw-r-----@  1 ericomtx  staff  15364 Aug 31 16:39 .DS_Store
drwxr-xr-x@ 14 ericomtx  staff    476 Aug 31 11:11 apache-ant-1.9.4
drwxr-xr-x@ 10 ericomtx  staff    340 Aug 31 13:12 apache-maven-3.2.3
drwxrwxrwx@ 13 ericomtx  staff    442 Aug 31 17:21 apache-tomcat-6.0.41



mac:apache-tomcat-6.0.41 ericomtx$ ls -la webapps/
total 16
drwxrwxrwx@  8 ericomtx  staff   272 Aug 31 16:22 .
drwxrwxrwx@ 13 ericomtx  staff   442 Aug 31 17:21 ..
-rw-r--r--@  1 ericomtx  staff  6148 Aug 31 16:39 .DS_Store
drwxr-xr-x@ 13 ericomtx  staff   442 Aug 31 16:29 ROOT
drwxr-xr-x@ 45 ericomtx  staff  1530 May 19 07:50 docs
drwxr-xr-x@  6 ericomtx  staff   204 May 19 07:50 examples
drwxrwxrwx@  6 ericomtx  staff   204 May 19 07:50 host-manager
drwxrwxrwx@  8 ericomtx  staff   272 Aug 31 16:27 manager

please can someone help me out on this ?

Reply via email to