推荐在龙芯电脑上构建 Maven 项目时,使用 Maven 代理仓库:避免 龙芯 Maven 仓库无法下载等问题

反馈问题

邮箱:service@loongnix.cn

邮件标题: [Maven] 具体内容

防范措施

使用 Nexus 等软件代理 龙芯 Maven 依赖,防止 龙芯 Maven 仓库出现问题

问题 1

使用 Nexus 代理 龙芯 Maven 仓库时,下载依赖异常

2026-07-16 08:19:49,337+0000 WARN  [qtp1544229833-145] *UNKNOWN org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: GET /repository/maven-public/com/google/protobuf/protoc/3.25.5/protoc-3.25.5-linux-loongarch_64.exe
org.sonatype.nexus.blobstore.api.BlobStoreException: BlobId: tmp$3062597e-5333-410f-b199-aaaeee0ba80a, org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 26,531,560; received: 147,201), Cause: Premature end of Content-Length delimited message body (expected: 26,531,560; received: 147,201)
        ......
Caused by: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 26,531,560; received: 147,201)
        ......

问题 2

使用浏览器直接下载时,出现同样的问题,下载一部分后直接失败

iShot_2026-07-16_16.57.28

问题 3

服务宕机