0

I am trying to add a dependency to my pom.xml and facing an issue: IntelliJ error

Cannot resolve jfugue:jfugue:5.0.9

The dependency I like to add is this one below from https://mvnrepository.com/artifact/jfugue/jfugue/5.0.9

<!-- https://mvnrepository.com/artifact/jfugue/jfugue -->
<dependency>
    <groupId>jfugue</groupId>
    <artifactId>jfugue</artifactId>
    <version>5.0.9</version>
</dependency>

I have no problems adding other dependencies just by adding the xml-snippet from maven into my pom and refresh or reload all maven projects. For example I have this dependency in the same pom which is working fine:

<!-- https://mvnrepository.com/artifact/org.jsoup/jsoup -->
<dependency>
    <groupId>org.jsoup</groupId>
    <artifactId>jsoup</artifactId>
    <version>1.14.3</version>
</dependency>

However, there is a note under the snippet which one can copy-paste, https://mvnrepository.com/artifact/jfugue/jfugue/5.0.9

Note: this artifact is located at SingGroup repository (https://maven.sing-group.org/repository/maven/)

What do I need to add to the pom so that I can use that dependency in my Project and get rid of the error?

Cannot resolve jfugue:jfugue:5.0.9

Thanks in advance.

Raju Ahmed
  • 1,282
  • 5
  • 15
  • 24
wannaBeDev
  • 516
  • 3
  • 14
  • 1
    You need to let maven know, how it can find the artifact. Since it needs to search the SingGroup repository, you need to add that repository information to your pom as well. Check this out: https://maven.apache.org/guides/mini/guide-multiple-repositories.html – Ankush Oct 21 '21 at 17:09

2 Answers2

5

You can add the repository to your settings.xml Maven Guide

<profiles>
    <profile>
        <id>multi-repo</id>
        <repositories>
            <repository>
                <id>MavenCentral</id>
                <url>https://repo.maven.apache.org/maven2/</url>
            </repository>
            <repository>
                <id>MavenSing</id>
                <url>https://maven.sing-group.org/repository/maven//</url>
            </repository>
        </repositories>
     </profile>
 </profiles>
Aris
  • 984
  • 8
  • 22
PavlMits
  • 523
  • 2
  • 14
1

This Lib is no longer on the Maven repo. I get same result when adding the dependency to my project's POM file. You can get the JAR file from this URL and then include it into your project's class path:

http://www.jfugue.org/download.html

smac2020
  • 9,637
  • 4
  • 24
  • 38