aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-01-19 10:07:59 (EST)
committerIgor Fedorenko2011-01-19 10:11:13 (EST)
commit0944597a555f5ba12106b7a4d1bfb984f234baab (patch)
treee065e053ea91df317bc066977f2c2cd4b9232c40
parentea27da4049ea534f719a49c8e4d4003c6a5bda0b (diff)
downloadm2e-core-0944597a555f5ba12106b7a4d1bfb984f234baab.zip
m2e-core-0944597a555f5ba12106b7a4d1bfb984f234baab.tar.gz
m2e-core-0944597a555f5ba12106b7a4d1bfb984f234baab.tar.bz2
Revert to creating unknown packaging error marker for all invalid lifecycles
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java
index 274288e..6498beb 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java
@@ -339,6 +339,18 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
}
}
}
+
+ if(lifecycleMapping instanceof InvalidLifecycleMapping) {
+ // TODO decide if we want this marker in addition to more specific markers created above
+ IMarker marker = mavenMarkerManager.addMarker(mavenProjectFacade.getPom(),
+ IMavenConstants.MARKER_CONFIGURATION_ID,
+ NLS.bind(Messages.LifecycleMissing, mavenProjectFacade.getPackaging()), 1 /*lineNumber*/,
+ IMarker.SEVERITY_ERROR);
+ marker.setAttribute(IMavenConstants.MARKER_ATTR_PACKAGING, mavenProjectFacade.getPackaging());
+ marker.setAttribute(IMavenConstants.MARKER_ATTR_EDITOR_HINT, IMavenConstants.EDITOR_HINT_UNKNOWN_PACKAGING);
+
+ return false;
+ }
List<MojoExecution> notCoveredMojoExecutions = lifecycleMapping.getNotCoveredMojoExecutions(monitor);
if(notCoveredMojoExecutions != null && notCoveredMojoExecutions.size() != 0) {