usc-isi-i2 / Web-Karma

Information Integration Tool

Home Page:http://www.isi.edu/integration/karma/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build failure

mtthsdzwn opened this issue · comments

I am trying to install from source on my macbook but mvn clean install fails

Steps to reproduce the behavior:

  1. gh repo clone usc-isi-i2/Web-Karma
  2. mvn clean install

Expected behavior

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Screenshots

Screenshot 2022-05-04 at 16 43 07

Desktop

macOS 12.3.1 (21E258)

java -version 
java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
mvn --version
Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0)
Maven home: /usr/local/Cellar/maven/3.8.5/libexec
Java version: 18.0.1, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/18.0.1/libexec/openjdk.jdk/Contents/Home
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "12.3.1", arch: "x86_64", family: "mac"

Hi, I think the issue is happening because your maven configuration is using java version 18.0.1. It should be using java version 1.8. Please follow the steps in https://euedofia.medium.com/fix-default-java-version-on-maven-on-mac-os-x-156cf5930078 to update the java version for maven.
Once maven's java version is updated, the output of maven -version command should look like this :
Screenshot 2022-09-05 at 6 03 16 PM
Feel free to reopen the issue, if it's still not resolved.