Class MvnPublishingDestination

java.lang.Object
org.jdrupes.builder.mvnrepo.MvnPublishingDestination
Direct Known Subclasses:
MvnDeployDestination, PortalPublisherDestination

public abstract class MvnPublishingDestination extends Object

The base class for all Maven publishing destinations. It provides common functionality for managing a destination's accepted version types (SNAPSHOT, RELEASE) and for managing repository credentials.

Credentials for the destination are resolved using the following order of precedence:

  1. Explicitly set credentials: Values provided via the credentials(java.lang.String,java.lang.String) method take the highest priority.
  2. Build context properties: If no explicit credentials are set, the publisher looks for mvnrepo.user and mvnrepo.password within the BuildContext.
  3. Maven settings.xml: If an ID is configured for the destination, the publisher searches the servers section of the Maven settings.xml for a server matching that ID.
  4. Fallback: If no credentials are found in any of the above sources, empty strings are used, which typically results in an anonymous upload attempt.