简体   繁体   中英

Dependency Resolution error

I am trying to convert JSON file to Parquet format using Kites SDK.

I have the following 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>

But When I try to Build my project. I am getting the following error :

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

I am not able to understand the root cause of this issue.

ua_parser is not available via Maven central , but via the wso2 repository . By adding

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

to your pom, you are able to access the artifacts in the wso2 repository.

Or you can use com.github.ua-parser which is present in maven central

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM