下载 ws4j 依赖项时 Maven 中缺少 pom 错误

Missing pom errror in maven while downloading ws4j dependency

我想在我的项目中使用 ws4j。而且我无法一直连接到互联网。所以,大多数时候我使用 dependency:get 命令将依赖项下载到本地存储库。然后我在项目中使用它。
就像我尝试下载 ws4j-1.0.1。但是我在下载时遇到错误。它说 Missing POM for edu.cmu.lti:ws4j:jar:1.0.1。但是存储库中有一个 pom 文件。见 url ws4j repository。但是为什么我得到错误。

我使用的命令是mvn dependency:get -Dartifact=edu.cmu.lti:ws4j:1.0.1

我得到的错误图片

我正在使用 maven 版本 3.6.3

拜托,有人帮忙解决这个问题。

mvn dependency:get -Dartifact=edu.cmu.lti:ws4j:1.0.1

这尝试从 https://repo.maven.apache.org/maven2/ 下载依赖项,但由于它在那里找不到依赖项,因此失败。 您需要指定“-DremoteRepositories”才能从远程存储库中获取它。

例如:mvn dependency:get -Dartifact=org.apache.maven:maven-core:2.2.1:jar:sources -DremoteRepositories=https://repo.maven.apache.org/maven2 -Ddest=/tmp/myfile.jar

请参考https://maven.apache.org/plugins/maven-dependency-plugin/usage.html