1

I cannot add a dependency in pom.xml for feed4j.jar

enter image description here

When I select a dependency for feed4j I get feed4junit but not the feed4j.

enter image description here

When I add a dependency in pom.xml

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

I get an error

Missing artifact feed4j:feed4j:jar:1.0

As a result when I try mvn clean install I get an error

package it.sauronsoftware.feed4j does not exist

Any help please.

jimakos17
  • 905
  • 4
  • 14
  • 33

2 Answers2

0

Feed4j is not in the Maven central repository. You have several options:

  1. Use a Maven repository which has the feed4j artifact available. You can set up your own Nexus or Artifactory.
  2. Include the jar file in your project and use the maven system scope (see this SO question for an example how to use it)
  3. Install the dependency manually in your local Maven repository. Here is a short tutorial how to do that.
Community
  • 1
  • 1
Dominik Obermaier
  • 5,610
  • 4
  • 34
  • 45
  • Dominik what I'm trying to achieve is to push my app to heroku. I tried C:\Users\Alex\.m2\repository\feed4j.jar and worked fine locally but got an error when I tried to push. I also tried ${JAVA_HOME}/lib/feed4j.jar and got an error in pom.xml Missing artifact feed4j:feed4j:jar:1.0 – jimakos17 Mar 21 '15 at 02:10
  • same error with ${basedir}/target/feed4j.jar – jimakos17 Mar 21 '15 at 02:44
  • In this case you should create your own Maven Repository. Take a look at this thread for your options: http://stackoverflow.com/questions/13095589/any-saas-solution-to-host-a-private-maven-repository – Dominik Obermaier Mar 21 '15 at 16:28
0

Eventually, i found the answer here but feed4j is not included in the repository.jboss that's why I used the pentaho-releases.

jimakos17
  • 905
  • 4
  • 14
  • 33