Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-01-18 05:43:50 +0000
committerIgor Fedorenko2011-01-18 05:43:50 +0000
commit0a02c14526c8ec13d06a0942304f1cd2ba041e03 (patch)
tree5b53a40c09cd892fc1c3ea722e4463ce1ec1e467 /org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractLifecycleMapping.java
parent65fe8e41765ce635ed5d85b2011d9033e15be5fb (diff)
downloadm2e-core-0a02c14526c8ec13d06a0942304f1cd2ba041e03.tar.gz
m2e-core-0a02c14526c8ec13d06a0942304f1cd2ba041e03.tar.xz
m2e-core-0a02c14526c8ec13d06a0942304f1cd2ba041e03.zip
fixed unexpected duplicate mapping marker with custom mapping
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractLifecycleMapping.java')
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractLifecycleMapping.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractLifecycleMapping.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractLifecycleMapping.java
index a4c5d92f..5a40f7fc 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractLifecycleMapping.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractLifecycleMapping.java
@@ -13,7 +13,6 @@ package org.eclipse.m2e.core.project.configurator;
import java.util.ArrayList;
import java.util.List;
-import java.util.Map;
import org.eclipse.core.resources.ICommand;
import org.eclipse.core.resources.IProject;
@@ -22,8 +21,10 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
+import org.apache.maven.plugin.MojoExecution;
+
import org.eclipse.m2e.core.core.IMavenConstants;
-import org.eclipse.m2e.core.internal.lifecycle.model.PluginExecutionMetadata;
+import org.eclipse.m2e.core.internal.lifecycle.MappingMetadataSource;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
@@ -188,17 +189,6 @@ public abstract class AbstractLifecycleMapping implements ILifecycleMapping {
public abstract List<AbstractProjectConfigurator> getProjectConfigurators(IProgressMonitor monitor)
throws CoreException;
- @SuppressWarnings("unused")
- public void initialize(IMavenProjectFacade mavenProjectFacade, List<PluginExecutionMetadata> configuration,
- Map<MojoExecutionKey, List<PluginExecutionMetadata>> mapping, IProgressMonitor monitor) throws CoreException {
-
- if(this.mavenProjectFacade != null) {
- throw new IllegalStateException("Cannot change the maven project facade for a lifecycle mapping instance."); //$NON-NLS-1$
- }
- this.mavenProjectFacade = mavenProjectFacade;
-
- }
-
public IMavenProjectFacade getMavenProjectFacade() {
return mavenProjectFacade;
}
@@ -222,4 +212,14 @@ public abstract class AbstractLifecycleMapping implements ILifecycleMapping {
return !problems.isEmpty();
}
+ public void setMavenProjectFacade(IMavenProjectFacade projectFacade) {
+ if(this.mavenProjectFacade != null) {
+ throw new IllegalStateException("Cannot change the maven project facade for a lifecycle mapping instance."); //$NON-NLS-1$
+ }
+ this.mavenProjectFacade = projectFacade;
+ }
+
+ public abstract void initializeMapping(List<MojoExecution> executionPlan, MappingMetadataSource originalMapping,
+ List<MappingMetadataSource> inheritedMapping);
+
}

Back to the top