gpt4 book ai didi

java - 由于依赖项 xerces :xercesImpl:jar:2. 9.1,Grails 运行应用程序失败

转载 作者:行者123 更新时间:2023-12-01 17:56:47 28 4
gpt4 key购买 nike

我正在尝试在 grails 2.5.0 中编译一个项目。当我运行 grails run-app 时,我收到以下错误:

| Error Resolve error obtaining dependencies: Could not transfer artifact xerces:xercesImpl:jar:2.9.1 from/to mavenCentral (https://repo1.maven.org/maven2/): Range Not Satisfiable (416) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: Could not transfer artifact xerces:xercesImpl:jar:2.9.1 from/to mavenCentral (https://repo1.maven.org/maven2/): Range Not Satisfiable (416) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: Could not transfer artifact xerces:xercesImpl:jar:2.9.1 from/to mavenCentral (https://repo1.maven.org/maven2/): Range Not Satisfiable (416) (Use --stacktrace to see the full trace)
| Error Could not transfer artifact xerces:xercesImpl:jar:2.9.1 from/to mavenCentral (https://repo1.maven.org/maven2/): Range Not Satisfiable (416)
| Run 'grails dependency-report' for further information.

使用 --stacktrace 运行:

| Error Resolve error obtaining dependencies: Could not transfer artifact xerces:xercesImpl:jar:2.9.1 from/to mavenCentral (https://repo1.maven.org/maven2/): Range Not Satisfiable (416) (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
org.eclipse.aether.resolution.DependencyResolutionException: Could not transfer artifact xerces:xercesImpl:jar:2.9.1 from/to mavenCentral (https://repo1.maven.org/maven2/): Range Not Satisfiable (416)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
at grails.util.BuildSettings.doResolve(BuildSettings.groovy:514)
at grails.util.BuildSettings.doResolve(BuildSettings.groovy)
at grails.util.BuildSettings$_getDefaultTestDependencies_closure16.doCall(BuildSettings.groovy:588)
at grails.util.BuildSettings$_getDefaultTestDependencies_closure16.doCall(BuildSettings.groovy)
at grails.util.BuildSettings.getDefaultTestDependencies(BuildSettings.groovy:582)
at grails.util.BuildSettings.getTestDependencies(BuildSettings.groovy:563)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact xerces:xercesImpl:jar:2.9.1 from/to mavenCentral (https://repo1.maven.org/maven2/): Range Not Satisfiable (416)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
... 6 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact xerces:xercesImpl:jar:2.9.1 from/to mavenCentral (https://repo1.maven.org/maven2/): Range Not Satisfiable (416)
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
... 8 more
Caused by: org.apache.http.client.HttpResponseException: Range Not Satisfiable (416)
at org.eclipse.aether.transport.http.HttpTransporter.handleStatus(HttpTransporter.java:466)
at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:291)
at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:243)
at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:59)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
... 13 more

最佳答案

问题已解决。只需删除缓存文件 ~/.m2/repositories 即可正常运行。

关于java - 由于依赖项 xerces :xercesImpl:jar:2. 9.1,Grails 运行应用程序失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60699468/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com