Problems with building with maven

Hi,

I am trying to build a project using maven and I am getting the following error right at the beginning:

http://pastebin.com/vU2cyRRB

This is my maven version and the java it is using:

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: /home/emanubu/apache-maven-3.3.9
Java version: 1.8.0_101, vendor: Oracle Corporation
Java home: /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: “linux”, version: “4.1.12-1-default”, arch: “amd64”, family: “unix”

Does anybody know what I might be doing wrongly?

  1. Where did your source come from, and how confident are you that source is bug free?

  2. Did you install the openjdk-devel package? (That’s comparable to the Oracle SE JDK and provides you extra development modules beyond the JRE)

  3. If the above can be answered sufficiently, then you might try installing an appropriate Oracle SE JDK instead of openjdk.

TSU

Yes, I am confident that it is bug free because I colleague of mine did the same on his Ubuntu machine and it worked

Yes, I installed the openjdk-devel of jdk8 using YAST

I moved back to openSUSE 13.2 and there it worked. I am not sure why because the version seems the same:

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: /home/emanubu/apache-maven-3.3.9
Java version: 1.8.0_101, vendor: Oracle Corporation
Java home: /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: “linux”, version: “3.16.6-2-default”, arch: “amd64”, family: “unix”

Your last post suggests that both Oracle Java and openjdk is installed on the machine.
If your different java versions were installed with update-alternatives, you can run the following in a console to display not only your choices but which is currently enabled

update-alternatives --config java

You <may> also see clues in your maven config file (are you specifying a specific java?)

TSU