IDEA-107943 Dependencies with a non-default type not added as external libraries in maven module

fixed: allow "maven-plugin" in dependency type. +review CR-IC @Anton.Makeev
This commit is contained in:
Sergey Evdokimov
2013-05-28 19:32:45 +04:00
parent cafb411890
commit 349e111644
@@ -806,9 +806,10 @@ public class MavenProject {
@NotNull
public Set<String> getSupportedDependencyTypes(@NotNull SupportedRequestType type) {
Set<String> result = new THashSet<String>(Arrays.asList(MavenConstants.TYPE_JAR,
MavenConstants.TYPE_TEST_JAR,
"ejb", "ejb-client", "jboss-har", "jboss-sar", "war", "ear", "bundle"));
Set<String> result = ContainerUtil.newTroveSet(MavenConstants.TYPE_JAR,
MavenConstants.TYPE_TEST_JAR,
"maven-plugin",
"ejb", "ejb-client", "jboss-har", "jboss-sar", "war", "ear", "bundle");
if (type == SupportedRequestType.FOR_COMPLETION) {
result.add(MavenConstants.TYPE_POM);
}