← Back to team overview

sikuli-driver team mailing list archive

[Question #369818]: Maven project problem with classpath

 

New question #369818 on Sikuli:
https://answers.launchpad.net/sikuli/+question/369818

Hello everybody,

I got a maven project where I use SikuliX. The project has worked in the past, but now I reimported it in netbeans and it wont run anymore, it gives the following error:

--- exec-maven-plugin:1.2.1:exec (default-cli) @ myProgram ---
*** classpath dump 
  0: /C:/Users/kiwi/Desktop/myProgram/myProgram/myProgram/target/classes/
  1: /C:/Users/kiwi/.m2/repository/com/sikulix/sikulixapi/1.1.1-SNAPSHOT/sikulixapi-1.1.1-SNAPSHOT.jar
  2: /C:/Users/kiwi/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
  3: /C:/Users/kiwi/.m2/repository/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar
  4: /C:/Users/kiwi/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar
  5: /C:/Users/kiwi/.m2/repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar
  6: /C:/Users/kiwi/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
  7: /C:/Users/kiwi/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar
  8: /C:/Users/kiwi/.m2/repository/commons-net/commons-net/3.4/commons-net-3.4.jar
  9: /C:/Users/kiwi/.m2/repository/com/melloware/jintellitype/1.3.7/jintellitype-1.3.7.jar
 10: /C:/Users/kiwi/.m2/repository/com/nativelibs4java/bridj/0.7.0/bridj-0.7.0.jar
 11: /C:/Users/kiwi/.m2/repository/com/google/android/tools/dx/1.7/dx-1.7.jar
 12: /C:/Users/kiwi/.m2/repository/com/github/vidstige/jadb/-v1.0-g94ebf38-23/jadb--v1.0-g94ebf38-23.jar
*** classpath dump end
[error] RunTimeINIT:  *** terminating: libs to export not found on above classpath: /sikulixlibs/windows/libs64



I'm a maven noob so there might be something wrong with my maven build, it looks like this:

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.autoApp</groupId>
    <artifactId>myAuto</artifactId>
    <version>3.2.2</version>
  
    <repositories>
        <repository>  <!-- OSSRH: com.sikulix -->
            <id>com-sikulix</id>
            <name>com-sikulix</name>
            <url>https://oss.sonatype.org/content/groups/public</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
        </repository>
    </repositories>
  
    <dependencies>
        <dependency>
            <groupId>com.sikulix</groupId>
            <artifactId>sikulixapi</artifactId>
            <version>1.1.1-SNAPSHOT</version>
            <type>jar</type>
            <exclusions>
                <exclusion>
                    <groupId>com.sikulix</groupId>
                    <artifactId>sikulixlibswin</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>
    <name>AutoNetbeans</name>
    
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.4.1</version>
                <configuration>
                    <!-- get all project dependencies -->
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
                    <!-- MainClass in mainfest make a executable jar -->
                    <archive>
                        <manifest>
                            <mainClass>application.Launcher</mainClass>
                        </manifest>
                    </archive>
 
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <!-- bind to the packaging phase -->
                        <phase>package</phase> 
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
 
        </plugins>
    </build>
 

Here is an image of my dependencies in netbeans: https://s11.postimg.org/443cgnc83/dep.png
Can anyone spot where the problem is located?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.