#7821 - Maven import not possible anymore, can't find any projects
I tried #7821 with a project I have in use in 7.0.3.
Clicking on the "Maven"-Tab tells me to re-import the project, nothing else visible there.
When saying "New Project" and trying to import as Maven model, 7821 doesn't find any Maven projects and I can't continue. Nothing to be found in log file.
All I can say is that it's a multi module Maven project with a parent POM and it worked in 7.0.3 and is now broken.
Is this a known bug or do you need further information? If so, how can I help?
Edited by: Tobias on May 14, 2008 12:47 PM
Please sign in to leave a comment.
I had this same problem and another one, on May 12th. I had imported a maven project with 7.0.3.
I pressed 'synchronize with the maven', and IntelliJ ran out of Heap memory (256MB heap) EOM. After 30 minutes
of synchronizing I killed IntelliJ. Here is a small log sample, it goes on for many,many MegaBytes:
I increased my heap to 512MB then started up 7.0.3 again.
Then when I tried to synchronize to the maven project it complained about a missing jar file ?!?
I figured something had gotten corrupted from the the OOM or me killing IntelliJ.
Then upgraded to #7821 because of all the Maven bug fixes.
When I Started up #7821 and opened the intelliJ project I pressed 'synchronize with the maven', and I was told that there
was no maven project. I was also unable to reimport the maven project over top of the existing project.
I was again told that there was a missing jar file ?!?
I performed a clean checkout of the source code from subversion and then maven import then worked !
Our maven project is both an aggregate and parent setup.
I also looked in the log file, unfortunately I had the XSLT debugger plugin installed(also had it with 7.0.3) and its logger output is very verbose
even when it isn't begin used. So I couldn't see any obvious errors from Build #7821.
-Rob
Same problem here.
With build 7757 my project works as expected. When I open the Maven window they all show up and I can run tasks, synchronize the iml files, etc.
In 7821 the Maven window says "Not a Maven project., If the project was imported with a previous Maven plugin please reimport it".
I claim that Maven 2 integration is basically broken in 7821. I've wiped out my IDEA cache and settings and all ipr, iml, iws files and tried to create a project over an existing maven structure from scratch and receive only errors.
I've tried to get more immediate support but haven't heard anything back yet other than the issue was forwarded to developers. This included my pom.xml and a step-by-step using the now-broken wizard.
If you are using Maven integration I strongly suggest jumping back to 7757 (aka 7.0.3). That is the advice from Serge Baranov who I've been working with.
I got a similar message. I closed the project and opened the pom file and it rebuilt the project files for me. I did not have any problems after that.
Apparently, the bug only occurs under certain circumstances. My guess is that it has something to do with the structure of the Maven project (multi module, parent poms, something else in the poms, ...).
Of course this is just a guess, because IDEA doesn't tell us anything about what is wrong. And then, probably there are several things broken: Rob at least got a stack trace in the log file, in my case IDEA just tells me that it didn't find any Maven projects and the log file shows nothing at all.
Is there any way to get IDEA to write more detail about what it's doing or trying to do in the log file?
If I can somehow help to sort out these new issues, let me know. Currently, the Maven integration into 7.0.4 looks severely broken.
The message "Not a Maven project..." is shown because in the new version format of iprs for maven project has been changed.
After re-import from scratch all should works fine.
If there is any problem occurs after reimport, please let me know.
As I wrote above, I can't re-import the project from scratch: after scanning the specified root directory, IDEA presents an empty list of Maven projects. Of course when I click 'Next' I get an error message saying "Nothing found to import".
Same project worked (and still works) with 7.0.3, so apparently something is broken (the project structure and the poms didn't change).
Does it work with Open Project?
I just tried it and yes, when I select the "main" pom with "Open Project", it works.
With "main" pom, I mean the pom where all the Maven modules are referenced in our multi-module project.
Of course I lose all the project and Maven settings I made before that way, like placement of the .iml files, run configurations, compiler settings, code style, ...
Oh... This is a problem. That apparently was a bad idea.
OK, I'll have a look and try to fix it.
Thanks
Just filed
http://www.jetbrains.net/jira/browse/IDEA-18100
When I tried to open that project that I imported yesterday using #7821 with #7821
I received an exception ! I am dead in the water.
Rolling back to 7.0.3 or previous EA version.
-Rob Leland