Skip to content

Commit

Permalink
[MSCMPUB-61] Leverage the POMs distributionManagement for the default (
Browse files Browse the repository at this point in the history
…#28)

Improve javadoc of authentication parameters with regards to precedence
  • Loading branch information
kwin authored Feb 8, 2024
1 parent a42ba9a commit 823fdfb
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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.
* 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;
Expand Down

0 comments on commit 823fdfb

Please sign in to comment.