archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbrown <charles.br...@sensis.com>
Subject Re: Can't deploy jar
Date Fri, 05 Oct 2007 13:02:11 GMT

I do have the dav: in the URL in the POM. It just isn't echoing in the
mvn INFO printouts.

Here's what I have;

In settings.xml

   ...
      <server>
        <id>sensis.dev</id>
        <username>cbrown</username>
        <password>...snipped...</password>
      </server>
   ...
          <repository>
            <id>sensis.dev</id>
            <name>Sensis Development Maven2 Repo</name>

<url>http://m2repo.atsdev.sensis.com:8080/archiva/repository/sensis.dev</url>
          </repository>


In pom.xml;

   ...
      <extensions>
        <extension>
          <groupId>org.apache.maven.wagon</groupId>
          <artifactId>wagon-webdav</artifactId>
          <version>1.0-beta-2</version>
        </extension>
      </extensions>
      </build> 
    
    <distributionManagement>
        <snapshotRepository>
            <id>sensis.dev</id>
            <name>Archiva M2 Repository</name>

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

On Thu, 2007-10-04 at 15:38 -0700, Joakim Erdfelt wrote:
> 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
> >
> >   
> 
> 

Mime
View raw message