Missing artifact error when adding a difference in pom

I am trying to add dependent sauce-connect-plugin to pom.xml file

<groupId>com.saucelabs.maven.plugin</groupId>
    <artifactId>sauce-connect-plugin</artifactId>
    <version>2.1.18</version>
</dependency>

      

But pom am file creation gets

 Missing artifact com.saucelabs:sauce-connect:jar:3.1.32

      

Also I mentioned the repository

<repositories>
        <repository>
            <id>saucelabs-repository</id>
            <url>https://repository-saucelabs.forge.cloudbees.com/release</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

      

is http://repository-saucelabs.forge.cloudbees.com/release/com/saucelabs/sauce-connect/3.1.32/

sauce-connect:jar:3.1.32

present in this URL Then why does it Missing artifact error

show? What happened to me.

When I directly add the following to the pom file and add the repository, I get the same error

 <dependency>
            <groupId>com.saucelabs</groupId>
            <artifactId>sauce-connect</artifactId>
            <version>3.1.32</version>
        </dependency>

      

+3


source to share


2 answers


You have used mismatched versions:

sauce-connect-plugin is presented in: http://repository-saucelabs.forge.cloudbees.com/release/com/saucelabs/sauce-connect-plugin/

which have only versions 1.0.11, 1.0.12, 1.0.13 and 1.0.14

. But you tried to download2.1.18

What you mentioned with the url http://repository-saucelabs.forge.cloudbees.com/release/com/saucelabs/sauce-connect/3.1.32/

will not show up for sauce-connect-plugin

. He will only representsauce-connect



So, you should try the following dependency:

<dependency>  
        <groupId>com.saucelabs.maven.plugin</groupId>
        <artifactId>sauce-connect-plugin</artifactId>
        <version>1.0.11</version><!-- 1.0.11, 1.0.12, 1.0.13 or 1.0.14 -->
 </dependency>

      

If you want exactly the version 2.1.18

, you need to upload the artifact to the location http://repository-saucelabs.forge.cloudbees.com

and try it out.

+5


source


You can find someone here who also uses this, try to compare your pom https://github.com/saucelabs/sauce-java/blob/master/sauce-connect-plugin/pom.xml



0


source







All Articles