Use Maven dependency with special characters in artifactId

Viewed 686

I want to add a Maven dependency that's hosted on the JitPack repository. The artifactId contains dots and, therefore, cannot be downloaded due to issues within JitPack's infrastructure.

The workaround is to replace . with ~. But Maven forbids the use of this kind of special character in valid patterns for artifactId.

It works in Gradle, though.

group 'org.example.project'
version '1.0-SNAPSHOT'

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    compile 'com.github.iotaledger:iota~lib~java:0.9.10'
}

Is there any workaround that allows me to use this library with Maven? E.g. downloading it to the local repository and changing its name, etc.?

0 Answers
Related