can not find maven dependencies
Answered
Using 2018.1 Ultimate, I am simply trying to add the tika-parsers dependency to my java project.
Trying project settings -> Libraries, From Maven, I have tried searching everything I can think of, but the apache jars do not appear in the search-results-list for download.
I do not remember having any issues with previous versions of JIdea finding my requested Maven dependencies. Are there any known issues with the latest JIdea version?
Leveraging Maven dependencies from the public repos is a significant feature that does not seem to be working.
Does anyone have any ideas why this might be an issue?
Thanks,
AJ
Please sign in to leave a comment.
Hello,
There is one probably related issue: https://youtrack.jetbrains.com/issue/IDEA-143582. But on my machine it find "tika" without issues. Could you please share idea.log ("Help | Show log in...") after restarting IDE and performing search? Does it find other libraries?
I submitted the log to a support ticket. I am honestly not sure what is included in that log, so I'm reluctant to share it with "the world". However, I did see the following entry with just a quick glance at the log...
2018-04-18 16:37:10,637 [ 118672] INFO - MavenRepositoryServicesManager - java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/intellij/jarRepository/RemoteRepositoryDescription.<init> must not be null
java.io.IOException: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/intellij/jarRepository/RemoteRepositoryDescription.<init> must not be null
at com.intellij.jarRepository.services.artifactory.ArtifactoryRepositoryService.getRepositories(ArtifactoryRepositoryService.java:62)
at com.intellij.jarRepository.services.MavenRepositoryServicesManager.getRepositories(MavenRepositoryServicesManager.java:93)
at com.intellij.jarRepository.JarRepositoryManager$2.run(JarRepositoryManager.java:311)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:750)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:395)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
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)
Caused by: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/intellij/jarRepository/RemoteRepositoryDescription.<init> must not be null
at com.intellij.jarRepository.RemoteRepositoryDescription.$$$reportNull$$$0(RemoteRepositoryDescription.java)
at com.intellij.jarRepository.RemoteRepositoryDescription.<init>(RemoteRepositoryDescription.java)
at com.intellij.jarRepository.services.artifactory.ArtifactoryRepositoryService.convert(ArtifactoryRepositoryService.java:67)
at com.intellij.jarRepository.services.artifactory.ArtifactoryRepositoryService.getRepositories(ArtifactoryRepositoryService.java:54)
... 15 more
2018-04-18 16:37:11,557 [ 119592] INFO - MavenRepositoryServicesManager - Connection reset
java.net.SocketException: Connection reset
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1926)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1921)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1920)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1490)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at org.jvnet.ws.wadl.util.JAXBDispatcher.doGET(JAXBDispatcher.java:77)
at com.intellij.jarRepository.services.nexus.Endpoint$DataIndex.getArtifactlistAsSearchResults(Endpoint.java:115)
at com.intellij.jarRepository.services.nexus.NexusRepositoryService.findArtifacts(NexusRepositoryService.java:98)
at com.intellij.jarRepository.services.MavenRepositoryServicesManager.findArtifacts(MavenRepositoryServicesManager.java:107)
at com.intellij.jarRepository.JarRepositoryManager$2.run(JarRepositoryManager.java:309)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:750)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:395)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
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)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.read(InputRecord.java:503)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:675)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2982)
at java.net.URLConnection.getContentType(URLConnection.java:512)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentType(HttpsURLConnectionImpl.java:406)
at org.jvnet.ws.wadl.util.JAXBDispatcher.doGET(JAXBDispatcher.java:76)
... 17 more
Could you please provide ticket ID with log? Do you use proxy in your network?
1343217
No proxy.
According to log issue is more related to https://youtrack.jetbrains.com/issue/IDEA-179857. Seems this error hides some results.
As a workaround please use this string for search "org.apache.tika"
That search comes close, however, it does not show any of the more recent builds. If I use this link, I see all the latest (v1.17), but they are not returned in the search results within JIdea:
https://search.maven.org/#search%7Cga%7C1%7Corg.apache.tika
Please follow the issue on YouTrack. We'll try to fix it as soon as possible.