我无法找到适当的答案,以确定以下错误的含义:
java.net.SocketException: Software caused connection abort: recv failed
笔记:
相关代码:
BufferedReader reader;
try {
URL url = new URL(URI);
reader = new BufferedReader(new InputStreamReader(url.openStream())));
} catch( MalformedURLException e ) {
throw new IOException("Expecting a well-formed URL: " + e);
}//end try: Have a stream
String buffer;
StringBuilder result = new StringBuilder();
while( null != (buffer = reader.readLine()) ) {
result.append(buffer);
}//end while: Got the contents.
reader.close();
Run Code Online (Sandbox Code Playgroud) 有没有办法将pom.xml文件中的依赖项下载到java中的指定文件夹?我能够从java运行maven命令,我得到了下载消息,但我不知道maven在哪里存储这些库?如何将这些依赖项下载到特定文件夹?
我的项目P依赖于依赖关系A依赖于依赖关系B.我的项目的pom.xml文件包含A作为依赖项,其jar包含在P的类路径中.然而,NoClassDefFoundError
在P的运行时抛出,这源于缺少B罐.
Maven是否应该自动下载这些依赖项?