如何 link 从 ebuild 到 maven 源 jar

How to link to maven source jar from an ebuild

我正在尝试为 gentoo 创建一个 ebuild。 ebuild 应该使用此字符串下载源代码

SRC_URI="http://search.maven.org/remotecontent?filepath=com/github/moaxcp/${PN}/${PN}/${PV}/${P}-sources.jar"

当我运行 ebuild url 被翻译成

http://search.maven.org/remotecontent?filepath=com/github/moaxcp/recMD5/recMD5/1.0.1/recMD5-1.0.1-sources.jar

link不正确,returns404.

在 Maven Central 中创建工件的标准是什么?link

Link直接到资源:

SRC_URI="https://repo1.maven.org/maven2/com/github/moaxcp/${PN}/${PV}/${P}-sources.jar"