Class DeployMojo

java.lang.Object
org.apache.maven.plugins.deploy.AbstractDeployMojo
org.apache.maven.plugins.deploy.DeployMojo
All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo

@Mojo(name="deploy", defaultPhase="deploy") public class DeployMojo extends AbstractDeployMojo
Deploys an artifact to remote repository.
Author:
Emmanuel Venisse, John Casey (refactoring only)
  • Constructor Details

    • DeployMojo

      public DeployMojo()
  • Method Details

    • execute

      public void execute()
    • getKnownRepositoryUrls

      protected Collection<String> getKnownRepositoryUrls(String id)
      Description copied from class: AbstractDeployMojo
      Collects the URLs this build already associates with the given repository id: mirror entries and profile repositories from settings.xml. Subclasses add further sources (the deploy goal adds the project's distributionManagement).

      Trust note: sources read from the project model (such as distributionManagement) are attacker-controlled in the malicious-POM model and are therefore advisory: they can only widen the accepted set for the mismatch check, never authorize a binding by their absence — the empty-record case is handled by provenance in AbstractDeployMojo.validateCredentialBinding(String, String, boolean). Settings.xml-sourced entries (mirrors, profiles) are operator-controlled.

      Overrides:
      getKnownRepositoryUrls in class AbstractDeployMojo