maven dependency 'de.javakaffee:kryo-serializers:0.45' not found in Intellij Idea

I import a dependency in project using maven like this:

 <dependency>
     <groupId>de.javakaffee</groupId>
     <artifactId>kryo-serializers</artifactId>
     <version>0.45</version>
 </dependency>

But the project give this tip(file url:https://mvnrepository.com/artifact/de.javakaffee/kryo-serializers/0.45):

Dependency 'de.javakaffee:kryo-serializers:0.45' not found.

enter image description here

I already tried this:

mvn clean install -e -U

And reimoprt pom.xml.And I change to other jar,it works fine.Like this:

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>1.2.58</version>
</dependency>

This is my settings.xml config:

<repositories>
        <repository>
            <id>central</id>
            <name>central repository</name>
            <url>https://repo1.maven.org/maven2</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </snapshots>
        </repository>
          <repository>
            <id>snapshots</id>
            <name>Snapshots</name>
            <snapshots>
              <enabled>true</enabled>
              <updatePolicy>never</updatePolicy>
            <checksumPolicy>fail</checksumPolicy>
            </snapshots>
            <url>https://nexus.myrepo.com/repository/maven-snapshots/</url>
          </repository>
          <repository>
            <id>releases</id>
            <name>Releases</name>
            <snapshots>
              <enabled>false</enabled>
            </snapshots>
            <url>https://nexus.myrepo.com/repository/maven-releases/</url>
          </repository>  
        </repositories>

The question is:why a same repo , some jar import success,some failed?Where is going wrong?

Leave a Reply

avatar
  Subscribe  
Notify of