You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Morten Kristiansen (JIRA)" <ji...@codehaus.org> on 2006/01/03 19:59:12 UTC

[jira] Created: (MDEPLOY-18) Problem with SCP deploy

Problem with SCP deploy
-----------------------

         Key: MDEPLOY-18
         URL: http://jira.codehaus.org/browse/MDEPLOY-18
     Project: Maven 2.x Deploy Plugin
        Type: Bug

    Reporter: Morten Kristiansen


I'm currently using scp to deploy a artifact to a remote repository:

morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building tt-main
[INFO]    task-segment: [deploy]
[INFO] ----------------------------------------------------------------------------
[INFO] [install:install]
[INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
[INFO] [deploy:deploy]
Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Error deploying artifact: Error performing commands for file transfer

mkdir: cannot create directory `/tracetracker': Permission denied
[INFO] ----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
[INFO] Final Memory: 2M/5M
[INFO] ----------------------------------------------------------------------------
morten@damien:~/workspace/HEAD/tt-main$


I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MDEPLOY-18) Problem with SCP deploy

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-18?page=all ]
     
Brett Porter closed MDEPLOY-18:
-------------------------------

     Assign To: Brett Porter
    Resolution: Won't Fix

that error comes straight from the remote shell. It is trying to create /tracetracker (that's at the root of the drive), which is rarely possible with normal permissions. This would be done with user morten.

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter

>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MDEPLOY-18) Problem with SCP deploy

Posted by "Morten Kristiansen (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-18?page=all ]
     
Morten Kristiansen reopened MDEPLOY-18:
---------------------------------------


But why is it trying to create tracetracker at /? And it's not using morten as user, but maven:

>From pom.xml:

<distributionManagement>
	<repository>
		<id>marplerepo</id>
		<url>scp://marple.pd.tracetracker.com/repository/maven2</url>
	</repository>
</distributionManagement>


>From ~/.m2/settings.xml

<servers>
	<server>
		<id>marplerepo</id>
		<username>maven</username>
		<privateKey>/home/morten/.ssh/id_rsa</privateKey>
	</server>
</servers>

I have also tried setting:

<filePermissions>664</filePermissions>
<directoryPermissions>777</directoryPermissions>

but that doesn't work etiher.


> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter

>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MDEPLOY-18) Problem with SCP deploy

Posted by "Morten Kristiansen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-18?page=comments#action_55376 ] 

Morten Kristiansen commented on MDEPLOY-18:
-------------------------------------------

Yes. Giving the full path worked. Thanks.

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter
>  Attachments: pom.xml, settings.xml
>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MDEPLOY-18) Problem with SCP deploy

Posted by "Morten Kristiansen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-18?page=comments#action_54983 ] 

Morten Kristiansen commented on MDEPLOY-18:
-------------------------------------------

Attached both POM and settings.xml. The output I pasted above isn't correct, because I tried several scp paths. This is the output using the attached pom.xml and settings.xml:

morten@damien:~/workspace/HEAD/arch-common-security-java$ mvn deploy
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building arch-common-security-java
[INFO]    task-segment: [deploy]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir: /home/morten/workspace/HEAD/arch-common-security-java/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Morten: Removed output


[INFO] [jar:jar]
[INFO] Building jar: /home/morten/workspace/HEAD/arch-common-security-java/target/arch-common-security-java-1.2.0.jar
[INFO] [install:install]
[INFO] Installing /home/morten/workspace/HEAD/arch-common-security-java/target/arch-common-security-java-1.2.0.jar to /home/morten/.m2/repository/tracetracker/arch-common-security-java/1.2.0/arch-common-security-java-1.2.0.jar
[INFO] [deploy:deploy]
Uploading: scp://marple.pd.tracetracker.com/repository/maven2/tracetracker/arch-common-security-java/1.2.0/arch-common-security-java-1.2.0.jar
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Error deploying artifact: Error performing commands for file transfer

mkdir: cannot create directory `/repository': Permission denied
[INFO] ----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Thu Jan 05 10:10:24 CET 2006
[INFO] Final Memory: 5M/10M
[INFO] ----------------------------------------------------------------------------
morten@damien:~/workspace/HEAD/arch-common-security-java$

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter
>  Attachments: pom.xml, settings.xml
>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MDEPLOY-18) Problem with SCP deploy

