Your repository URLs should read: dav:
http://forge.engr.acx:9091/archiva/repository/snapshots

Mike.

On 7/17/07, Paul Smith <[EMAIL PROTECTED]> wrote:

I tried the archiva alpha-2 distribution and trunk, but I'm having
trouble do a simple 'mvn deploy' to an Archiva snapshot repo that has
been freshly setup with just the admin user.

I get this output:

....
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from aconex.snapshots
Uploading: http://forge.engr.acx:9091/archiva/repository/snapshots/
com/aconex/tomcat/SessionPersistence/1.0.1-SNAPSHOT/
SessionPersistence-1.0.1-20070717.080731-1.jar
4K uploaded
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file: http://
forge.engr.acx:9091/archiva/repository/snapshots/com/aconex/tomcat/
SessionPersistence/1.0.1-SNAPSHOT/
SessionPersistence-1.0.1-20070717.080731-1.jar. Return code is: 405


What I don't get is any logging output is the Archiva console under a
'mvn clean jetty:run'.

I have verified with a Windows Webdav client that I can write to the
repository using the same username/password combo as defined via
settings.xml, and I'm pretty sure that my distributionManagement
matches the ones that are intimated (save for the 'dav://' reference,
I've searched and found it still should be http://) in the Maven
configuration guide.

Any ideas?  405 is Method not Allowed.

[my pom.xml snippet]
  <distributionManagement>
    <repository>
      <id>aconex</id>
      <name>Aconex Internal Repository</name>
      <url>http://forge.engr.acx:9091/archiva/repository/internal</url>
    </repository>
    <snapshotRepository>
      <id>aconex.snapshots</id>
      <name>Aconex Internal Snapshot Repository</name>
      <url>http://forge.engr.acx:9091/archiva/repository/snapshots</
url>
    </snapshotRepository>
  </distributionManagement>
....
[just to verify that I'm using the correct wagon-webdav bit]
..
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav</artifactId>
        <version>1.0-beta-2</version>
      </extension>
    </extensions>


[my settings.xml snippet]
...
    <profile>
      <id>Aconex Repository Proxy</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
<!-- ******************************************************* -->
<!-- repositories for jar artifacts -->
<!-- ******************************************************* -->
      <repositories>
        <repository>
          <id>aconex</id>
          <name>Archiva Managed Internal Repository</name>
          <url>http://forge.engr.acx:9091/archiva/repository/
internal</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <repository>
          <id>aconex.snapshots</id>
          <name>Archiva Managed Snapshot Repository</name>
          <url>http://forge.engr.acx:9091/archiva/repository/
snapshots</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
...
  <servers>
    <server>
      <id>aconex</id>
      <username>admin</username>
      <password>*cough*</password>
    </server>
    <server>
      <id>aconex.snapshots</id>
      <username>admin</username>
      <password>*cough*</password>
    </server>
    <server>
  </servers>





Reply via email to