mvn test of jenkins plugins failed with libjna-java installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libjna-java (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Quantal up to date
TEST CASE:
1. Install maven and libjna-java
2. Setup a basic plugin for jenkins (https:/
3. cd to the project directory and run:
$ mvn test
=> Verify that test failed
4. Uninstall libjna-java
5. Run: mvn test
=> Verify that test passed
ACTUAL RESULT
With libjna-java mvn test failed with
java.lang.
at com.sun.
at com.sun.
at com.sun.
at com.sun.
at com.sun.
at hudson.
This is really annoying because libjna-java is a dependency of jenkins-common, which prevent building plugins for Jenkins on the same machine the server is installed on.
WORKAROUND
Add the following lines to your project's pom.xml
<dependency>
<groupId>
<artifactId
<version>
</dependency>
If you want to use 3.4.0 instead, update the version in pom.xml and run maven with:
$ mvn -DargLine=
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: libjna-java 3.2.7-4
ProcVersionSign
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Wed Oct 10 22:59:45 2012
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: libjna-java
UpgradeStatus: Upgraded to quantal on 2012-01-31 (252 days ago)
description: | updated |
description: | updated |
Result of mvn test