You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Darryl L. Miles (JIRA)" <ji...@codehaus.org> on 2012/09/05 01:40:21 UTC

[jira] (MANTRUN-174) @ Symbols in path name confusing host resolution.

    [ https://jira.codehaus.org/browse/MANTRUN-174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=307743#comment-307743 ] 

Darryl L. Miles commented on MANTRUN-174:
-----------------------------------------

Of course it works on its own.  But that doesn't necessarily mean the problem is Maven antrun plugin.

Have you proof that running the ANT configuration directly in ANT works ?  also which version of ANT and its <scp> taskdef do you have ?

The quoted error indicates that Maven is probably doing the correct thing.  It seems to have passed the data through without modification (because it is correctly echoed back in the error message you see).

It is also the <scp> taskdef in ANT that is ultimately responsible for interpreting the values to pass to the SCP implementation.

Please update this bug report if you find that to be the case and lodge the bug with ANT at https://issues.apache.org/bugzilla/buglist.cgi?product=Ant&component=Optional%20Tasks&resolution=---
                
> @ Symbols in path name confusing host resolution.
> -------------------------------------------------
>
>                 Key: MANTRUN-174
>                 URL: https://jira.codehaus.org/browse/MANTRUN-174
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Bug
>    Affects Versions: 1.7
>         Environment: Linux Ubuntu
>            Reporter: Dave Fennell
>
> I want to use an SCP target directory that has an "@" in it, like this : 2011-12-12@15:26:11.
> the scp command from effective-pom looks like this (users and passwords replaced):
> <scp todir="user:password@hostname:/project/releases/2011-12-12@15:26:11/mule-3.2.0/apps/" file="/usr/local/src/project/mule/myapp/target/myapp-1.0-SNAPSHOT.zip" trust="true" failonerror="true" />
> This results in this slightly odd error:
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: com.jcraft.jsch.JSchException: java.net.SocketException: Invalid argument or cannot assign requested address
> around Ant part ...<scp todir="user:password@hostname:/project/releases/2011-12-12@15:26:11/mule-3.2.0/apps/" file="/usr/local/src/project/mule/myapp/target/myapp-1.0-SNAPSHOT.zip" trust="true" failonerror="true"/>... @ 13:242 in /usr/local/src/whitelabel/mule/boot-config/target/antrun/build-main.xml
> Before that it says:
>    [scp] Connecting to 15:22
> This should actually say 
>    [scp] Connecting to hostname:22
> This is a problem with the plugin and not scp itself because if I use those paths directly with SCP on the command line it is fine.  from testing it seems to looks for the LAST match in the line that looks something like "@[a-z0-8]+:" i.e. between an "@" and a ":" however if there is more than one match it's probably going to be the first one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira