[ 
https://issues.apache.org/jira/browse/MDEPLOY-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17254653#comment-17254653
 ] 

Michael Osipov commented on MDEPLOY-255:
----------------------------------------

Tried from Git Bash:
{noformat}
 [INFO] --- maven-deploy-plugin:3.0.0-M1:deploy (default-cli) @ maven ---       
                                                                                
                                                    
[INFO] Using alternate deployment repository 
default::http://nexus:8080/nexus/content/repositories/some_repo                 
                                                                                
      
Downloading from default: 
http://nexus:8080/nexus/content/repositories/some_repo/org/apache/maven/maven/4.0.0-alpha-1-SNAPSHOT/maven-metadata.xml
                                                                  
[WARNING] Could not transfer metadata 
org.apache.maven:maven:4.0.0-alpha-1-SNAPSHOT/maven-metadata.xml from/to 
default (http://nexus:8080/nexus/content/repositories/some_repo): nexus         
                    
[INFO] ------------------------------------------------------------------------ 
                                                                                
                                                   
[INFO] Reactor Summary:                                                         
                                                                                
                                                   
[INFO]                                                                          
                                                                                
                                                   
[INFO] Apache Maven 4.0.0-alpha-1-SNAPSHOT ................ FAILURE [  7.946 s] 
                                                                                
                                                   
[INFO] Maven Model ........................................ SKIPPED             
                                                                                
                                                   
[INFO] Maven Artifact ..................................... SKIPPED             
                                                                                
                                                   
[INFO] Maven Plugin API ................................... SKIPPED             
                                                                                
                                                   
[INFO] Maven Builder Support .............................. SKIPPED             
                                                                                
                                                   
[INFO] Maven XML .......................................... SKIPPED             
                                                                                
                                                   
[INFO] Maven Model Builder ................................ SKIPPED             
                                                                                
                                                   
[INFO] Maven Settings ..................................... SKIPPED             
                                                                                
                                                   
[INFO] Maven Settings Builder ............................. SKIPPED             
                                                                                
                                                   
[INFO] Maven Repository Metadata Model .................... SKIPPED             
                                                                                
                                                   
[INFO] Maven Artifact Resolver Provider ................... SKIPPED             
                                                                                
                                                   
[INFO] Maven Core ......................................... SKIPPED             
                                                                                
                                                   
[INFO] Maven SLF4J Wrapper ................................ SKIPPED             
                                                                                
                                                   
[INFO] Maven SLF4J Simple Provider ........................ SKIPPED             
                                                                                
                                                   
[INFO] Maven Embedder ..................................... SKIPPED             
                                                                                
                                                   
[INFO] Maven Compat ....................................... SKIPPED             
                                                                                
                                                   
[INFO] Apache Maven Distribution .......................... SKIPPED             
                                                                                
                                                   
[INFO] Maven Wrapper ...................................... SKIPPED             
                                                                                
                                                   
[INFO] Apache Maven Wrapper Distribution 4.0.0-alpha-1-SNAPSHOT SKIPPED         
                                                                                
                                                   
[INFO] ------------------------------------------------------------------------ 
                                                                                
                                                   
[INFO] BUILD FAILURE                                                            
                                                                                
                                                   
[INFO] ------------------------------------------------------------------------ 
                                                                                
                                                   
[INFO] Total time: 8.400 s                                                      
                                                                                
                                                   
[INFO] Finished at: 2020-12-24T21:43:05+01:00                                   
                                                                                
                                                   
[INFO] ------------------------------------------------------------------------ 
                                                                                
                                                   
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy (default-cli) on 
project maven: ArtifactDeployerException: Failed to retrieve remote metadata 
org.apache.maven:maven:4.
0.0-alpha-1-SNAPSHOT/maven-metadata.xml: Could not transfer metadata 
org.apache.maven:maven:4.0.0-alpha-1-SNAPSHOT/maven-metadata.xml from/to 
default (http://nexus:8080/nexus/content/repositories/some_repo): nex
us: Unknown host nexus -> [Help 1]                                              
                                                                                
                                                   
[ERROR]                                                                         
                                                                                
                                                   
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.                                                                         
                                                       
[ERROR] Re-run Maven using the -X switch to enable full debug logging.          
                                                                                
                                                   
[ERROR]                                                                         
                                                                                
                                                   
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:                                                    
                                                      
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException         
                                                                                
                                  
{noformat}

I cannot reproduce it.

> altDeploymentRepository is broken on mingw/cygwin/windows
> ---------------------------------------------------------
>
>                 Key: MDEPLOY-255
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-255
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>            Reporter: Valentin titov
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> I'm trying to deploy some patched plugin from github to my internal 
> repository.
> maven-deploy-plugin has nice altDeploymentRepository parameter for such cases.
> I'm  using bash from msys2 (it's windows) and when run mvn with this 
> parameter:
> {code:bash}
> mvn install \
>  org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy\
>  
>  
> -DaltDeploymentRepository=default::http://nexus:8080/nexus/content/repositories/some_repo
> {code}
>  I get error 
> {noformat}
> [INFO] Using alternate deployment repository 
> default;http://nexus;8080\nexus\content\repositories\some_repo
> {noformat}
> ...
> [ERROR] Invalid syntax for alternative repository. Use "id::::url".
> {noformat}
> This happens because URL part of parameter becomes broken when read as a 
> string parameter. I do not know if it happens inside ProjectDeployerRequest 
> or not, I do not know if 'native' mvn bat/cmd has the same problem.
> I suppose that URL  should be processed as URL, not string, so I suggest 
> adding separate parameters:
> altDeploymentRepositoryId and altDeploymentRepositoryURL
> see proposed fix in PR#6
> https://github.com/apache/maven-deploy-plugin/pull/6
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to