diff --git a/plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/GroovyGmavenImporter.java b/plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/GroovyGmavenImporter.java
new file mode 100644
index 000000000000..244593bf8b0e
--- /dev/null
+++ b/plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/GroovyGmavenImporter.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2000-2014 JetBrains s.r.o.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jetbrains.idea.maven.importing;
+
+public class GroovyGmavenImporter extends GroovyImporter {
+ public GroovyGmavenImporter() {
+ super("org.codehaus.gmaven", "groovy-maven-plugin");
+ }
+}
\ No newline at end of file
diff --git a/plugins/maven/src/main/resources/META-INF/groovy-support.xml b/plugins/maven/src/main/resources/META-INF/groovy-support.xml
index a3b21c13bd42..bbd27cb36d87 100644
--- a/plugins/maven/src/main/resources/META-INF/groovy-support.xml
+++ b/plugins/maven/src/main/resources/META-INF/groovy-support.xml
@@ -2,6 +2,7 @@
+
@@ -10,6 +11,10 @@
+
+
+
+
diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/GroovyImporterTest.java b/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/GroovyImporterTest.java
index 53941f9b989a..a84613293b1d 100644
--- a/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/GroovyImporterTest.java
+++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/GroovyImporterTest.java
@@ -101,6 +101,36 @@ public class GroovyImporterTest extends MavenImportingTestCase {
assertTestResources("project", "src/test/resources");
}
+ public void testAddingGroovySpecificSources2() throws Exception {
+ createStdProjectFolders();
+ createProjectSubDirs("src/main/groovy",
+ "src/test/groovy");
+
+ importProject("test" +
+ "project" +
+ "1" +
+
+ "" +
+ " " +
+ " " +
+ " org.codehaus.gmaven" +
+ " groovy-maven-plugin" +
+ " " +
+ " " +
+ "");
+
+ assertModules("project");
+
+ assertSources("project",
+ "src/main/java",
+ "src/main/groovy");
+ assertResources("project", "src/main/resources");
+ assertTestSources("project",
+ "src/test/java",
+ "src/test/groovy");
+ assertTestResources("project", "src/test/resources");
+ }
+
public void testAddingCustomGroovySpecificSources() throws Exception {
createStdProjectFolders();
createProjectSubDirs("src/main/groovy",
diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/plugins/groovy/MavenGroovyInjectionTest.groovy b/plugins/maven/src/test/java/org/jetbrains/idea/maven/plugins/groovy/MavenGroovyInjectionTest.groovy
index 31693eb342e3..ec4f5f509d37 100644
--- a/plugins/maven/src/test/java/org/jetbrains/idea/maven/plugins/groovy/MavenGroovyInjectionTest.groovy
+++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/plugins/groovy/MavenGroovyInjectionTest.groovy
@@ -107,6 +107,45 @@ class MavenGroovyInjectionTest extends LightCodeInsightFixtureTestCase {
+
+""")
+
+ myFixture.completeBasic()
+
+ def lookups = myFixture.lookupElementStrings
+ assert lookups.containsAll(["String", "StringBuffer", "StringBuilder"])
+ }
+
+ public void testCompletion3() {
+ myFixture.configureByText("pom.xml", """
+
+
+ 4.0.0
+
+ simpleMaven
+ simpleMaven
+ 1.0
+
+ jar
+
+
+
+
+ org.codehaus.gmaven
+ groovy-maven-plugin
+ 1.3
+
+
+
+ String
+
+
+
+
+
+
""")