Failed to execute goal on project sikulixapi on 64-bit Windows

Asked by leon

I am running 64-bit windows 7 with Maven 3.2.5 installed, cloned SikuliX from https://github.com/RaiMan/SikuliX-2014.git.
Try to build in command line by:
mvn clean install

Such errors occurred (please see the section with *** surrounded), can anybody tell me why please?
[INFO] Reactor Summary:
[INFO]
[INFO] SikuliX-2014 ....................................... SUCCESS [ 0.210 s]
[INFO] sikulixlibslux ..................................... SUCCESS [ 8.730 s]
[INFO] sikulixlibsmac ..................................... SUCCESS [ 1.023 s]
[INFO] sikulixlibswin ..................................... SUCCESS [ 1.925 s]
[INFO] sikulixapi ......................................... FAILURE [ 3.957 s]
[INFO] sikulixsetupAPI .................................... SKIPPED
[INFO] sxjygments ......................................... SKIPPED
[INFO] sikulix ............................................ SKIPPED
[INFO] sikulixsetupIDE .................................... SKIPPED
[INFO] sikulixsetup ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.013 s
[INFO] Finished at: 2015-10-10T15:53:03+08:00
[INFO] Final Memory: 17M/244M
[INFO] ------------------------------------------------------------------------
**********
[ERROR] Failed to execute goal on project sikulixapi: Could not resolve dependen
cies for project com.sikulix:sikulixapi:jar:1.1.1: Failed to collect dependencie
s at jxgrabkey:jxgrabkey:jar:1.0: Failed to read artifact descriptor for jxgrabk
ey:jxgrabkey:jar:1.0: Could not transfer artifact jxgrabkey:jxgrabkey:pom:1.0 fr
om/to uni-due.de (http://mvn.is.inf.uni-due.de:8081/nexus/content/repositories/a
tunes-dependencies/): Access denied to: http://mvn.is.inf.uni-due.de:8081/nexus/
content/repositories/atunes-dependencies/jxgrabkey/jxgrabkey/1.0/jxgrabkey-1.0.p
om , ReasonPhrase:Forbidden. -> [Help 1]
**********
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn <goals> -rf :sikulixapi

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
leon
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

should be reported on GitHub.

try again, fixed.

Revision history for this message
leon (xinli-huang2012) said :
#2

Still same error at my side, by the way, I am working behind proxy, and made maven use proxy, maven downloading plugins works fine.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

just checked: works.

Sure you have pulled the latest state?

Should not have anything to do with the proxy stuff.

In the local .m2 repo delete the com.sikulix and jxgrabkey branches to see, whether the download are working.

Revision history for this message
leon (xinli-huang2012) said :
#4

Looks like corporate file wall caused the issue, switch to another internal proxy, "mvn clean install" works. Thanks RaiMan!

Revision history for this message
sunny sachdeva (sunalps2000) said :
#5

HI Raiman,
I am also facing this issue wile using sikuliX in java selenium framework. Can you pls help what is the resolution. PFB sikuli dependency
<dependency>
   <groupId>com.sikulix</groupId>
   <artifactId>sikulixapi</artifactId>
   <version>1.1.0</version>
  </dependency>

Revision history for this message
RaiMan (raimund-hocke) said :
#6

@sunny
symptoms?
errors?
log infos?

Revision history for this message
sunny sachdeva (sunalps2000) said :
#7

HI Raiman,

I saw your comments and checked In the local .m2 repo delete the com.sikulix and jxgrabkey branches . I could see the folders being created but inside its empty. This was happening at client's network but not at my local home and office network.

ERROR :-

