Apache Archiva 的工件的最新版本
archiva 上是否有某种参数化的 url,我可以在其中获取工件的最新快照/版本? 喜欢某事 https://myhappyarchiva.com/archiva /repository/com.example/com/example/myproject/LATEST/myproject-LATEST.jar
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试类似的方法:
“http://myhappyarchiva.com/archiva/restServices/archivaServices/searchService/artifact?r=#releases&g=com.myhappyarchiva&a=myproject&v=LATEST”
基础知识是:
“http://[host_name]/archiva/restServices/archivaServices/searchService/artifact?r=[release_option]&g=[group_id]&a=[artifact_id]&v=[版本] &c=[classifer]"
标签显示在 archive 上的表格中。这样您就可以轻松查找参考文献。
我相信你也可以使用“p”来包装。它可以像:“jar”,“pom”,“javadoc”基本文件类型。所以看起来像,
“&p=jar”添加到请求中。
如果您遵循请求,它有时会在存储库开始下载之前经历 307 临时重定向和 302 发现重定向。
您可以使用curl 或wget 来完成此操作。或者在脚本中(我制作了一个 ruby 脚本)。
wget 的示例:
https://archiva.apache.org/docs/2.2.0 /userguide/querying-artifacts.html
Try something like:
"http://myhappyarchiva.com/archiva/restServices/archivaServices/searchService/artifact?r=#releases&g=com.myhappyarchiva&a=myproject&v=LATEST"
The basics are:
"http://[host_name]/archiva/restServices/archivaServices/searchService/artifact?r=[release_option]&g=[group_id]&a=[artifact_id]&v=[version]&c=[classifer]"
The labels are displayed in the tables on archiva. So you can easily look up the references.
I believe you can use "p" to be packaging as well. It can be like: "jar","pom","javadoc" basically file types. So that would look like,
"&p=jar" added onto the request.
It you are following the requests it sometimes goes through a 307 temporary redirect and 302 found redirect before the repo starts to download.
You do this with curl or wget. Or in a script (I made a ruby script).
Example of wget:
https://archiva.apache.org/docs/2.2.0/userguide/querying-artifacts.html
该功能尚不可用,但是您可能想在 http://jira.codehaus.org 提交问题/浏览/MRM。相关问题是 http://jira.codehaus.org/browse/MRM-805 。
今天要实现这一目标,最好的办法是:
或
元素That feature is not yet available, however you might like to file an issue at http://jira.codehaus.org/browse/MRM. A related issue is http://jira.codehaus.org/browse/MRM-805.
To achieve this today, the best thing to do is either:
<release>
or<latest>
element