I'm trying to write my own Jenkins plugin. I'm following the official instructions.
However, when I get to the part for actually building the plugin, I get a test failure:
Tests in error: initializationError(InjectedTest): com.sun.jna.Native.open(Ljava/lang/String;)J
$ mvn -version Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.6.0_24, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "linux", version: "3.2.0-29-generic", arch: "amd64", family: "unix"
Which JDK do I need to have installed? Do I need to set any environment variables? How do I make it build properly?
I discovered that I didn't have libjna-posix-java installed, but I still get the same error after installation.