On 11/27/17 18:37, cen wrote: > Yes, apparently I did have JAVA_HOME set. After unsetting the variable and > reinstalling maven again it completed successfully. However, problem persists: > > mvn -version > /usr/bin/mvn: Failed to set JAVACMD > The JAVA_HOME environment variable is not defined correctly > This environment variable is needed to run this program > NB: JAVA_HOME should point to a JDK not a JRE > > > One other thing I found after install is this: > pwd > /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.fc27.x86_64/bin > ./java -version > Error: could not find libjava.so > Error: Could not find Java SE Runtime Environment. > > So this java 8 install as a weak maven dependency seems to be borked. FWIW, I restored the snapshot of my VM so that no java packages or maven was installed. I then did a "dnf install maven" and these are the packages it installed. [root@f27k ~]# dnf history info 10 Transaction ID : 10 Begin time : Mon 27 Nov 2017 06:34:09 PM CST Begin rpmdb : 1753:e25030afa94192d6bc3a19187b358d4e713ba416 End time : Mon 27 Nov 2017 06:34:51 PM CST (42 seconds) End rpmdb : 1807:3332cf3d346b1478137488d8703e1278c79fba89 User : Ed Greshko <egreshko> Return-Code : Success Command Line : install maven Transaction performed with: Installed dnf-2.7.5-1.fc27.noarch @updates Installed rpm-4.14.0-2.fc27.x86_64 @anaconda Packages Altered: Install aopalliance-1.0-15.fc27.noarch @fedora Install apache-commons-cli-1.4-2.fc27.noarch @fedora Install apache-commons-codec-1.10-5.fc27.noarch @fedora Install apache-commons-io-1:2.5-3.fc27.noarch @fedora Install apache-commons-lang-2.6-20.fc27.noarch @fedora Install apache-commons-lang3-3.6-3.fc27.noarch @fedora Install apache-commons-logging-1.2-11.fc27.noarch @fedora Install atinject-1-25.20100611svn86.fc27.noarch @fedora Install cdi-api-1.2-5.fc27.noarch @fedora Install copy-jdk-configs-3.3-1.fc27.noarch @updates Install glassfish-el-api-3.0.1-0.5.b08.fc27.noarch @fedora Install google-guice-4.1-8.fc27.noarch @fedora Install guava-18.0-11.fc27.noarch @fedora Install hawtjni-runtime-1.15-2.fc27.noarch @fedora Install httpcomponents-client-4.5.3-4.fc27.noarch @fedora Install httpcomponents-core-4.4.6-4.fc27.noarch @fedora Install jansi-1.16-2.fc27.noarch @fedora Install jansi-native-1.7-3.fc27.x86_64 @fedora Install java-1.8.0-openjdk-1:1.8.0.151-1.b12.fc27.x86_64 @updates Install java-1.8.0-openjdk-devel-1:1.8.0.151-1.b12.fc27.x86_64 @updates Install java-1.8.0-openjdk-headless-1:1.8.0.151-1.b12.fc27.x86_64 @updates Install javapackages-tools-5.0.0-7.fc27.noarch @fedora Install jboss-interceptors-1.2-api-1.0.0-7.fc27.noarch @fedora Install jcl-over-slf4j-1.7.25-2.fc27.noarch @fedora Install jsoup-1.10.3-2.fc27.noarch @fedora Install lksctp-tools-1.0.16-8.fc27.x86_64 @fedora Install lua-5.3.4-6.fc27.x86_64 @updates Install lua-posix-33.3.1-7.fc27.x86_64 @fedora Install maven-1:3.5.0-6.fc27.noarch @fedora Install maven-lib-1:3.5.0-6.fc27.noarch @fedora Install maven-resolver-api-1:1.0.3-7.fc27.noarch @fedora Install maven-resolver-connector-basic-1:1.0.3-7.fc27.noarch @fedora Install maven-resolver-impl-1:1.0.3-7.fc27.noarch @fedora Install maven-resolver-spi-1:1.0.3-7.fc27.noarch @fedora Install maven-resolver-transport-wagon-1:1.0.3-7.fc27.noarch @fedora Install maven-resolver-util-1:1.0.3-7.fc27.noarch @fedora Install maven-shared-utils-3.1.0-5.fc27.noarch @fedora Install maven-wagon-file-2.10-4.fc27.noarch @fedora Install maven-wagon-http-2.10-4.fc27.noarch @fedora Install maven-wagon-http-shared-2.10-4.fc27.noarch @fedora Install maven-wagon-provider-api-2.10-4.fc27.noarch @fedora Install plexus-cipher-1.7-13.fc27.noarch @fedora Install plexus-classworlds-2.5.2-8.fc27.noarch @fedora Install plexus-containers-component-annotations-1.7.1-3.fc27.noarch @fedora Install plexus-interpolation-1.22-8.fc27.noarch @fedora Install plexus-sec-dispatcher-1.4-23.fc27.noarch @fedora Install plexus-utils-3.0.24-4.fc27.noarch @fedora Install publicsuffix-list-20171028-1.fc27.noarch @updates Install sisu-inject-1:0.3.3-2.fc27.noarch @fedora Install sisu-plexus-1:0.3.3-2.fc27.noarch @fedora Install slf4j-1.7.25-2.fc27.noarch @fedora Install ttmkfdir-3.0.9-51.fc27.x86_64 @fedora Install tzdata-java-2017c-1.fc27.noarch @updates Install xorg-x11-fonts-Type1-7.5-18.fc27.noarch @fedora [root@f27k ~]# env | grep -i java [root@f27k ~]# mvn -v Apache Maven 3.5.0 (Red Hat 3.5.0-6) Maven home: /usr/share/maven Java version: 1.8.0_151, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.fc27.x86_64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.13.13-300.fc27.x86_64", arch: "amd64", family: "unix" -- Fedora Users List - The place to go to speculate endlessly
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx