You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kw...@apache.org on 2024/02/02 13:09:54 UTC
(maven-scm-publish-plugin) branch feature/get-server-id-from-pom created (now 83125a5)
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a change to branch feature/get-server-id-from-pom
in repository https://gitbox.apache.org/repos/asf/maven-scm-publish-plugin.git
at 83125a5 [MSCMPUB-61] Leverage the POMs distributionManagement for the default server id
This branch includes the following new commits:
new 83125a5 [MSCMPUB-61] Leverage the POMs distributionManagement for the default server id
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven-scm-publish-plugin) 01/01: [MSCMPUB-61] Leverage the POMs distributionManagement for the default server id
Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch feature/get-server-id-from-pom
in repository https://gitbox.apache.org/repos/asf/maven-scm-publish-plugin.git
commit 83125a51620a75148ce820dbc6ce8ae6e7c57369
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri Feb 2 14:08:59 2024 +0100
[MSCMPUB-61] Leverage the POMs distributionManagement for the default
server id
Improve javadoc of authentication parameters
---
.../apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java b/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
index 4230b7e..eb221d1 100644
--- a/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
+++ b/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
@@ -179,19 +179,22 @@ public abstract class AbstractScmPublishMojo extends AbstractMojo {
protected ScmRepositoryConfigurator scmRepositoryConfigurator;
/**
- * The serverId specified in the settings.xml, which should be used for the authentication.
+ * The server id specified in the {@code settings.xml}, which should be used for the authentication.
+ * @see <a href="https://maven.apache.org/settings.html#servers">Settings Reference</a>
*/
- @Parameter
+ @Parameter(property = "scmpublish.serverId", defaultValue = "${project.distributionManagement.site.id}")
private String serverId;
/**
* The SCM username to use.
+ * @see #serverId
*/
@Parameter(property = "username")
protected String username;
/**
* The SCM password to use.
+ * @see #serverId
*/
@Parameter(property = "password")
protected String password;