bt
bt copied to clipboard
[BUG] Cling 2.2.1 not found in Maven Central
When resolving my Maven dependencies in IntelliJ, I receive the error:
Could not find artifact org.fourthline.cling:cling-core:pom:2.1.1 in central (https://repo.maven.apache.org/maven2)
This is my pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.smokracek</groupId>
<artifactId>SnapTorrent</artifactId>
<version>0.1.0</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.github.atomashpolskiy</groupId>
<artifactId>bt-core</artifactId>
<version>1.10</version>
</dependency>
<!-- for the sake of keeping the core with minimum number of 3-rd party
dependencies HTTP tracker support is shipped as a separate module;
you may omit this dependency if only UDP trackers are going to be used -->
<dependency>
<groupId>com.github.atomashpolskiy</groupId>
<artifactId>bt-http-tracker-client</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>com.github.atomashpolskiy</groupId>
<artifactId>bt-dht</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>com.github.atomashpolskiy</groupId>
<artifactId>bt-upnp</artifactId>
<version>1.10</version>
</dependency>
</dependencies>
</project>
- Device: Macbook Air 2019
- OS: MacOS Ventura
- Java version: Temurin 1.8
I encountered a problem similar to yours, but my IntelliJ is throw "Since Maven 3.8.1 http repositories are blocked." I removed the following configuration in the maven setting.xml
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
Additionally, you can manually download the dependencies from the maven repository, even if IntelliJ cannot find the dependencies.
https://mvnrepository.com/artifact/org.fourthline.cling/cling-core/2.1.1
i downgraded maven to 3.6.3
In Android it can be forced in the project's Gradle repositories (allprojects):
maven {
url 'http://4thline.org/m2'
allowInsecureProtocol = true
}
Is there anything like this in Maven projects?