Appium maven dependency does not get imported | Appium Forum
V
Vikrant Madhukar Chaudhari Posted on 28/03/2020

I am trying to use https://mvnrepository.com/artifact/io.appium/java-client and import below dependency to my project

<!-- https://mvnrepository.com/artifact/io.appium/java-client -->
<dependency>
    <groupId>io.appium</groupId>
    <artifactId>java-client</artifactId>
    <version>7.3.0</version>
</dependency>


However, I am getting below error

Failed to read artifact descriptor for io.appium:java-client:jar:7.1.3 org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for io.appium:java-client:jar:7.1.3 at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:255) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171) at org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:530)
........
........
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer io.appium:java-client:pom:7.1.3 from https://dps-nexus.service.nhsbsa:8443/repository/maven-public was cached in the local repository, resolution will not be reattempted until the update interval of aws-nexus-maven-public has elapsed or updates are forced. Original error: Could not transfer artifact io.appium:java-client:pom:7.1.3 from/to aws-nexus-maven-public (https://dps-nexus.service.nhsbsa:8443/repository/maven-public): dps-nexus.service.nhsbsa at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:423) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:225) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:202) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240) ........
........
Missing artifact io.appium:java-client:jar:7.1.3 pom.xml /AppiumDemo line 1 Maven Dependency Problem The container 'Maven Dependencies' references non existing library 'C:\Users\Sweet.m2\repository\io\appium\java-client\7.1.3\java-client-7.1.3.jar' AppiumDemo Build path Build Path Problem

It seems that it is not able to download the jars from maven repository.

pom.xml is as below:

<?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.mode</groupId>
    <artifactId>AppiumDemo</artifactId>
    <version>1.0-SNAPSHOT</version>
    <dependencies>

        <dependency>
            <groupId>io.appium</groupId>
            <artifactId>java-client</artifactId>
            <version>7.1.3</version>
        </dependency>

     </dependencies>

</project>

I am using the Maven version 3.6.1
I also did the force update to my project but no luck.
Any idea how to resolve it?


A
Ashish Thakur Replied on 29/03/2020

Please try again

Sometimes repository is down


V
Vikrant Madhukar Chaudhari Replied on 31/03/2020

Hello,

I am still getting the same issue. Can you try at your end and let me know? If you have already imported the jars for 7.1.3 then you can rename the folder named 7.1.3 in "C:\Users\your_user_name\.m2\repository\io\appium\java-client\" and try to re-import. This is just to make sure that if you are also facing the same issue then you should not lose your 7.1.3 jars