Search code examples
javamavensikuli

Sikulix maven project


I want to use Sikulix in my maven project but it doesn't work, I tried to add the repository like it says (http://sikulix-2014.readthedocs.org/en/latest/faq/030-java-dev.html#a-comment-on-projects-using-maven) and when I do "mvn install" it says "Could not find artifact com.sikulix:sikulixapi:jar:1.1.0-SNAPSHOT in nexus" where nexus is our repository.

My pom contains that:

...
<repositories>
    <repository>
        <id>com.sikulix</id>
        <name>com.sikulix</name>
        <url>https://oss.sonatype.org/content/groups/public</url>
        <layout>default</layout>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
        </snapshots>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.sikulix</groupId>
        <artifactId>sikulixapi</artifactId>
        <version>1.1.0-SNAPSHOT</version>
    </dependency>
</dependencies>
...

Any idea why maven does not find the artifact in the correct repo?


Solution

  • The problem is solved. In the settings.xml we had a so maven always used the same repo.

    I just removed the mirror because we didn't use it anymore, but I think that adding the additional repository there it would work too.