Maven import shows "path must be canonical" error
Answered
Able to compile in terminal (mvn clean compile). But when I "Reimport", IntelliJ has issues with pig libraries that have dots in their version names. If I manually exclude pig in pom.xml then reimport works fine, so these libraries are causing some issue.
idea.log:
2017-03-01 22:08:18,447 [ 76978] ERROR - plication.impl.ApplicationImpl - path must be canonical but got: '/Users/aaronnagao/.m2/repository/org/apache/pig/pig/0.8.0..1011170004/pig-0.8.0..1011170004.jar!'
java.lang.IllegalArgumentException: path must be canonical but got: '/Users/aaronnagao/.m2/repository/org/apache/pig/pig/0.8.0..1011170004/pig-0.8.0..1011170004.jar!'
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$FsRoot.<init>(PersistentFSImpl.java:1256)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$FsRoot.<init>(PersistentFSImpl.java:1243)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.findRoot(PersistentFSImpl.java:877)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.findRoot(PersistentFSImpl.java:56)
at com.intellij.openapi.vfs.newvfs.VfsImplUtil.a(VfsImplUtil.java:159)
at com.intellij.openapi.vfs.newvfs.VfsImplUtil.findFileByPath(VfsImplUtil.java:58)
at com.intellij.openapi.vfs.impl.jar.JarFileSystemImpl.findFileByPath(JarFileSystemImpl.java:117)
at com.intellij.openapi.vfs.impl.VirtualFileManagerImpl.findFileByUrl(VirtualFileManagerImpl.java:140)
at com.intellij.openapi.vfs.impl.VirtualFilePointerManagerImpl.a(VirtualFilePointerManagerImpl.java:204)
at com.intellij.openapi.vfs.impl.VirtualFilePointerManagerImpl.create(VirtualFilePointerManagerImpl.java:143)
at com.intellij.openapi.vfs.impl.VirtualFilePointerContainerImpl.create(VirtualFilePointerContainerImpl.java:267)
at com.intellij.openapi.vfs.impl.VirtualFilePointerContainerImpl.add(VirtualFilePointerContainerImpl.java:130)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.addRoot(LibraryImpl.java:442)
at org.jetbrains.idea.maven.importing.MavenRootModelAdapter.updateUrl(MavenRootModelAdapter.java:405)
at org.jetbrains.idea.maven.importing.MavenRootModelAdapter.addLibraryDependency(MavenRootModelAdapter.java:345)
at org.jetbrains.idea.maven.importing.MavenModuleImporter.configDependencies(MavenModuleImporter.java:272)
at org.jetbrains.idea.maven.importing.MavenModuleImporter.config(MavenModuleImporter.java:97)
at org.jetbrains.idea.maven.importing.MavenProjectImporter.importModules(MavenProjectImporter.java:445)
at org.jetbrains.idea.maven.importing.MavenProjectImporter.importProject(MavenProjectImporter.java:114)
at org.jetbrains.idea.maven.project.MavenProjectsManager.lambda$importProjects$17(MavenProjectsManager.java:1172)
at org.jetbrains.idea.maven.project.MavenProjectsManager$10.run(MavenProjectsManager.java:1182)
at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:458)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2017-03-01 22:08:18,449 [ 76980] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 2016.3.5 Build #IU-163.13906.16
2017-03-01 22:08:18,449 [ 76980] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_112-release
2017-03-01 22:08:18,449 [ 76980] ERROR - plication.impl.ApplicationImpl - VM: OpenJDK 64-Bit Server VM
2017-03-01 22:08:18,449 [ 76980] ERROR - plication.impl.ApplicationImpl - Vendor: JetBrains s.r.o
2017-03-01 22:08:18,449 [ 76980] ERROR - plication.impl.ApplicationImpl - OS: Mac OS X
2017-03-01 22:08:18,449 [ 76980] ERROR - plication.impl.ApplicationImpl - Last Action: Maven.ReimportProject
Please sign in to leave a comment.
Hello,
I added comment to the related issue: https://youtrack.jetbrains.com/issue/IDEA-166756
Please start following it to receive automatic notifications from YouTrack when the issue is updated.
See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Thank you @Yaroslav Bedrov! I am following the issue and hope it is resolved soon--Apache Pig is a very common library that is affected by this bug