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
Deploys an artifact to remote repository.
-
Field Summary
Fields inherited from class AbstractDeployMojo
logger, session -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected Collection<String> Collects the URLs this build already associates with the given repository id: mirror entries and profile repositories fromsettings.xml.
-
Constructor Details
-
DeployMojo
public DeployMojo()
-
-
Method Details
-
execute
public void execute() -
getKnownRepositoryUrls
Description copied from class:AbstractDeployMojoCollects the URLs this build already associates with the given repository id: mirror entries and profile repositories fromsettings.xml. Subclasses add further sources (the deploy goal adds the project'sdistributionManagement).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 inAbstractDeployMojo.validateCredentialBinding(String, String, boolean). Settings.xml-sourced entries (mirrors, profiles) are operator-controlled.- Overrides:
getKnownRepositoryUrlsin classAbstractDeployMojo
-