Error from Maven Plugin when trying to load someone else's project

I am trying to load a project (.idea directory with two .iml files, an .ipr file and an .iws file) that was created by another user using IDEA 7.0.3 (which I just installed when I upgraded from IDEA 6.0.5). When I try, I get this error in a "Maven Importer Output" window:

"Error: The project was imported with previous Maven Plugin version. Please reimport it in order to make it work properly."

This is a surprise to us - while we do use Maven, we have never used the Maven plugin for IDEA (neither the person I got the project from, nor me), so we have no idea what is going on. Looking at the log file at the time of the error, I see these messages/exception:

2008-03-28 11:11:36,000 INFO - odetecting.FacetDetectionIndex - Unknown facet types in cache: gnu.trove.THashSet@0
2008-03-28 11:11:36,109 INFO - unicator.p2p.UserMonitorThread - Force finding users
2008-03-28 11:11:36,140 INFO - m.intellij.util.ReflectionUtil -
java.lang.NoSuchFieldException: Class: class javax.swing.plaf.basic.BasicPopupMenuUI name: menuKeyboardHelper type: class java.lang.Object
at com.intellij.util.ReflectionUtil.findAssignableField(ReflectionUtil.java:147)
at com.intellij.util.ReflectionUtil.getField(ReflectionUtil.java:234)
at com.intellij.ide.SwingCleanuper$1$1$1.run(SwingCleanuper.java:8)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
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)
2008-03-28 11:11:37,046 INFO - or.jabber.impl.JabberTransport - Jabber connected
2008-03-28 11:11:37,109 INFO - r.jabber.impl.JabberFacadeImpl - SASL authentication failed
SASL authentication failed:
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:204)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:433)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:396)
at jetbrains.communicator.jabber.impl.JabberFacadeImpl._createConnection(JabberFacadeImpl.java:162)
at jetbrains.communicator.jabber.impl.JabberFacadeImpl.connect(JabberFacadeImpl.java:119)
at jetbrains.communicator.jabber.impl.JabberFacadeImpl.connect(JabberFacadeImpl.java:115)
at jetbrains.communicator.jabber.impl.JabberTransport$1.run(JabberTransport.java:122)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:9)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:1)

This looks bad, but these don't appear to have anything to do with my problem (besides, I have no idea what SASL is). I have tried going to the Plugin Manager and updating the Maven plugin, but that has had no effect. I am stuck until I can load this project.

Please help!

Edited by: Jim Babka on Mar 29, 2008 2:15 AM

6 comments
Comment actions Permalink

Update: it turns out that I was not loading the project from my co-worker. I was loading a directory with a Maven POM, which IDEA made appear like it was a project. When I loaded the actual project, everything worked fine, so this is no longer a critical issue. However, there is still the problem of why I got this error when loading a Maven POM, even after I loaded the latest Maven plugin from the JetBrains website. Can anyone offer an explanation as to what is happening here?

0
Comment actions Permalink

The error occur in case a project has pom files and no corresponding module. This may happen if the project was imported with 7.0.2 and 'use temporary modules' option.

0
Comment actions Permalink

I never had 7.0.2 installed - my first install of version 7 was 7.0.3. Isn't Idea 7 supposed to create the module file when loading a directory that has a pom?

0
Comment actions Permalink

Corresponding modules for pom files are created if you explicitly imported the poms or opened the pom with open project' action.
Does the problem still remain? Could you describe your project's layout? I'm interested in pom files and iml/ipr/iws files.

0
Comment actions Permalink

When I was choosing a project to open, I saw that the directory which contains the pom was highlighted as a project (note - not a project file - the directory). I chose that directory, and that's when I saw the problem. The directory contained several child directories with their own poms, plus a ".idea" directory that contained the following Idea artifacts:

- one .ipr file
- one .iws file
- two .iml files

However, again, I never got down to this directory to find the project file. I saw that the directory that contained the ".idea" directory was shown with the Idea Project icon, so I chose that. I'm sure that it showed as a project because that directory contained a pom file. To be clearer, the directory structure was like this:

X
-> .idea
---> .ipr, .iws, and .iml files
-> pom.xml
-> A
---> src
-


> main
-


> java...
---> pom.xml
-> B
---> src
-


> main
-


> java...
---> pom.xml
...
I have not tried to reproduce the problem since I created my own project files.

Edited by: Jim Babka on Apr 4, 2008 2:50 AM - changed spaces to dashes to make indenting clearer

0
Comment actions Permalink

A directory is highlighted as a IDEA's project when it contains .idea subfolder with project's files.
To import a maven project you have to explicitly selecr a pom and open it.

The message 'The project was imported with previous Maven Plugin version...' appears in case there are pom files under the project's root folder and there are no modules at all.

This problem shouldn't appear under normal conditions when you have at least one module in you project. If it does, could you attach your ipr, iml's and pom files with original layout?

0

Please sign in to leave a comment.