public void execute()

in core-it-support/core-it-plugins/maven-it-plugin-artifact/src/main/java/org/apache/maven/plugin/coreit/DeployMojo.java [57:76]


    public void execute() throws MojoExecutionException {
        getLog().info("[MAVEN-CORE-IT-LOG] Deploying project artifacts");

        try {
            if (isPomArtifact()) {
                deployer.deploy(pomFile, mainArtifact, deploymentRepository, localRepository);
            } else {
                deployer.deploy(mainArtifact.getFile(), mainArtifact, deploymentRepository, localRepository);
            }

            if (attachedArtifacts != null) {
                for (Artifact attachedArtifact : attachedArtifacts) {
                    deployer.deploy(
                            attachedArtifact.getFile(), attachedArtifact, deploymentRepository, localRepository);
                }
            }
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to deploy artifacts: " + e.getMessage(), e);
        }
    }