You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/12/24 12:48:57 UTC

[maven] branch master updated: [MNG-7021] Remove old MHELP backward compat code

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f63dac  [MNG-7021] Remove old MHELP backward compat code
7f63dac is described below

commit 7f63daccc7c6762febcb0c8f9fc0cff7419915af
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri Nov 13 23:38:36 2020 +0100

    [MNG-7021] Remove old MHELP backward compat code
    
    This closes #395
---
 .../maven/lifecycle/DefaultLifecycleExecutor.java  | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
index 63b7654..b164f08 100644
--- a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
+++ b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
@@ -21,7 +21,6 @@ package org.apache.maven.lifecycle;
 
 import java.util.Arrays;
 import java.util.List;
-import java.util.Map;
 import java.util.Set;
 
 import javax.inject.Inject;
@@ -44,7 +43,6 @@ import org.apache.maven.plugin.PluginDescriptorParsingException;
 import org.apache.maven.plugin.PluginManagerException;
 import org.apache.maven.plugin.PluginNotFoundException;
 import org.apache.maven.plugin.PluginResolutionException;
-import org.apache.maven.plugin.descriptor.MojoDescriptor;
 import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException;
 import org.apache.maven.plugin.version.PluginVersionResolutionException;
 import org.apache.maven.project.MavenProject;
@@ -108,26 +106,6 @@ public class DefaultLifecycleExecutor
         return lifeCyclePluginAnalyzer.getPluginsBoundByDefaultToAllLifecycles( packaging );
     }
 
-    // USED BY MAVEN HELP PLUGIN
-
-    @Deprecated
-    public Map<String, Lifecycle> getPhaseToLifecycleMap()
-    {
-        return defaultLifeCycles.getPhaseToLifecycleMap();
-    }
-
-    // NOTE: Backward-compat with maven-help-plugin:2.1
-
-    @SuppressWarnings( { "UnusedDeclaration" } )
-    MojoDescriptor getMojoDescriptor( String task, MavenSession session, MavenProject project, String invokedVia,
-                                      boolean canUsePrefix, boolean isOptionalMojo )
-        throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,
-        MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException,
-        PluginVersionResolutionException
-    {
-        return mojoDescriptorCreator.getMojoDescriptor( task, session, project );
-    }
-
     // Used by m2eclipse
 
     @SuppressWarnings( { "UnusedDeclaration" } )