RMLio / rmlmapper-java

The RMLMapper executes RML rules to generate high quality Linked Data from multiple originally (semi-)structured data sources
http://rml.io
MIT License
147 stars 61 forks source link

Unable to resolve rmlmapper dependency in Maven Central #120

Closed IanEmmons closed 3 years ago

IanEmmons commented 3 years ago

My Java project's Gradle build script looks like so:

plugins {
    id 'java-library'
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'be.ugent.rml:rmlmapper:4.10.0'
}

When I try to build, I get the following error:

% ./gradlew build
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.github.rdfhdt:hdt-java:v2.1.2.
     Searched in the following locations:
       - https://jcenter.bintray.com/com/github/rdfhdt/hdt-java/v2.1.2/hdt-java-v2.1.2.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project : > be.ugent.rml:rmlmapper:4.10.0
   > Could not find com.github.fnoio:grel-functions-java:v0.6.1.
     Searched in the following locations:
       - https://jcenter.bintray.com/com/github/fnoio/grel-functions-java/v0.6.1/grel-functions-java-v0.6.1.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project : > be.ugent.rml:rmlmapper:4.10.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
1 actionable task: 1 executed

Do I need to specify another dependency repository to resolve these two missing dependencies?

bjdmeest commented 3 years ago

Could you try it with the two repositories also used by the RMLMapper pom itself?

    <repositories>
        <repository>
            <id>repo.maven.apache.org</id>
            <url>https://repo.maven.apache.org/maven2/</url>
        </repository>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
IanEmmons commented 3 years ago

This work-around does indeed work, so I'm going to close the issue. However, in the future, it would make rmlmapper much easier to use if all its dependencies were accessible in Maven Central. (BTW, the first of the two URLs you give above is Maven Central.)