Problems building the Sikuli sources

Asked by Luciana Moreira Sá de Souza

Hello,

I am trying to build SikuliX-Basics but I am facing a problem. The following dependency from maven cannot be found:

Missing:
----------
1) jxgrabkey:jxgrabkey:jar:1.0

  Try downloading the file manually from the project website.

Could you tell me in which repository this jar file is available?

Thank you very much.
Luciana Moreira

Question information

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

I do not understand: there is a pom together with the source in the maven project on github, that works ???

Revision history for this message
Luciana Moreira Sá de Souza (lso) said :
#2

Hello RaiMan,

Thank you for your quick response.

Let me explain what I did. First I did a clone of the project from github:
git clone https://github.com/RaiMan/SikuliX-Basics.git

Then I got into this project folder and did a simple:
mvn clean install

This triggered the maven build but failed right at the beginning with the dependency problem as I posted before.

My maven repository setup is a bit special because I also use an internal repository in our company. But I do see attempts to download it:

Downloading: http://ourserver/nexus/content/groups/dev/jxgrabkey/jxgrabkey/1.0/jxgrabkey-1.0.pom
[INFO] Unable to find resource 'jxgrabkey:jxgrabkey:pom:1.0' in repository assentis-snapshots-releases (http://dummy/repo/)
Downloading: http://ourserver/nexus/content/groups/dev/jxgrabkey/jxgrabkey/1.0/jxgrabkey-1.0.pom
[INFO] Unable to find resource 'jxgrabkey:jxgrabkey:pom:1.0' in repository uni-due.de (http://mvn.is.inf.uni-due.de:8081/nexus/content/repositories/atunes-dependencies/)
Downloading: http://ourserver/nexus/content/groups/dev/jxgrabkey/jxgrabkey/1.0/jxgrabkey-1.0.pom
[INFO] Unable to find resource 'jxgrabkey:jxgrabkey:pom:1.0' in repository central (http://repo1.maven.org/maven2)
Downloading: http://ourserver/nexus/content/groups/dev/jxgrabkey/jxgrabkey/1.0/jxgrabkey-1.0.jar
[INFO] Unable to find resource 'jxgrabkey:jxgrabkey:jar:1.0' in repository assentis-snapshots-releases (http://dummy/repo/)
Downloading: http://ourserver/nexus/content/groups/dev/jxgrabkey/jxgrabkey/1.0/jxgrabkey-1.0.jar
[INFO] Unable to find resource 'jxgrabkey:jxgrabkey:jar:1.0' in repository uni-due.de (http://mvn.is.inf.uni-due.de:8081/nexus/content/repositories/atunes-dependencies/)
Downloading: http://ourserver/nexus/content/groups/dev/jxgrabkey/jxgrabkey/1.0/jxgrabkey-1.0.jar
[INFO] Unable to find resource 'jxgrabkey:jxgrabkey:jar:1.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) jxgrabkey:jxgrabkey:jar:1.0

So I am not entirely sure where this dependency is supposed to come from.

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

as already mentioned:

it is shown in my pom.

Revision history for this message
Luciana Moreira Sá de Souza (lso) said :
#4

Hello RaiMan,

I saw the repository in the pom file, thanks for pointing it out. The problem was on my maven settings.xml. I reverted to the original file distributed by apache, and now it works.

Thanks a lot!

Revision history for this message
Sarav (bx5974) said :
#5

Hi Raiman,

I am searching to get a quick step / guide to edir source code of 1.1.0 in Netbeans , pls guide

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

Also looking for this kind of guides, can RaiMan take time to give us more details? Thank you.

Revision history for this message
Shantonu (shantonu-oxford) said :
#7

This is because jxgrabkey repository (http://mvn.is.inf.uni-due.de:8081/nexus/content/repositories/atunes-dependencies/)
 mentioned in POM is not accessible.

I am doing local repository attachment. I download jxgrabkey JAR from other source , put in my local repository and add in maven like this
<dependency>
          <groupId>jxgrabkey</groupId>
          <artifactId>jxgrabkey</artifactId>
          <version>1.0</version>
          <scope>system</scope>
          <systemPath><Your Local Path of repository>/jxgrabkey-1.0.jar</systemPath>
      </dependency>

It works fine.
In our company we are managing local repo, so probably upload there and use that.
this is temporary solution but works.

Revision history for this message
Tanner (shadoninja) said :
#8

The problem for me was I had not imported the project's maven repository. I added

    <repositories>
        <repository>
            <id>SikuliX-repo</id>
            <url>http://oss.sonatype.org/content/groups/public</url>
        </repository>
    </repositories>

to my pom file and it worked fine after that.