如何在不使用 Maven 的情况下检索 struts2-junit-plugin?

How do I retrieve the struts2-junit-plugin without using Maven?

我用谷歌搜索了一下,看到很多不同的网站都提供了 struts2-junit-plugin。

我目前正在使用 struts-2.2.1.1。我也应该得到 struts2-junit-plugin-2.2.1.1 吗?

另外,我的项目没有使用 Maven。当我下载一个 struts2-junit-plugin 时,我检查了 .jar 文件并找到了一个 pom.xml 包含它的所有依赖项。由于我不使用 Maven,是否应该单独手动下载所有这些依赖项?

  1. 是的,您应该使用匹配的 junit-plugin 版本 (2.2.1.1)
  2. 是的,但是你需要加载依赖项的依赖项,依赖项的依赖项的依赖项令人作呕,直到你最后。

第 2 点是您 真正 应该使用 Maven 或类似机制的原因。

手动获取依赖项容易出错、乏味且愚蠢。