Yes !
It works. Thanks Christophe.

Deneux, Christophe wrote:

Caution using the scp protocol. I think that the path of your URL will be the following 
filesystem path: "/home/myUser/maven/repository". And I think that this 
directory does not exist.


You should use an SCP URL as: "scp://myserver.com/<mapped directory to 
http://myserver.com/maven/repository>


_______________________________________________________________________________
Christophe DENEUX / Capgemini Sud / Méditerranée
Integration Architect
Tel: + 33 4 93 95 55 92 / www.capgemini.com <http://www.capgemini.com/> Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice / FRANCE
Join the Collaborative Business Experience
_______________________________________________________________________________
Please consider the environment and do not print this email unless absolutely 
necessary. Capgemini encourages environmental awareness.

________________________________

De: Fabien Coppens [mailto:[EMAIL PROTECTED]
Date: mar. 20/05/2008 14:42
À: Maven Users List
Objet : Upload jar to remote central repository



Yes people, I am back to this subject of being able to deploy
a jar file to the central repository on a remote machine, because I
still can't get it to work... :-(
The Apache conf on the server has a directory mapping to
http://myserver.com/maven/repository
which exists and has already been manually loaded.
I have configured the repository and server data in my settings file :
<servers>
   <server>
     <id>DEV</id>
     <username>myUser</username>
     <password>myPassword</password>
     <configuration></configuration>
   </server>
 </servers>

and
<profile>
           <id>toto</id>
           <repositories>
               <repository>
                   <id>DEV</id>
                   <url>
                       http://myserver.com/maven/repository/
                   </url>
                   <snapshots>
                       <enabled>true</enabled>
                       <updatePolicy>always</updatePolicy>
                   </snapshots>
                   <releases>
                       <enabled>true</enabled>
                   </releases>
               </repository>
           </repositories>
<pluginRepositories>
               <pluginRepository>
                   <id>DEV</id>
                   <url>
                       http://myserver.com/maven/repository/
                   </url>
                   <snapshots>
                       <enabled>true</enabled>
                   </snapshots>
                   <releases>
                       <enabled>false</enabled>
                   </releases>
               </pluginRepository>
           </pluginRepositories>
       </profile>

Here's the command I try to run :
mvn deploy:deploy-file -DgroupId=esper -DartifactId=esper
-Dversion=2.0.0 -Dpackaging=jar
-Durl=scp://myserver.com/maven/repository
-Dfile=C:\Work\esper-2.0.0\esper-2.0.0.jar -DrepositoryId=DEV

And I get the following error :
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact: Error performing commands for file transfer

Exit code: 1 - mkdir: cannot create directory `/maven': Permission denied

Now why is it trying to create a directory that already exists on the
remote server ?
Or am I using a wrong URL ?

Fabien

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









This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM


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

Reply via email to