Maven - Could not find artifact in central

0

Cześć,

od godziny walę głową w mur i zastanawiam się czy to na pewno jest problem z moim lokalnym repozytorium czy coś pochrzanili w mavenie z zależnościami. W tamtym tygodniu działało ;)

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.kojotdev.test.rsocket</groupId>
    <artifactId>rsocket-test</artifactId>
    <version>1.0-SNAPSHOT</version>

    <dependencies>
        <!-- https://mvnrepository.com/artifact/io.rsocket/rsocket-core -->
        <dependency>
            <groupId>io.rsocket</groupId>
            <artifactId>rsocket-core</artifactId>
            <version>1.0.0-RC3</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/io.rsocket/rsocket-transport-netty -->
        <dependency>
            <groupId>io.rsocket</groupId>
            <artifactId>rsocket-transport-netty</artifactId>
            <version>1.0.0-RC3</version>
        </dependency>
    </dependencies>
</project>

Nie mogę pobrać tych paczek. Próbowałem ręcznie usuwać paczki w foldrze \.m2\repository\io\rsocket (używam Windowsa) oraz mvn clean install -U, ale dostaję takie błędy:

"C:\Program Files\Java\jdk-11\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\JDeveloper\mywork\java\rsocket-test "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.4\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.4\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.4\plugins\maven\lib\maven-event-listener.jar" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.4\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar" org.codehaus.classworlds.Launcher -Didea.version2019.2.2 clean install -U
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------< com.kojotdev.test.rsocket:rsocket-test >---------------
[INFO] Building rsocket-test 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/io/projectreactor/reactor-bom/Dysprosium-M3/reactor-bom-Dysprosium-M3.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.951 s
[INFO] Finished at: 2019-09-23T13:43:07+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project rsocket-test: Could not resolve dependencies for project com.kojotdev.test.rsocket:rsocket-test:jar:1.0-SNAPSHOT: Failed to collect dependencies at io.rsocket:rsocket-core:jar:1.0.0-RC3: Failed to read artifact descriptor for io.rsocket:rsocket-core:jar:1.0.0-RC3: Could not find artifact io.projectreactor:reactor-bom:pom:Dysprosium-M3 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Downloading from central: https://repo.maven.apache.org/maven2/io/projectreactor/reactor-bom/Dysprosium-M3/reactor-bom-Dysprosium-M3.pom
Failure to find io.projectreactor:reactor-bom:pom:Dysprosium-M3 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
Could not find artifact io.projectreactor:reactor-bom:pom:Dysprosium-M3 in central (https://repo.maven.apache.org/maven2)

Jeśli ktoś miałby chwilę, czy mógłby sprawdzić u siebie czy te zależności pobierają się i instalują bez problemu? I jeśli tak to gdzie u mnie leży problem?

0

Ostatnio miałem to samo i usunięcie całego repozytorium lokalnego pomogło. Spróbuj też, najwyżej zrób sobie kopię, albo po prostu zmień nazwę folderu repository ^_^

0

Zmieniłem nazwę folderu, zaciągnałem na nowo wszystkie paczki i klops, błąd nadal ten sam.

1

Bo tego artefaktu nie ma? Tak trudno sprawdzić:
https://search.maven.org/search?q=g:io.projectreactor%20AND%20a:reactor-bom&core=gav
Może z jakiegoś powodu ktoś dropnął ten artefakt, a może nigdy go tam nie było i trzeba jakieś inne repozytorium dorzucić?

0

Myślę, że ktoś dropnął, bo ten projekt w tamtym tygodniu mi działał bez problemu. W Springu nadal działa ok z

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-rsocket</artifactId>
		</dependency>

EDIT:
Ok działa, trzeba podpiać jeszcze spring milestone repository:

  <repositories>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/libs-milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

1 użytkowników online, w tym zalogowanych: 0, gości: 1