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..bc9a562 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,24 @@ 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 Settings Reference */ - @Parameter + @Parameter(property = "scmpublish.serverId", defaultValue = "${project.distributionManagement.site.id}") private String serverId; /** * The SCM username to use. + * This value takes precedence over the username derived from {@link #serverId}. + * @see #serverId */ @Parameter(property = "username") protected String username; /** * The SCM password to use. + * This value takes precedence over the password derived from {@link #serverId}. + * @see #serverId */ @Parameter(property = "password") protected String password;