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
server id

Improve javadoc of authentication parameters
  • Loading branch information
kwin committed Feb 2, 2024
1 parent a42ba9a commit 83125a5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 83125a5

Please sign in to comment.