[
https://issues.apache.org/jira/browse/MDEPLOY-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16840739#comment-16840739
]
Karl Heinz Marbaise commented on MDEPLOY-255:
---------------------------------------------
If I see it correctly you have given the wrong syntax for the URL
{{-DaltDeploymentRepository=default::http://nexus:8080/nexus/content/repositories/some_repo}}.
Based on the error message the
[DeployMojo|https://github.com/apache/maven-deploy-plugin/blob/master/src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java#L244]
exactly shows that the given things are not done correctly.
Unfortunately I don't see that change would make in the 3.X line cause that
would be breaking change for the 3.X line. Furthermore if you have issues
related to the interpretation of {{::}} you need to quote them in cygwin
correctly.
> 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
> 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
(v7.6.3#76005)