2

I'm trying to use this Maven dependency for a project https://mvnrepository.com/artifact/org.eclipse.ecf.protocol/bittorrent/0.3.0 I used the declaration in my pom.xml, when I update the project it could not resolve dependency from this https://repo.maven.apache.org/maven2/ URL.

Maven Error screenshot

So I looked up the page and there was no Bittorent jar there. Can anyone explain me why this jar is missing from the maven2 repo and how to resolve this error. I tried other answers but nothing works for this one.

Nandha
  • 192
  • 1
  • 2
  • 11

2 Answers2

2

There are other ways for an author to host their jars in their public website. But I'm not sure why dependency resolving error occurs in this repo, when I figure out I'll edit this answer to include it. Until then You can download the jar from files section of the repository page and include it in your class path to solve this issue for now.

here's the link to file

Nandha
  • 192
  • 1
  • 2
  • 11
  • 2
    This jar solution works for me. It would be more useful if the maven dependency resolves too. Thanks in advance. – Venkadesh S Sep 08 '22 at 07:53
1

This artifact is not hosted on the maven central repository (https://repo.maven.apache.org/maven2/), but rather on: https://www.jabylon.org/maven/

You can double-check this by navigating to: https://mvnrepository.com/artifact/org.eclipse.ecf.protocol/bittorrent

enter image description here


In your case, the solution is to add the repository to your pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project>
  <!-- ... -->
  <dependencies>
    <dependency>
      <groupId>org.eclipse.ecf.protocol</groupId>
      <artifactId>bittorrent</artifactId>
      <version>0.3.0</version>
    </dependency>
    <!-- ... -->
  </dependencies>

  <repositories>
    <repository>
      <id>Jabylon</id>
      <url>https://www.jabylon.org/maven/</url>
    </repository>
  </repositories>
</project>
Janez Kuhar
  • 3,705
  • 4
  • 22
  • 45
  • Thanks for the detailed explanation. May I know why they didn't add repository tag in the original pom.xml in mvn central, if it isn't the one hosting the jar? New users like me are going to copy paste to our pom.xml dependency section thinking that it'll work. – Nandha Sep 08 '22 at 08:49