java - 在pom.xml中添加feed4j依赖

标签 java eclipse maven dependencies pom.xml

我无法在 pom.xml 中添加 feed4j.jar 的依赖项

enter image description here

当我选择 feed4j 的依赖项时,我得到 feed4junit,但不是 feed4j。

enter image description here

当我在 pom.xml 中添加依赖项时

<dependency>
    <groupId>feed4j</groupId>
    <artifactId>feed4j</artifactId>
    <version>1.0</version>
</dependency>

我收到错误

Missing artifact feed4j:feed4j:jar:1.0

因此,当我尝试 mvn clean install 时,出现错误

package it.sauronsoftware.feed4j does not exist

请提供任何帮助。

最佳答案

Feed4j 不在 Maven 中央存储库中。您有多种选择:

  1. 使用具有可用 feed4j Artifact 的 Maven 存储库。您可以设置自己的 Nexus 或 Artifactory。
  2. 将 jar 文件包含在您的项目中并使用 Maven 系统范围(有关如何使用它的示例,请参阅 this SO question)
  3. 在本地 Maven 存储库中手动安装依赖项。 Here这是一个如何做到这一点的简短教程。

关于java - 在pom.xml中添加feed4j依赖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29176915/

相关文章:

java - 每次我想运行时,我都必须(项目>清理)。怎么不呢?

android - 从 ListView 的 Eclipse 图形编辑器预览中删除 "Item x"

java - Spring MVC 项目 - 读取 CSV 文件 - HTTP 状态 500 - data.csv(访问被拒绝)

java - 如何将 Apache Felix 包含到 Maven 项目中以便以编程方式安装 bundle ?

java - 是否可以为 WAR(或 EAR)配置部署后行为?

java - JNI 从 native 代码调用 JVM 函数/事件?

java - JFrame 子级看不到父级部件

java - SelectorImpl 被阻塞

android - 如何在 android eclipse sdk 中预览 ~ 21 英寸设备的布局?

java - 严重 : Servlet/CourseGame threw load() exception java. lang.ArrayIndexOutOfBoundsException:56112