Add pom-packaging type 'maven-plugin'

This commit is contained in:
Sergey Evdokimov
2012-03-21 15:06:06 +04:00
parent 2fa78de9fb
commit f411ef2e85
@@ -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<String> getSupportedPackagings() {
Set<String> result = new THashSet<String>(Arrays.asList(MavenConstants.TYPE_POM,
MavenConstants.TYPE_JAR,
"ejb", "ejb-client", "war", "ear", "bundle"));
Set<String> result = CollectionFactory.newSet(MavenConstants.TYPE_POM,
MavenConstants.TYPE_JAR,
"ejb", "ejb-client", "war", "ear", "bundle", "maven-plugin");
for (MavenImporter each : getSuitableImporters()) {
each.getSupportedPackagings(result);
}