Maven import broken in 7684?
I can't create a project from a Maven pom anymore in the 7684 EAP. Is it broken?
What happens for me:
- When importing the project, it is seemingly created. IntelliJ asks me if I want to open the project in a New Frame, or in the this one. Clicking either does nothing.
- On disk only 1 IPR and 1 IWS file are created. No IML files.
- When I open the project manually, IntelliJ prompts with a message saying that the project was imported with an older version of the Maven plugin, and that I'll have to do it again.
Am I the only one having this problem?
By the way: I'm on Linux, Mandriva 2008.0.
Please sign in to leave a comment.
Does your log file contain any maven-relative exceptions?
Could you please attach the pom file that causes the problem?
I've done some further investigation and have been able to create a test case.
The attached ZIP contains a simple, working, multi-model Maven project.
Unzipping it and running 'mvn install' works. At least for me :)
Importing the project (or opening it from the parent POM directly) in IDEA shows the following exception:
---
Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(86,69),absolute(93,130),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###
java.lang.NullPointerException
at org.jetbrains.idea.maven.project.MavenToIdeaModuleConfigurator.findModuleFor(MavenToIdeaModuleConfigurator.java:207)
at org.jetbrains.idea.maven.project.MavenToIdeaModuleConfigurator.configDependencies(MavenToIdeaModuleConfigurator.java:184)
at org.jetbrains.idea.maven.project.MavenToIdeaModuleConfigurator.configModule(MavenToIdeaModuleConfigurator.java:64)
at org.jetbrains.idea.maven.project.MavenToIdeaModuleConfigurator.config(MavenToIdeaModuleConfigurator.java:58)
at org.jetbrains.idea.maven.project.MavenToIdeaConfigurator.convertNode(MavenToIdeaConfigurator.java:98)
at org.jetbrains.idea.maven.project.MavenToIdeaConfigurator.access$000(MavenToIdeaConfigurator.java:19)
at org.jetbrains.idea.maven.project.MavenToIdeaConfigurator$2.visit(MavenToIdeaConfigurator.java:84)
at org.jetbrains.idea.maven.project.MavenToIdeaConfigurator$2.visit(MavenToIdeaConfigurator.java:80)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:54)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:74)
at org.jetbrains.idea.maven.project.MavenProjectModel.visit(MavenProjectModel.java:193)
at org.jetbrains.idea.maven.project.MavenToIdeaConfigurator.configModules(MavenToIdeaConfigurator.java:80)
at org.jetbrains.idea.maven.project.MavenToIdeaConfigurator.config(MavenToIdeaConfigurator.java:55)
at org.jetbrains.idea.maven.project.MavenToIdeaConfigurator.config(MavenToIdeaConfigurator.java:35)
at org.jetbrains.idea.maven.project.MavenImportProcessor$3.run(MavenImportProcessor.java:114)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:181)
at org.jetbrains.idea.maven.project.MavenImportProcessor.commit(MavenImportProcessor.java:112)
at org.jetbrains.idea.maven.project.action.MavenImportBuilder.commit(MavenImportBuilder.java:75)
at com.intellij.projectImport.ProjectOpenProcessor.doOpenProject(ProjectOpenProcessor.java:49)
at com.intellij.ide.impl.ProjectUtil.openOrImport(ProjectUtil.java:145)
at com.intellij.ide.actions.OpenProjectAction.actionPerformed(OpenProjectAction.java:17)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:11)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:11)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:78)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:122)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:6)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:3)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:154)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:20)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
-
I've imported these kind of Maven projects earlier, without any problems.
As I've stated earlier, an IPR file is created. Trying to open it in IDEA shows an empty main window with an open 'Maven Importer Output' tool window, saying "Error: the project was imported with previous Maven Plugin version. Please reimport it to make it work properly."
Vincent
Attachment(s):
test.zip
I think this is the same problem that I have reported and this should be fixed in the next eap release...
BTJ
I can confirm this is fixed in 7693.