Hi,

You should delete the last slash in our <url> tag...


-----Ursprüngliche Nachricht-----
Von: Fabien Coppens [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 20. Mai 2008 14:43
An: Maven Users List
Betreff: 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]




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

Reply via email to