[ 
https://jira.codehaus.org/browse/MDEPLOY-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MDEPLOY-38:
----------------------------------

    Description: 
When using goal deploy:deploy-file, and a Windows URL is used of the form 
"file://host/share/...." containing an invalid host name or share, maven 
reports XXX K uploaded and BUILD SUCCESSFUL.
NOTE: if a URL of the form "file://\\nonexistenthost\share\..." is used, the 
command fails as expected. However, as soon as one backslash after "share" is 
replaced by a frontslash, the goal fails silently (i.e. reports success).

Example of silent failure:
{noformat}
mvn deploy:deploy-file -Detc.... 
-Durl=file://nonexistenthost/share/Maven-repository
--> output:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[INFO] 
----------------------------------------------------------------------------
[INFO] [deploy:deploy-file]
Uploading: 
file://nonexistenthost/share/Maven-repository/javax/faces/jsf-impl/1.1/jsf-impl-1.1.jar
673K uploaded
[INFO] Retrieving previous metadata from remote-repository
[INFO] Uploading repository metadata for: 'artifact javax.faces:jsf-impl'
[INFO] Retrieving previous metadata from remote-repository
[INFO] Uploading project information for jsf-impl 1.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Jul 25 16:47:00 CEST 2006
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------
{noformat}

  was:
When using goal deploy:deploy-file, and a Windows URL is used of the form 
"file://host/share/...." containing an invalid host name or share, maven 
reports XXX K uploaded and BUILD SUCCESSFUL.
NOTE: if a URL of the form "file://\\nonexistenthost\share\..." is used, the 
command fails as expected. However, as soon as one backslash after "share" is 
replaced by a frontslash, the goal fails silently (i.e. reports success).

Example of silent failure:
mvn deploy:deploy-file -Detc.... 
-Durl=file://nonexistenthost/share/Maven-repository
--> output:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[INFO] 
----------------------------------------------------------------------------
[INFO] [deploy:deploy-file]
Uploading: 
file://nonexistenthost/share/Maven-repository/javax/faces/jsf-impl/1.1/jsf-impl-1.1.jar
673K uploaded
[INFO] Retrieving previous metadata from remote-repository
[INFO] Uploading repository metadata for: 'artifact javax.faces:jsf-impl'
[INFO] Retrieving previous metadata from remote-repository
[INFO] Uploading project information for jsf-impl 1.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Jul 25 16:47:00 CEST 2006
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------


> deploy:deploy-file fails silently on Windows URL containing invalid host name 
> or share
> --------------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-38
>                 URL: https://jira.codehaus.org/browse/MDEPLOY-38
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>          Components: deploy:deploy-file
>         Environment: Windows
>            Reporter: Maarten Brugman
>            Priority: Minor
>
> When using goal deploy:deploy-file, and a Windows URL is used of the form 
> "file://host/share/...." containing an invalid host name or share, maven 
> reports XXX K uploaded and BUILD SUCCESSFUL.
> NOTE: if a URL of the form "file://\\nonexistenthost\share\..." is used, the 
> command fails as expected. However, as soon as one backslash after "share" is 
> replaced by a frontslash, the goal fails silently (i.e. reports success).
> Example of silent failure:
> {noformat}
> mvn deploy:deploy-file -Detc.... 
> -Durl=file://nonexistenthost/share/Maven-repository
> --> output:
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'deploy'.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [deploy:deploy-file]
> Uploading: 
> file://nonexistenthost/share/Maven-repository/javax/faces/jsf-impl/1.1/jsf-impl-1.1.jar
> 673K uploaded
> [INFO] Retrieving previous metadata from remote-repository
> [INFO] Uploading repository metadata for: 'artifact javax.faces:jsf-impl'
> [INFO] Retrieving previous metadata from remote-repository
> [INFO] Uploading project information for jsf-impl 1.1
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Jul 25 16:47:00 CEST 2006
> [INFO] Final Memory: 2M/4M
> [INFO] 
> ------------------------------------------------------------------------
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to