Valentin titov created MDEPLOY-255: -------------------------------------- Summary: 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
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)