You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2024/02/09 13:44:00 UTC

[jira] [Resolved] (MSCMPUB-63) Rely on DefaultScmRepositoryConfigurator from maven-release for extracting credentials from settings.xml

     [ https://issues.apache.org/jira/browse/MSCMPUB-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus resolved MSCMPUB-63.
------------------------------------
    Fix Version/s: 3.2.2
       Resolution: Fixed

Fixed in https://github.com/apache/maven-scm-publish-plugin/commit/f431e9ea4bc2f2506690cc1f166660fc51a59483.

> Rely on DefaultScmRepositoryConfigurator from maven-release for extracting credentials from settings.xml
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MSCMPUB-63
>                 URL: https://issues.apache.org/jira/browse/MSCMPUB-63
>             Project: Maven SCM Publish Plugin
>          Issue Type: Improvement
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>             Fix For: 3.2.2
>
>
> Currently the logic to extract (encrypted) server credentials from Maven settings is duplicated in https://github.com/apache/maven-scm-publish-plugin/blob/823fdfba3f5034bca2f337b8754a1e923d16a8a9/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java#L331-L351 (would happen in https://github.com/apache/maven-release/blob/0f5e7a14ac7df9861ee7fc08a6ed8ac9fb18321b/maven-release-manager/src/main/java/org/apache/maven/shared/release/scm/DefaultScmRepositoryConfigurator.java#L80 implicitly). Therefore the according code should be removed from the {{maven-scm-publish-plugin}} and just the server id passed to the {{ScmRepositoryConfigurator}}. That would potentially also consider private keys.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)