[MNG-4338] Unexepceted "Unknown packaging: bundle" error for plugins with custom lifecycle mapping that defines optional mojos

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@811512 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-04 18:35:11 +00:00
parent 504fbed09e
commit 318fe259d8
1 changed files with 7 additions and 8 deletions

View File

@ -19,6 +19,7 @@ package org.apache.maven.lifecycle.mapping;
* under the License.
*/
import java.util.List;
import java.util.Map;
/**
@ -36,11 +37,13 @@ public class Lifecycle
*/
private Map<String,String> phases;
/**
* default phases.
/*
* NOTE: This exists merely for backward-compat with legacy-style lifecycle definitions and allows configuration
* injection to work instead of failing.
*/
private Map defaultPhases;
@SuppressWarnings( "unused" )
private List<String> optionalMojos;
/**
* Method getId
*/
@ -77,8 +80,4 @@ public class Lifecycle
this.phases = phases;
} //-- void setPhases(java.util.List)
public Map getDefaultPhases()
{
return defaultPhases;
}
}