From f411ef2e858c73b4cdfc8823c1da75913fb3d895 Mon Sep 17 00:00:00 2001 From: Sergey Evdokimov Date: Wed, 21 Mar 2012 12:56:14 +0400 Subject: [PATCH] Add pom-packaging type 'maven-plugin' --- .../org/jetbrains/idea/maven/project/MavenProject.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/maven/src/main/java/org/jetbrains/idea/maven/project/MavenProject.java b/plugins/maven/src/main/java/org/jetbrains/idea/maven/project/MavenProject.java index 9487d00d168d..521ed69f086f 100644 --- a/plugins/maven/src/main/java/org/jetbrains/idea/maven/project/MavenProject.java +++ b/plugins/maven/src/main/java/org/jetbrains/idea/maven/project/MavenProject.java @@ -29,6 +29,7 @@ import com.intellij.openapi.util.text.StringUtil; import com.intellij.openapi.vfs.LocalFileSystem; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.util.SmartList; +import com.intellij.util.containers.CollectionFactory; import com.intellij.util.containers.ContainerUtil; import gnu.trove.THashMap; import gnu.trove.THashSet; @@ -617,9 +618,9 @@ public class MavenProject { @NotNull public Set getSupportedPackagings() { - Set result = new THashSet(Arrays.asList(MavenConstants.TYPE_POM, - MavenConstants.TYPE_JAR, - "ejb", "ejb-client", "war", "ear", "bundle")); + Set result = CollectionFactory.newSet(MavenConstants.TYPE_POM, + MavenConstants.TYPE_JAR, + "ejb", "ejb-client", "war", "ear", "bundle", "maven-plugin"); for (MavenImporter each : getSuitableImporters()) { each.getSupportedPackagings(result); }