Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-08-25 13:38:39 -0400
committerIgor Fedorenko2011-08-25 13:38:39 -0400
commitbb9fb74cc8dc60ac041d0d655edf9a263171c9d1 (patch)
treef76c8f7e44f8be42665c8500bacac1f7299c1c9b
parent50195086b66fbedda87ba47617493e78eda4b346 (diff)
downloadm2e-core-bb9fb74cc8dc60ac041d0d655edf9a263171c9d1.tar.gz
m2e-core-bb9fb74cc8dc60ac041d0d655edf9a263171c9d1.tar.xz
m2e-core-bb9fb74cc8dc60ac041d0d655edf9a263171c9d1.zip
avoid redundant parent relativePath=..
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java
index 43d50662..67452eb6 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java
@@ -203,7 +203,10 @@ public class MavenModuleWizard extends AbstractMavenProjectWizard implements INe
final Model model = artifactPage.getModel();
if (model.getParent() != null) {
Parent par = model.getParent();
- par.setRelativePath(location.makeRelativeTo(location.append(moduleName)).toOSString());
+ String relPath = location.makeRelativeTo(location.append(moduleName)).toOSString();
+ if(!"..".equals(relPath)) { //$NON-NLS-1$
+ par.setRelativePath(relPath);
+ }
//#335331 remove current model's version and groupId if equal to parent, to prevent showing a warning marker
if (par.getGroupId() != null && par.getGroupId().equals(model.getGroupId())) {

Back to the top