Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cling 2.2.1 not found in Maven Central #217

Open
smokracek opened this issue Jan 17, 2023 · 3 comments
Open

[BUG] Cling 2.2.1 not found in Maven Central #217

smokracek opened this issue Jan 17, 2023 · 3 comments
Labels

Comments

@smokracek
Copy link

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
@smokracek smokracek added the bug label Jan 17, 2023
@MingGH
Copy link

MingGH commented Feb 12, 2023

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
image

@manosKas
Copy link

i downgraded maven to 3.6.3

@pvishnyakov
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants