【问题标题】:Dependency Resolution error依赖解析错误
【发布时间】:2018-08-17 23:43:52
【问题描述】:

我正在尝试使用 Kites SDK 将 JSON 文件转换为 Parquet 格式。

我有以下 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.project</groupId>
    <artifactId>JSONToParquet</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <dependencies>
        <dependency>
            <groupId>org.kitesdk</groupId>
            <artifactId>kite-data-core</artifactId>
            <version>1.1.0</version>
        </dependency>

        <dependency>
            <groupId>org.kitesdk</groupId>
            <artifactId>kite-morphlines-all</artifactId>
            <version>1.0.0</version> <!-- or whatever the latest version is -->
            <type>pom</type>
        </dependency>

        <!-- https://mvnrepository.com/artifact/ua_parser/ua-parser -->
        <dependency>
            <groupId>ua_parser</groupId>
            <artifactId>ua-parser</artifactId>
            <version>1.3.0</version>
            <type>pom</type>
        </dependency>

    </dependencies>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>


</project>

但是当我尝试构建我的项目时。我收到以下错误:

The POM for ua_parser:ua-parser:jar:1.3.0 is missing, no dependency information available
The POM for ua_parser:ua-parser:pom:1.3.0 is missing, no dependency information available

我无法理解此问题的根本原因。

【问题讨论】:

  • 如果没有完整的 pom 文件,其他人也很难猜到......
  • 您是否在使用代理?你能检查.m2文件夹是否有settings.xml吗?
  • 不,我不在代理后面。

标签: maven maven-2 maven-3 kite-sdk


【解决方案1】:

ua_parser 不能通过Maven central 获得,但可以通过wso2 repository 获得。通过添加

<repositories>
  <repository>
    <id>wso2</id>
    <url>http://dist.wso2.org/maven2/</url>
  </repository>
</repositories>

对于您的 pom,您可以访问 wso2 存储库中的工件。

【讨论】:

  • 非常感谢。
【解决方案2】:

或者你可以使用 maven central 中的com.github.ua-parser

<dependency>
    <groupId>com.github.ua-parser</groupId>
    <artifactId>uap-java</artifactId>
    <version>1.5.2</version>
</dependency>

来自https://mvnrepository.com/artifact/com.github.ua-parser/uap-java

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-07
    • 2020-11-29
    • 1970-01-01
    • 2021-10-16
    • 2021-03-24
    • 2014-11-02
    相关资源
    最近更新 更多