maxmind依赖

时间:2017-02-22 08:54:09

标签: maxmind jackson-databind

[错误]无法在项目xxx上执行目标:无法解析项目com.company:xxx:jar:1.0.0的依赖项:无法在com.maxmind.db收集依赖项:maxmind-db:jar:1.2 .1 - > com.fasterxml.jackson.core:jackson -databind:jar:2.9.0-SNAPSHOT:无法读取com.fasterxml.jackson.core的工件描述符:jackson-databind:jar:2.9.0-SNAPSHOT:找不到com .fasterxml:oss-parent:pom:https://repo.maven.apache.org/maven2中的28被缓存在本地存储库中,在中心的更新间隔过去或强制更新之前,不会重新尝试解析

3 个答案:

答案 0 :(得分:2)

通过从maxmind

中排除jackon依赖性来解决
function scrambleText(){
  var textArea = document.getElementById('TEXTAREA_ID');
  var lines = textArea.value.split('\n');

  for (var j = 0; j < lines.length; j++){ 
    var originalLine = lines[j];
    var words = lines[j].split(' ');
    for(var i = 0;i < words.length;i++){
       words[i] = '~' + scramble(words[i]).toUpperCase().split('').join(' ') + '~';
    }
    lines[j] = words.join('\n') + '|' + originalLine;
  }

  textArea.value = lines.join('\n');
}

答案 1 :(得分:2)

对于那些依赖geoip2 java api的人:

    <dependency>
        <groupId>com.maxmind.geoip2</groupId>
        <artifactId>geoip2</artifactId>
        <version>2.8.0</version>
        <exclusions>
            <exclusion>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

答案 2 :(得分:0)

这对那些依赖geoip2 java api的人来说很有用:

<dependency>
    <groupId>com.maxmind.geoip2</groupId>
    <artifactId>geoip2</artifactId>
    <version>2.8.0</version>
    <exclusions>
        <exclusion>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.8.6</version>
</dependency>