Failed to read artifact descriptor for jxgrabkey:jxgrabkey:jar:1.0: Could not transfer artifact jxgrabkey:jxgrabkey:pom:1.0 from/to uni-due.de (http://mvn.is.inf.uni-due.de:8081/nexus/content/repositories/atunes-dependencies/): Error transferring file: Connection refused:

Revision history for this message
sunny sachdeva (sunalps2000) said :
#8

BTW I am using Jenkins to initiate my test cases and the above error is from Jenkins[ checked that it is NOT behind any kind of proxy].

Revision history for this message
RaiMan (raimund-hocke) said :
#9

ok, the latest is

<version>1.1.1</version>

... where jxgrabkey is no longer an external dependency (seems to be broken), but already in the jar.

Revision history for this message
sunny sachdeva (sunalps2000) said :
#10

Thanks RaiMan for your comment. I will upgrade to 1.1.1 and let you know my observation. Mean while thanks to your effort for creating such a wonderful tool

Revision history for this message
sunny sachdeva (sunalps2000) said :
#11

HI Raiman,
Sorry to bother you once again...I tried to update SKILUIX version from 1.1.0 to 1.1.1 in my pom.xml, however m getting error
Missing artifact com.sikulix:sikulixapi:jar:1.1.1

Looks like the new version is NOT available in maven central

Revision history for this message
RaiMan (raimund-hocke) said :
#12

ok, sorry for not being precise enough:
since 1.1.1 is in the pre-final phase (only nightly builds) it is in the OSSRH snapshot repo:

so add somewhere:

<repositories>
  <repository>
    <id>ossrh</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    <snapshots>
      <enabled>true</enabled>
      <updatePolicy>always</updatePolicy>
    </snapshots>
  </repository>
</repositories>

Revision history for this message
sunny sachdeva (sunalps2000) said :
#13

Thanks Raiman it worked

Revision history for this message
divita narang (divita) said :
#14

Hi RaiMan,

I am working in Java (selenium - cucumber) environment , trying to initiate my tests with Jenkins.

I added the following dependencies as discussed in the comments above-

<repositories>
    <repository>
      <id>sonatype-ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    </repository>
  </repositories>
 <dependency>
      <groupId>com.sikulix</groupId>
      <artifactId>sikulixapi</artifactId>
      <version>1.1.1-SNAPSHOT</version>
    </dependency>
<dependency>

When I run maven install I get the following errors -

Failed to execute goal on project quickstart: Could not resolve dependencies for project com.WOTF.maven:quickstart:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.sikulix:sikulixapi:jar:1.1.1-SNAPSHOT, com.sikulix:sikulixlibswin:jar:1.1.1-SNAPSHOT: Could not transfer artifact com.sikulix:sikulixapi:jar:1.1.1-SNAPSHOT from/to sonatype-ossrh (https://oss.sonatype.org/content/repositories/snapshots/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[ERROR]

I tried clearing .m2 directory and redo maven install, but that didn't help.
I tries maven clean install as well with no success.

Not sure if this is something to do with my proxy settings or do I need to add a certificate in keystore which would seem weird since maven is able to get all other dependencies I have for the project.

Please advise!

Thanks,
Divita

Revision history for this message
Naveen kumar (naveen1836) said :
#15

Hi,

I am also having same issue when i am trying to use with maven. please help me in resolving.

When i have downloaded and configured (by adding as external jar not through maven). i am getting below message:

*** classpath dump end
[error] RunTimeINIT: *** terminating: libs to export not found on above classpath: /sikulixlibs/windows/libs64

Revision history for this message
RaiMan (raimund-hocke) said :
#16

@Naveen
You say: I am also having same issue when i am trying to use with maven
... but this is not the case, since you do not use Maven, to resolve the dependencies to the lib jars.

The sikulixapi...jar from Maven cannot be downloaded and used on its own. You need to download the needed libs jar as well and add it to your project as well.

If you do not use Maven as build tool, then you should run setup, to get a useable sikulixapi.jar for your system.

Revision history for this message
Naveen kumar (naveen1836) said :
#17

Hi RaiMan,

Thanks for the response.

I am using Maven to resolve dependencies , but i am getting below exception:
[INFO] Downloading: http://repo1.maven.org/maven2/com/sikulix/sikulixlibswin/1.1.0/sikulixlibswin-1.1.0.pom
[INFO] Downloaded: http://repo1.maven.org/maven2/com/sikulix/sikulixlibswin/1.1.0/sikulixlibswin-1.1.0.pom (3 KB at 4.6 KB/sec)
[INFO] Downloading: http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6.jar
[INFO] Downloaded: http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6.jar (317 KB at 361.4 KB/sec)
[INFO] Downloading: http://repo1.maven.org/maven2/com/sikulix/sikulixapi/1.1.0/sikulixapi-1.1.0.jar
[INFO] Downloaded: http://repo1.maven.org/maven2/com/sikulix/sikulixapi/1.1.0/sikulixapi-1.1.0.jar (1107 KB at 1090.4 KB/sec)
[INFO] Downloading: http://repo1.maven.org/maven2/com/melloware/jintellitype/1.3.7/jintellitype-1.3.7.jar
[INFO] Downloaded: http://repo1.maven.org/maven2/com/melloware/jintellitype/1.3.7/jintellitype-1.3.7.jar (16 KB at 27.1 KB/sec)
[INFO] Downloading: http://repo1.maven.org/maven2/jxgrabkey/jxgrabkey/1.0/jxgrabkey-1.0.jar
[INFO] Downloading: http://repo1.maven.org/maven2/org/swinglabs/swing-layout/1.0.3/swing-layout-1.0.3.jar
[INFO] Downloaded: http://repo1.maven.org/maven2/org/swinglabs/swing-layout/1.0.3/swing-layout-1.0.3.jar (116 KB at 189.4 KB/sec)
[INFO] Downloading: http://repo1.maven.org/maven2/com/nativelibs4java/bridj/0.6.2/bridj-0.6.2.jar
[INFO] Downloaded: http://repo1.maven.org/maven2/com/nativelibs4java/bridj/0.6.2/bridj-0.6.2.jar (859 KB at 1218.9 KB/sec)
[INFO] Downloading: http://repo1.maven.org/maven2/com/sikulix/sikulixlibswin/1.1.0/sikulixlibswin-1.1.0.jar
[INFO] Downloaded: http://repo1.maven.org/maven2/com/sikulix/sikulixlibswin/1.1.0/sikulixlibswin-1.1.0.jar (10578 KB at 6051.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.842 s
[INFO] Finished at: 2017-05-08T11:20:57+05:30
[INFO] Final Memory: 8M/241M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project VersionOneDemo: Could not resolve dependencies for project com.yodlee:VersionOneDemo:jar:1.0-SNAPSHOT: Could not find artifact jxgrabkey:jxgrabkey:jar:1.0 in nexus (http://repo1.maven.org/maven2)

please let me know if i am missing something.

Thanks,
Naveen.

Revision history for this message
RaiMan (raimund-hocke) said :
#18

in Maven projects you should always use the latest snapshot build, since this contains all fixes.

latest currently: 1.1.2-SNAPSHOT (continuously built on TravisCI)

 <repositories>
    <repository>
      <id>sonatype-ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>com.sikulix</groupId>
      <artifactId>sikulixapi</artifactId>
      <version>1.1.2-SNAPSHOT</version>
    </dependency>
  </dependencies>

Revision history for this message
Naveen kumar (naveen1836) said :
#19

Thankq Raimain. It worked :)

Revision history for this message
VJ (gvvijayram) said :
#20

I am also facing similar issue, using sikuli with java-selenium and trying to execute maven-goal on jenkins job to execute sikuli scripts against ubuntu slave.. getting following error below,

java.lang.ExceptionInInitializerError: null
 at org.sikuli.script.RunTime.init(RunTime.java:693)
 at org.sikuli.script.RunTime.get(RunTime.java:291)
 at org.sikuli.script.RunTime.get(RunTime.java:126)
 at org.sikuli.script.RunTime.get(RunTime.java:316)
 at org.sikuli.script.Region.<clinit>(Region.java:31)

unable to find the Screen class in the jar files, I do see sikuli-api and sikuli-core in m2 repository in the workspace...

my pom.xml looks like below,
                 <dependency>
   <groupId>com.sikulix</groupId>
   <artifactId>sikulixapi</artifactId>
   <version>1.1.1</version>
  </dependency>
  <!-- https://mvnrepository.com/artifact/org.sikuli/sikuli-api -->
  <dependency>
   <groupId>org.sikuli</groupId>
   <artifactId>sikuli-api</artifactId>
   <version>1.2.0</version>
  </dependency>

tried 1.1.1 sikuli but getting dependency errors...

Any pointers? bad looking for help..

Revision history for this message
VJ (gvvijayram) said :
#21

what is the latest stable version of sikulixapi on mvn central repository that I can use ?

I tried to use this 1.1.2 dependency from mvn below:

              <dependency>
   <groupId>org.sikuli</groupId>
   <artifactId>sikuli-api</artifactId>
   <version>1.2.0</version>
  </dependency>

I am getting missing artifact error: com.github.vidstige:jadb:jar:-v1.0-g94ebf38-23 on pom.xml in my workspace

how to get sikuli working on maven project goals on jenkins... any steps.. ?

Revision history for this message
RaiMan (raimund-hocke) said :
#22

@VJ
--- is another project than SikuliX
 <groupId>org.sikuli</groupId>
   <artifactId>sikuli-api</artifactId>

--- latest SikuliX on Maven Central
   <groupId>com.sikulix</groupId>
   <artifactId>sikulixapi</artifactId>
   <version>1.1.2</version>

--- newer snapshot versions on OSSRH for 1.1.3 and 1.1.4
1.1.3 snapshot is frozen and hence quasi final ;-)
1.1.4 final is planned for April

Revision history for this message
VJ (gvvijayram) said :
#23

HI Raiman:

Thank you for the insight.. thank you for developing a beautiful tool...

I was trying to get this tool to work in Ubuntu, I posted by questions on : https://answers.launchpad.net/sikuli/+question/679058

if you could kindly throw some light and help us to get it to work on linux/ubuntu environment...

Revision history for this message
RaiMan (raimund-hocke) said :
#24

@VJ
not good behaviour: double posts and questions as comments on old, solved questions.