如何在没有Nexus/Artifactory/etc的情况下为Maven回购建立索引? [英] How to index a Maven repo without Nexus/Artifactory/etc?

查看:85
本文介绍了如何在没有Nexus/Artifactory/etc的情况下为Maven回购建立索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为一些开放源代码运行自己的Maven小仓库.我没有专用的服务器,因此我使用 Google代码存储库,部署到文件系统,然后提交并推送.对我来说很完美.

I run my own little Maven repo for some open source. I have no dedicated server so I use a Google code repository, deploy to file system and then commit and push. Works perfect for me.

但是一些Maven工具正在寻找nexus-maven-repository-index.properties和索引(在GZ中).我想生成该索引到

But some Maven tools are looking for a nexus-maven-repository-index.properties and the index (in GZ). I would like to generate this index to

  1. 摆脱警告,提醒您不在这里
  2. Maven不会尝试不存在的人工物品的回购.

我该怎么做?是否有能够生成索引的工具(Java主程序)?还欢迎提供如何使用带有少许命令行工具的Nexus Jars的提示.

How can I do that? Is there a tool (Java main) that is able to generate an index? Also tips how to use the proper Nexus Jars with a little commandline tool are welcome.

推荐答案

您可以使用Maven Indexer CLI直接生成索引,但是当OSS项目可以免费使用托管项目时,为什么还要麻烦托管您自己的存储库呢?

You can use the Maven Indexer CLI to product the index directly, but why bother hosting your own repo when OSS projects can use a hosted one for free?

http://nexus.sonatype.org/oss-repository-hosting.html

这篇关于如何在没有Nexus/Artifactory/etc的情况下为Maven回购建立索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