Hi Jack,
when you want to deploy an artifact to the remote repositories such as Archiva
you will need to add an wagon extionsion to you build.
I have importe a maven project into Eclipse through: File>Import>Maven
Projects.
Then, in order to execute some maven goals, I right-clicked on the
project name in the navigator window, then I clicked on Run As and
executed the install and package goal and they worked successfully.

However, when I try to execute the "Deploy" goal, it gives me an error.

The following mojo encountered an error while executing:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-deploy-plugin
Version: 2.3
Mojo: deploy
brought in via: packaging: jar

While building project:
Group-Id: it.ericsson.mdp
Artifact-Id: EclipseTestJack
Version: 1.0.0-SNAPSHOT
From file: C:\project\UserDetailsClient\pom.xml
Reason: Error retrieving previous build number for artifact
'it.ericsson.mdp:EclipseTestJack:jar': repository metadata for:
'snapshot it.ericsson.mdp:EclipseTestJack:1.0.0-SNAPSHOT' could not be
retrieved from repository: snapshots due to an error: Unsupported
Protocol: 'dav': Cannot find wagon which supports the requested
protocol: dav

It seems that you do not have the following snippet in your pom.xml's build element.

       <!-- Webdav plugin needed to deploy file to repository -->
       <extensions>
           <extension>
               <groupId>org.apache.maven.wagon</groupId>
               <artifactId>wagon-webdav</artifactId>
               <version>1.0-beta-2</version>
           </extension>
       </extensions>

The Artifact will be sent via webdav to archiva or any other Maven Proxy.

This might probably help you. And regard, that you will have to set credentials whithin your settings for your snapshop repository aswell.

<servers>
   <server>
      <id>snapshots</id>
      <username>username</username>
      <password>*******</password>
   </server>
</servers>

Hope this helps.


Regards,
           Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to