Question #252103 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252103
Status: Open => Answered
RaiMan proposed the following answer:
this is my OSSRH test pom. this works.
?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sikulix</groupId>
<artifactId>sikulixtestrun</artifactId>
<version>1.1.0-Beta4</version>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>com-sikulix</id>
<name>com-sikulix</name>
<url>http://oss.sonatype.org/content/groups/public</url>
<releases>
<enabled>false</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
<layout>default</layout>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.sikulix</groupId>
<artifactId>sikulixapi</artifactId>
<version>1.1.0-Beta4-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<mainClass>com.sikulix.testrun.TestRun</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
//-- this is my test source:
package com.sikulix.testrun;
import org.sikuli.basics.Debug;
import org.sikuli.script.*;
public class TestRun {
public static void main(String[] args) {
Debug.test("SikuliX 2014 TestRun: hello");
Debug.setDebugLevel(3);
Screen s = new Screen();
s.click();
}
}
Currently the dependency sikulixtessdata is not yet on OSSRH and leads to
[debug] SikuliX: add to classpath:
/Users/rhocke/.m2/repository/com/sikulix/sikulixtessdata/1.1.0-Beta4-SNAPSHOT/sikulixtessdata-1.1.0-Beta4-SNAPSHOT.jar
[error] SikuliX: does not exist - not added
just ignore it.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp