You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Maarten Brugman (JIRA)" <ji...@codehaus.org> on 2006/07/25 17:00:23 UTC

[jira] Created: (MDEPLOY-38) deploy:deploy-file fails silently on Windows URL containing invalid host name or share

deploy:deploy-file fails silently on Windows URL containing invalid host name or share
--------------------------------------------------------------------------------------

                 Key: MDEPLOY-38
                 URL: http://jira.codehaus.org/browse/MDEPLOY-38
             Project: Maven 2.x Deploy Plugin
          Issue Type: Bug
    Affects Versions: 2.2.1
         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:
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] ------------------------------------------------------------------------

-- 
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

        

[jira] Commented: (MDEPLOY-38) deploy:deploy-file fails silently on Windows URL containing invalid host name or share

Posted by "Maarten Brugman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-38?page=comments#action_73778 ] 
            
Maarten Brugman commented on MDEPLOY-38:
----------------------------------------

Yes, I know, and I got it working.

My point is that anything between the first // and / is assumed to be 'localhost' and thus ignored, even if it contains backslashes.
See the example in my previous comment above.
That results in behavior I did not expect.
Also, if there is no / after the //, but only backslashes (e.g. file://\\host\share\repo), it works.

I see several changes that could make the behavior clearer:
- if there is anything between // and /, fail
- if there is anything between // and /, show a warning that this will be ignored
- explain the behavior in the documentation

My 2 cents, I hope you agree and then find the time to do something with it. I appreciate the work you have done so far on this module.

> deploy:deploy-file fails silently on Windows URL containing invalid host name or share
> --------------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-38
>                 URL: http://jira.codehaus.org/browse/MDEPLOY-38
>             Project: Maven 2.x Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>         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:
> 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] ------------------------------------------------------------------------

-- 
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

        

[jira] Commented: (MDEPLOY-38) deploy:deploy-file fails silently on Windows URL containing invalid host name or share

Posted by "Yves Van Steen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96674 ] 

Yves Van Steen commented on MDEPLOY-38:
---------------------------------------

I know It works for the double backslash way (file://\\windowspc\share\dirs...\).
I expected that I had to formulate It like that.

Now comes the but.

But It only works when you have a single module build.  When you have a reactor build (pom with modules) it only deploys the root (or top pom) but sub projects don't get deployed because maven starts to use slashes and not backslashes.

Example :

Deploy top = file://\\vam7225\repo\www\orbisbe (=> works)
Deploy subproject = file://\\vam7225\repo\www\orbisbe/component1 (=> No deploy)
Deploy subproject = file://\\vam7225\repo\www\orbisbe/component2 (=> No deploy)

But It does NOT report a failure on the sub projects. And you can see the use of the normal slash.

Is there a fix available for this ??

Thanx for any help

> deploy:deploy-file fails silently on Windows URL containing invalid host name or share
> --------------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-38
>                 URL: http://jira.codehaus.org/browse/MDEPLOY-38
>             Project: Maven 2.x Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>         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:
> 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] ------------------------------------------------------------------------

-- 
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

        

[jira] Commented: (MDEPLOY-38) deploy:deploy-file fails silently on Windows URL containing invalid host name or share

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-38?page=comments#action_70634 ] 
            
Joerg Schaible commented on MDEPLOY-38:
---------------------------------------

I am quite sure, that it succeeded technically ... have you checked about a directory "nonexistenthost" in your drives root? ;-)

Note, that you need 5 slashes. First 3 are a shortcut for "//localhost/" and then you can start to define your path (which also start with 2 slashes in your case).

> deploy:deploy-file fails silently on Windows URL containing invalid host name or share
> --------------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-38
>                 URL: http://jira.codehaus.org/browse/MDEPLOY-38
>             Project: Maven 2.x Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>         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:
> 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] ------------------------------------------------------------------------

-- 
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

        

[jira] Commented: (MDEPLOY-38) deploy:deploy-file fails silently on Windows URL containing invalid host name or share

Posted by "Pierre-Arnaud (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-38?page=comments#action_73772 ] 
            
Pierre-Arnaud commented on MDEPLOY-38:
--------------------------------------

if your windows share is \\host\share, a working URL would be file:///\\host/share
(i.e. the windows share is resolved from your localhost)

> deploy:deploy-file fails silently on Windows URL containing invalid host name or share
> --------------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-38
>                 URL: http://jira.codehaus.org/browse/MDEPLOY-38
>             Project: Maven 2.x Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>         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:
> 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] ------------------------------------------------------------------------

-- 
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

        

[jira] Commented: (MDEPLOY-38) deploy:deploy-file fails silently on Windows URL containing invalid host name or share

Posted by "Maarten Brugman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-38?page=comments#action_70788 ] 
            
Maarten Brugman commented on MDEPLOY-38:
----------------------------------------

Aha, a directory 'share' was created on my C drive.

After a lot of experimenting I get it: anything between the first // and / is assumed to be 'localhost' and thus ignored, even if it contains backslashes.
This results in the following behavior:
url=file://\\nonexistenthost\share\repo --> error as expected
url=file://\\nonexistenthost\share/repo --> a directory C:\repo is created

I wonder if that is desirable.


> deploy:deploy-file fails silently on Windows URL containing invalid host name or share
> --------------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-38
>                 URL: http://jira.codehaus.org/browse/MDEPLOY-38
>             Project: Maven 2.x Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>         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:
> 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] ------------------------------------------------------------------------

-- 
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

        

[jira] Issue Comment Edited: (MDEPLOY-38) deploy:deploy-file fails silently on Windows URL containing invalid host name or share

Posted by "Yves Van Steen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEPLOY-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96674 ] 

Yves Van Steen edited comment on MDEPLOY-38 at 5/22/07 10:41 AM:
-----------------------------------------------------------------

Sorry, posted this message @ the wrong topic.

I REMOVED THE CONTENT


 was:
I know It works for the double backslash way (file://\\windowspc\share\dirs...\).
I expected that I had to formulate It like that.

Now comes the but.

But It only works when you have a single module build.  When you have a reactor build (pom with modules) it only deploys the root (or top pom) but sub projects don't get deployed because maven starts to use slashes and not backslashes.

Example :

Deploy top = file://\\vam7225\repo\www\orbisbe (=> works)
Deploy subproject = file://\\vam7225\repo\www\orbisbe/component1 (=> No deploy)
Deploy subproject = file://\\vam7225\repo\www\orbisbe/component2 (=> No deploy)

But It does NOT report a failure on the sub projects. And you can see the use of the normal slash.

Is there a fix available for this ??

Thanx for any help

> deploy:deploy-file fails silently on Windows URL containing invalid host name or share
> --------------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-38
>                 URL: http://jira.codehaus.org/browse/MDEPLOY-38
>             Project: Maven 2.x Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>         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:
> 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] ------------------------------------------------------------------------

-- 
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