Maven integration : add maven dependency intention fails ...

on VCS read only files.

It should ask the configured VCS to checkout/write enable the pom rather that throwing

Cannot modify a read-only file 'C:\Documents and Settings\A6253567\sandboxes\DS2-all\esf-jhx-taglib-generator\pom.xml'.
com.intellij.util.IncorrectOperationException: Cannot modify a read-only file 'C:\Documents and Settings\A6253567\sandboxes\DS2-all\esf-jhx-taglib-generator\pom.xml'.
at com.intellij.psi.impl.CheckUtil.checkWritable(CheckUtil.java:17)
at com.intellij.psi.impl.source.tree.CompositePsiElement.addAfter(CompositePsiElement.java:25)
at com.intellij.util.xml.impl.DomInvocationHandler.a(DomInvocationHandler.java:17)
at com.intellij.util.xml.impl.DomInvocationHandler.addCollectionChild(DomInvocationHandler.java:185)
at com.intellij.util.xml.impl.AddChildInvocation.invoke(AddChildInvocation.java:2)
at com.intellij.util.xml.impl.DomInvocationHandler.a(DomInvocationHandler.java:279)
at com.intellij.util.xml.impl.DomInvocationHandler.invoke(DomInvocationHandler.java:169)
at org.jetbrains.idea.maven.dom.model.Dependencies$$EnhancerByCGLIB$$d98ad016.addDependency(]]>)
at org.jetbrains.idea.maven.project.MavenProjectModel.addDependency(MavenProjectModel.java:359)
at org.jetbrains.idea.maven.project.MavenProjectsTree.addDependency(MavenProjectsTree.java:468)
at org.jetbrains.idea.maven.project.MavenProjectsManager$13.run(MavenProjectsManager.java:375)
at com.intellij.openapi.application.RunResult.run(RunResult.java:38)
at com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:116)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:383)
at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:114)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:33)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:100)
at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:112)
at com.intellij.openapi.command.WriteCommandAction.access$000(WriteCommandAction.java:35)
at com.intellij.openapi.command.WriteCommandAction$1.run(WriteCommandAction.java:74)
at com.intellij.ui.GuiUtils.runOrInvokeAndWait(GuiUtils.java:370)
at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:72)
at org.jetbrains.idea.maven.project.MavenProjectsManager.addDependency(MavenProjectsManager.java:372)
at org.jetbrains.idea.maven.dom.intentions.DependencyQuickFix.invoke(DependencyQuickFix.java:56)
at com.intellij.codeInsight.intention.impl.IntentionHintComponent$6$1$1.run(IntentionHintComponent.java:3)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:2)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:100)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:52)
at com.intellij.codeInsight.intention.impl.IntentionHintComponent$6$1.run(IntentionHintComponent.java:2)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:27)
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:35)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:99)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

1 comment
Comment actions Permalink

Thanks, Thibaut,
This will be fixed in the bugfix update.

0

Please sign in to leave a comment.