Results 1 to 5 of 5

Thread: Problems with building with maven

  1. #1

    Default 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?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,477
    Blog Entries
    2

    Default Re: Problems with building with maven

    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
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: Problems with building with maven

    Quote Originally Posted by tsu2 View Post
    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

  4. #4

    Default Re: Problems with building with maven

    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"

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,477
    Blog Entries
    2

    Default Re: Problems with building with maven

    Quote Originally Posted by telecolega View Post
    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
    Code:
    update-alternatives --config java
    You <may> also see clues in your maven config file (are you specifying a specific java?)

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •