IDEA 9 and maven integration failures

Since the final release, i have issues with some maven projects.

When building i get make error messages saying "Error : error reading $pomfile path$; error in opening zip file".

Looking in idea.log shows this exception, which may be related.

2009-12-16 10:45:13,877 [64922696]   INFO -      #org.jetbrains.idea.maven -  
java.io.IOException
 at org.jetbrains.idea.maven.project.MavenProjectsTree.read(MavenProjectsTree.java:89)
 at org.jetbrains.idea.maven.project.MavenProjectsManager.initProjectsTree(MavenProjectsManager.java:190)
 at org.jetbrains.idea.maven.project.MavenProjectsManager.doInit(MavenProjectsManager.java:168)
 at org.jetbrains.idea.maven.project.MavenProjectsManager.initMavenized(MavenProjectsManager.java:151)
 at org.jetbrains.idea.maven.project.MavenProjectsManager.access$100(MavenProjectsManager.java:64)
 at org.jetbrains.idea.maven.project.MavenProjectsManager$1.run(MavenProjectsManager.java:145)
 at com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:175)
 at com.intellij.ide.startup.impl.StartupManagerImpl.access$100(StartupManagerImpl.java:39)
 at com.intellij.ide.startup.impl.StartupManagerImpl$1.run(StartupManagerImpl.java:108)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:691)
 at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivities(StartupManagerImpl.java:99)
 at com.intellij.openapi.project.impl.ProjectManagerImpl$4.run(ProjectManagerImpl.java:380)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$3.run(ProgressManagerImpl.java:244)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:422)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:255)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:197)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:222)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:188)
 at com.intellij.openapi.application.impl.ApplicationImpl$6$1.run(ApplicationImpl.java:486)
 at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:328)
 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:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:124)
Caused by: java.io.InvalidClassException: org.jetbrains.idea.maven.project.MavenProject$State; local class incompatible: stream classdesc serialVersionUID = -6361080737914791411, local class serialVersionUID = -7564853889383356021
 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
 at org.jetbrains.idea.maven.project.MavenProject.read(MavenProject.java:59)
 at org.jetbrains.idea.maven.project.MavenProjectsTree.readProjectsRecursively(MavenProjectsTree.java:115)
 at org.jetbrains.idea.maven.project.MavenProjectsTree.read(MavenProjectsTree.java:86)
 ... 26 more



Is there some cache of Maven project's state somewhere in IDEA system dir ? should I have cleaned up my EAP .idea folder ?
3 comments
Comment actions Permalink

just tried going back to 92.91 : doesn't work any better

This is pretty much a blocking issue here, it means I can't compile in IDEA anymore, nor run test.

The make process also reports a lot of errors "cannot find symbol class" on classes that are generated by maven (and currently present and in source path : the editor doesn't show any red).

0
Comment actions Permalink

Try running maven on the command line in your project.  What I noticed is that when running in IDEA, it won't download the jar files properly.  Once I run maven on the command line, then IDEA is able to spot the jar files in the ~/.m2/repository and use them.

0
Comment actions Permalink

Yes I've noticed this too, but it's not the issue here

0

Please sign in to leave a comment.