You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/12/22 09:39:00 UTC
[jira] [Commented] (MDEPLOY-255) altDeploymentRepository is broken
on mingw/cygwin/windows
[ https://issues.apache.org/jira/browse/MDEPLOY-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17253369#comment-17253369 ]
Michael Osipov commented on MDEPLOY-255:
----------------------------------------
Can you retry from master again?
> 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)