We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
Maven 确实提供基于远程存储库的依赖管理(就像可浏览的中央存储库),可搜索。
Maven Ant 任务 (已退休) 使用 Maven 的存储库来为 Ant 构建提供依赖管理等。
Ant Ivy 是 Maven Ant 任务的另一种替代方案。
MOP 是另一个利用 Maven 存储库和依赖项的命令行工具。
Maven does provide dependency management based on remote repositories (like the central repo) that are browsable, searchable.
Maven Ant Tasks (retired) use Maven's repositories to provide dependency management and more to Ant builds.
Ant Ivy is another alternative to Maven Ant Tasks.
MOP is another command line tool that leverages Maven's repository and dependencies.
编辑2017-04-27:我对jpm4j缺乏前进动力以及缺乏以社区为中心的开发感到失望。所以我发明了一个名为 jrun 的新工具。我邀请大家都来看看。它的范围比 Python 的
pip
等工具更窄,但它确实允许您以易于使用的方式从远程 Maven 存储库执行 Java 代码。查看 JPM4J。这是 Peter Kriens(BND 名人)的一个项目。他去年首次提出,截至目前这篇文章已经写了几个月了,看起来相当令人印象深刻。
它的灵感来自 Node 的 npm,与该工具一样,安装也很简单:
OS X:
Linux:
当然,Windows 也有一个点击式安装程序。
然后,您可以像其他命令行包管理器工具一样安装东西。例如:
install命令操作Maven坐标。基本上,JAR 只需要在其清单中包含一个
JPM-Command
条目,并且jpm
知道如何将其主类公开为命令行可执行文件。就我个人而言,我真的很希望看到 Java 社区支持这样的努力。一个真正可靠的 Java 包管理器早就应该出现了!
Edit 2017-04-27: I have been disappointed by the lack of forward momentum for jpm4j, and the lack of community-centric development. So I invented a new tool called jrun. I invite everyone to check it out. It has a narrower scope than tools like Python's
pip
, but it does let you execute Java code from remote Maven repositories in an easy-to-use manner.Check out JPM4J. It is a project by Peter Kriens (of BND fame). He first proposed it last year, and as of this writing it has been around for a few months and is looking pretty impressive.
It was inspired by Node's npm, and like that tool, installation is a cinch:
OS X:
Linux:
And Windows has a clicky installer, of course.
Then you install stuff similarly to other command-line package manager tools. E.g.:
The install command operates Maven coordinates. Basically, the JAR just needs a
JPM-Command
entry in its manifest, andjpm
knows how to expose its main class as a command-line executable.Personally I would really love to see the Java community get behind an effort like this. A really solid Java package manager is years overdue!
来自 Apache 的 Ivy 是我所知道的最接近的东西。
Ivy from Apache is the closest thing I know of.