Posted by "Morten Kristiansen (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-18?page=all ]
     
Morten Kristiansen reopened MDEPLOY-18:
---------------------------------------


Again I refer to the question, WHY is it trying to create a folder at /...?? I havn't told Maven anywhere that I want something created there. I have added "scp://marple.pd.tracetracker.com/repository/maven2" as repo info. If I perform an ssh to scp://marple.pd.tracetracker.com/ the folder "repository/maven2" exists, and I would expect Maven to start creating project folders below that path. It's Maven that builds up and executes the command "mkdir" somewhere and for some strange reason tries to create it in root of server.

I perform this with a user called "maven". My repository on the remote server is "/home/maven/repository/maven2". And that's where I want to deploy the files. Is the scp URL incorrect?

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter
>  Attachments: pom.xml, settings.xml
>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MDEPLOY-18) Problem with SCP deploy

Posted by "Morten Kristiansen (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-18?page=all ]

Morten Kristiansen updated MDEPLOY-18:
--------------------------------------

    Attachment: settings.xml

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter
>  Attachments: pom.xml, settings.xml
>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MDEPLOY-18) Problem with SCP deploy

Posted by "Morten Kristiansen (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-18?page=all ]

Morten Kristiansen updated MDEPLOY-18:
--------------------------------------

    Attachment: pom.xml

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter
>  Attachments: pom.xml
>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MDEPLOY-18) Problem with SCP deploy

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-18?page=all ]
     
Brett Porter closed MDEPLOY-18:
-------------------------------

    Resolution: Won't Fix

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter
>  Attachments: pom.xml, settings.xml
>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MDEPLOY-18) Problem with SCP deploy

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-18?page=comments#action_55144 ] 

Brett Porter commented on MDEPLOY-18:
-------------------------------------

the path after the host is absolute. Set it to scp://marple.pd.tracetracker.com/home/maven/repository/maven2 instead of  scp://marple.pd.tracetracker.com/repository/maven2 and you should get what you expect.

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter
>  Attachments: pom.xml, settings.xml
>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MDEPLOY-18) Problem with SCP deploy

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-18?page=comments#action_54940 ] 

Brett Porter commented on MDEPLOY-18:
-------------------------------------

I've never seen anything like that. 

Do you have a second distributionManagement section by accident?

Is it possible to attach your full POM?

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter

>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MDEPLOY-18) Problem with SCP deploy

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEPLOY-18?page=all ]
     
Brett Porter closed MDEPLOY-18:
-------------------------------

    Resolution: Won't Fix

ok, that's more like it.

The failure with those settings is actually a failure to create /repository. That's to be expected - you don't have write permissions to /.

Create /repository/m2 on the remote host, and set its permissions to the user/group you are using to deploy with.

> Problem with SCP deploy
> -----------------------
>
>          Key: MDEPLOY-18
>          URL: http://jira.codehaus.org/browse/MDEPLOY-18
>      Project: Maven 2.x Deploy Plugin
>         Type: Bug

>     Reporter: Morten Kristiansen
>     Assignee: Brett Porter
>  Attachments: pom.xml, settings.xml
>
>
> I'm currently using scp to deploy a artifact to a remote repository:
> morten@damien:~/workspace/HEAD/tt-main$ mvn deploy
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building tt-main
> [INFO]    task-segment: [deploy]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [install:install]
> [INFO] Installing /home/morten/workspace/HEAD/tt-main/pom.xml to /home/morten/.m2/repository/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] [deploy:deploy]
> Uploading: scp://marple.pd.tracetracker.com/tracetracker/tt-main/1.0.0/tt-main-1.0.0.pom
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error performing commands for file transfer
> mkdir: cannot create directory `/tracetracker': Permission denied
> [INFO] ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 03 19:56:27 CET 2006
> [INFO] Final Memory: 2M/5M
> [INFO] ----------------------------------------------------------------------------
> morten@damien:~/workspace/HEAD/tt-main$
> I have no problems executing a scp from a shell. No problems creating folders on the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org