archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joakim Erdfelt <joa...@erdfelt.com>
Subject Re: Can't deploy jar
Date Thu, 04 Oct 2007 22:38:25 GMT
Looking at the URL you have below starting with "http://m2repo ..." I 
can see that you are not using the webdav format url that is required 
for Archiva.

Your url format should start with "dav:http://m2repo..."

Some snippets in your pom that should prove useful for you.

<project>
   ...
   <build>
      ...
      <extensions>
         <extension>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-webdav</artifactId>
            <version>1.0-beta-2</version>
         </extension>
      </extensions>
   </build>

  <repositories>
    <repository>
      <id>sensis.dev</id>
      <name>Your Archiva sensis.dev</name>
      <url>http://m2repo.atsdev.sensis.com:8080/archiva/sensis.dev/</url>
    </repository>
  </repositories>

  <distributionManagement>
    <snapshotRepository>
      <id>sensis.dev</id>
      <name>Your Archiva sensis.dev</name>
      
<url>dav:http://m2repo.atsdev.sensis.com:8080/archiva/sensis.dev/</url>
    </snapshotRepository>
  </distributionManagement>

...
</project>

Notice that you don't have the "dav:" prefix on the repositories in the 
<repositories> section. as you are not deploying using that entry in the 
pom.

- Joakim


cbrown wrote:
> when i try to deploy to archiva, I see the following.  Do I need to
> deploy the first snapshot manually?
>
>
> [INFO] Retrieving previous build number from sensis.dev
> Uploading:
> http://m2repo.atsdev.sensis.com:8080/archiva/sensis.dev/com/sensis/sds/genpur/1.0-SNAPSHOT/genpur-1.0-20071004.195415-1.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error deploying artifact: Resource to deploy not found: File:
> http://m2repo.atsdev.sensis.com:8080/archiva/sensis.dev/com/sensis/sds/genpur/1.0-SNAPSHOT/genpur-1.0-20071004.195415-1.jar
does not exist
>
>   


-- 
- Joakim Erdfelt
  joakim@erdfelt.com
  Open Source Software (OSS) Developer


Mime
View raw message