[MNG-7022] Remove o.a.m.lifecycle.mapping.Lifecycle optional mojos backward compat code

This closes #396
This commit is contained in:
Michael Osipov 2020-11-14 01:22:49 +01:00
parent d2adab7bf3
commit 72a125ef04
2 changed files with 1 additions and 15 deletions

View File

@ -21,7 +21,6 @@ package org.apache.maven.lifecycle.mapping;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@ -40,13 +39,6 @@ public class Lifecycle
*/
private Map<String, LifecyclePhase> lifecyclePhases;
/*
* NOTE: This exists merely for backward-compat with legacy-style lifecycle definitions and allows configuration
* injection to work instead of failing.
*/
@SuppressWarnings( "unused" )
private List<String> optionalMojos;
/**
* Method getId
*/

View File

@ -76,9 +76,6 @@
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
</phases>
<optional-mojos>
<optional-mojo>org.apache.maven.plugins:maven-site-plugin:attach-descriptor</optional-mojo>
</optional-mojos>
<!-- END SNIPPET: pom-lifecycle -->
</lifecycle>
</lifecycles>
@ -101,9 +98,6 @@
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
</phases>
<optional-mojos>
<optional-mojo>org.apache.maven.plugins:maven-site-plugin:attach-descriptor</optional-mojo>
</optional-mojos>
<!-- END SNIPPET: pom-lifecycle -->
</lifecycle>
</lifecycles>