private boolean hasDeployExecution()

in src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java [201:212]


    private boolean hasDeployExecution(Project p) {
        String key = mojoExecution.getPlugin().getModel().getKey();
        Plugin plugin = p.getBuild().getPluginsAsMap().get(key);
        if (plugin != null) {
            for (PluginExecution execution : plugin.getExecutions()) {
                if (!execution.getGoals().isEmpty() && !"none".equalsIgnoreCase(execution.getPhase())) {
                    return true;
                }
            }
        }
        return false;
    }