Jenkins maven build test failure for Sikuli dependency with Selenium - selenium

I have created Maven project in eclipse with Selenium & TestNG to create automation test scripts which I want to execute from Jenkins.
I am getting below error while building it.
Failed to collect dependencies at com.sikulix:sikulixapi:jar:1.1.0 -> jxgrabkey:jxgrabkey:jar:1.0: Failed to read artifact descriptor for jxgrabkey:jxgrabkey:jar:1.0: Could not transfer artifact jxgrabkey:jxgrabkey:pom:1.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [uni-due.de (http://mvn.is.inf.uni-due.de:8081/nexus/content/repositories/atunes-dependencies/, default, releases)]
I have given this test -Dbrowser="Chrome" in goals and options
Please do the helpful.
I'm using this dependency:
<dependency>
<groupId>com.sikulix</groupId
<artifactId>sikulixapi</artifactId>
<version>1.1.0</version>
</dependency>

You can try with the latest Maven Sikuli dependency:
<!-- https://mvnrepository.com/artifact/org.sikuli/sikuli-api -->
<dependency>
<groupId>org.sikuli</groupId>
<artifactId>sikuli-api</artifactId>
<version>1.2.0</version>
</dependency>

Related

What am I doing wrong? I am trying to add selenium dependencies to Intellij and I keep getting errors

POM file:
I am trying to add selenium dependencies, but I keep getting errors. I am new to selenium so I am trying to get it setup. Reloading the project didnt help, nor did cleaning up the artifacts. Below is an image of the pom file and the error I am receiving.
Cannot resolve org.seleniumhq.selenium:selenium-java:4.1.1
First of all, you can try newest version:
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.1.1</version>
</dependency>
Try:
clean maven project
reload maven project
Invalidate Cache & Restart InteliiJ IDEA

JUnit on IntelliJ not working

I tried setting up JUnit 5 on my INtelliJ IDEA Community Edition 2018.2. The jar was downloaded but I am getting Cannot resolve symbol Assertions on importing
import static org.junit.jupiter.api.Assertions.*;
Error
Are you trying to use the JUnit assertions in a regular app class rather than a test class?
Delete <scope>test</scope>
When a Maven dependency carries a scope element with a value of test, that means you cannot use that library outside of your test-specific source package/folder.
If you are trying to call JUnit from code in your example project’s src/main/java/… folder hierarchy, you will see that error. If you call JUnit from src/test/java…, you will see success.
To enable JUnit in the src/main/java/… folder hierarchy, delete the scope element in your POM dependency. So this:
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.4.0-RC1</version>
<scope>test</scope>
</dependency>
…becomes this:
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.4.0-RC1</version>
</dependency>
By the way, note that as of 5.4.0 of JUnit, we can specify the new and very convenient single Maven artifact of junit-jupiter which in turn will supply 8 libraries to your project.

I am trying to setup selenium with maven but am getting this error when declaring driver

I am trying to set up a selenium project with the maven build tool.
I have defined the dependencies but am still getting this error in the script.
Your screenshot suggests that you don't have org.openqa.selenium. As this is part of Selenium Java, you will need to include this dependency in your pom file:
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.11.0</version>
</dependency>
https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java/3.11.0

Adding flink hbase connector dependency

I am trying to connect with Hbase and Druid from flink. I have added following dependency in intellij.
https://mvnrepository.com/artifact/org.apache.flink/flink-hbase_2.10
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-hbase_2.10</artifactId>
<version>1.3.2</version>
</dependency>
and https://github.com/druid-io/tranquility. Seems maven central has only version 0.8.2 rather than 0.9.
<dependency>
<groupId>io.druid</groupId>
<artifactId>tranquility-flink_2.11</artifactId>
<version>0.9.0</version>
</dependency>
But intellij is saying dependency not found. How do I add this dependency?
After lot of trying, I manually added library:
Find your pom.xml in your files
Right click on it --> Maven --> Import
Wait for the project to load :D
Press ctrl+alt+shift+s (This opens the Projects window.)
Then click green + sign to import maven library.

Mule Twitter Maven Dependency - java.lang.ClassNotFoundException: org.mule.security.oauth.config.AbstractDevkitBasedDefinitionParser

I am trying to use the Mule Twitter connector as a Maven dependency like follows:
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-twitter</artifactId>
<version>3.0.1</version>
</dependency>
But when I use "Run as Mule with Maven" or run a test from Maven I get the following error:
java.lang.ClassNotFoundException: org.mule.security.oauth.config.AbstractDevkitBasedDefinitionParser