you're 100% right !  

this is the new situation :


C:\works\workspaceM2\TutelecOJV-v1.3>mvn deploy:deploy-file 
-Dfile=./lib/asm-1.5.3.jar \
         -DrepositoryTd=proximity  
-Durl=http://localhost:8080/px-webapp-default-1.0.0-RC8/repository \
         -DartifactId=asm -DgroupId=asm -Dversion=1.5.3 -Dpackaging=j ar -e

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Unnamed - com:TutelecOJV-v1.3:jar:1.3
[INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[INFO] -------------------------------------------------------------------------
---
[INFO] [deploy:deploy-file]
Uploading: http://localhost:8080/px-webapp-default-1.0.0-RC8/repository/asm/asm/
1.5.3/asm-1.5.3.jar
25K uploaded
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file: http://localhost:8080/
px-webapp-default-1.0.0-RC8/repository/asm/asm/1.5.3/asm-1.5.3.jar. Return code
is: 500

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact
: Failed to transfer file: http://localhost:8080/px-webapp-default-1.0.0-RC8/rep
ository/asm/asm/1.5.3/asm-1.5.3.jar. Return code is: 500
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:224)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artif
act: Failed to transfer file: http://localhost:8080/px-webapp-default-1.0.0-RC8/
repository/asm/asm/1.5.3/asm-1.5.3.jar. Return code is: 500
        at org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.
java:243)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:420)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
 deploying artifact: Failed to transfer file: http://localhost:8080/px-webapp-de
fault-1.0.0-RC8/repository/asm/asm/1.5.3/asm-1.5.3.jar. Return code is: 500
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def
aultArtifactDeployer.java:94)
        at org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.
java:239)
        ... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer fi
le: http://localhost:8080/px-webapp-default-1.0.0-RC8/repository/asm/asm/1.5.3/a
sm-1.5.3.jar. Return code is: 500
        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.put(Lightw
eightHttpWagon.java:172)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(D
efaultWagonManager.java:222)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(Def
aultWagonManager.java:151)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def
aultArtifactDeployer.java:80)
        ... 19 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Apr 20 14:42:51 GMT 2007
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------

Cheers
Nawfel
www.ilem.ma

----- Message d'origine ----
De : Thorsten Heit <[EMAIL PROTECTED]>
À : Maven Users List <users@maven.apache.org>
Envoyé le : Vendredi, 20 Avril 2007, 13h01mn 44s
Objet : Re: Proximity

Hi,

> The problem is : when I try to deploy (upload) a jar using this command
> line :
> 
> 
> 
> >mvn deploy:deploy-file -Dfile=./lib/asm-1.5.3.jar
> -DrepositoryTd=proximity \         
> 
>          
> -Durl=scp://localhost:8080/px-webapp-default-1.0.0-RC8/repository   \
> 
>           -DartifactId=asm -DgroupId=asm -Dversion=1.5.3 -Dpackaging=jar
> -e

I don't use Proximity, but I wondered why you try to deploy the artifact via 
SSH to your repository that is accessible via HTTP...? Shouldn't the URL start 
with http://, webdav:// or similar?


HTH

Thorsten

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








      
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Reply via email to