1

这是我的第一个 StackOverflow 问题,我也是 12 年级的学生,如果这是一个愚蠢的问题,请道歉 - 如果是,请随时告诉我,但是,经过数小时的互联网搜索,我找不到一个答案。
这不是作业帮助。

背景

我目前正在 Netbeans 中编写一个处理大型 COVID 数据集的程序,并且我希望使用一些外部库来简化操作。我看过的是
https://github.com/jtablesaw/tablesawhttps://github.com/nRo/DataFrame
但是,我只使用过“Java with Ant”,这两个 GitHub 都只提到通过 pom.xml 文件中的 Maven 依赖项使用该库。我从来没有使用过 Maven,而且我对 Build Tools 也很陌生。当我被介绍给 Java 时,我的老师指导我将 Java 与 Ant 一起使用。在这种情况下,任何时候我在简单地将 .jar 文件添加到我的库文件夹并使用 import foo.bar;或使用库之前使用了外部import foo.*;库。

我的问题

有没有办法让我在不切换构建工具的情况下使用这些库中的任何一个?例如,下载源代码并以一种不太乏味的方式制作 .jar,以便我可以像以前一样使用这些库?或者,也许我错过了一些允许我以这种格式下载它们的东西?如果不是,我发现几乎每个 Github 库都指示我通过 Maven 依赖项使用它,我是否应该完全停止将 Java 与 Ant 一起使用并开始学习如何使用 Maven 编写程序?

非常感谢任何见解。如果已经回答了这个问题,请随时链接答案,很抱歉弄乱了论坛。谢谢。

4

1 回答 1

1

From one of the Maven websites you can download the libraries and use them as normal. First find the artifact page, for example using mvnrepository.com as shown below, or you could use the https://search.maven.org/:

Find the relevant page by searching for the artifact, then once there you can choose the version: enter image description here

Then click on "View all" to see the artifact jar files: enter image description here

Then lastly right-click the file you need and choose save: enter image description here

于 2021-05-25T23:22:18.253 回答