Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-01-18 12:15:41 +0000
committerMilos Kleint2011-01-18 12:15:41 +0000
commit899dda1fb932d0999713bf7df4254df88c462a8f (patch)
treeaaa32e25b033adbe189d72dd23c4fc3b01d1d971 /org.eclipse.m2e.discovery/src
parent394296fe5d4b3c0a10095607053ecbd7ac2088af (diff)
downloadm2e-core-899dda1fb932d0999713bf7df4254df88c462a8f.tar.gz
m2e-core-899dda1fb932d0999713bf7df4254df88c462a8f.tar.xz
m2e-core-899dda1fb932d0999713bf7df4254df88c462a8f.zip
MNGECLIPSE-2658 applying patch by Matthew Piggott
Diffstat (limited to 'org.eclipse.m2e.discovery/src')
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java
index 1f71dbb3..9308d1e1 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java
@@ -68,17 +68,20 @@ class DiscoveryWizardProposal extends WorkbenchMarkerResolution {
private MojoExecution getMojoExecution(IMarker marker) {
// TODO Which of these are actually required?
- String groupId = marker.getAttribute("groupId", null);
- String artifactId = marker.getAttribute("artifactId", null);
- String executionId = marker.getAttribute("executionId", null);
- String version = marker.getAttribute("version", null);
- String goal = marker.getAttribute("goal", null);
+ String groupId = marker.getAttribute(IMavenConstants.MARKER_ATTR_GROUP_ID, null);
+ String artifactId = marker.getAttribute(IMavenConstants.MARKER_ATTR_ARTIFACT_ID, null);
+ String executionId = marker.getAttribute(IMavenConstants.MARKER_ATTR_EXECUTION_ID, null);
+ String version = marker.getAttribute(IMavenConstants.MARKER_ATTR_VERSION, null);
+ String goal = marker.getAttribute(IMavenConstants.MARKER_ATTR_GOAL, null);
+ String lifecyclePhase = marker.getAttribute(IMavenConstants.MARKER_ATTR_LIFECYCLE_PHASE, null);
if(goal != null && executionId != null && artifactId != null && groupId != null) {
Plugin plugin = new Plugin();
plugin.setArtifactId(artifactId);
plugin.setGroupId(groupId);
plugin.setVersion(version);
- return new MojoExecution(plugin, goal, executionId);
+ MojoExecution mojoExecution = new MojoExecution(plugin, goal, executionId);
+ mojoExecution.setLifecyclePhase(lifecyclePhase);
+ return mojoExecution;
}
return null;
}

Back to the top