[
https://issues.apache.org/jira/browse/MNG-6582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16755162#comment-16755162
]
Patrick Barry commented on MNG-6582:
------------------------------------
Ahh, I see the problem. I recently installed openJDK and there is no installer
for that that (that I know of) so I manually registered the new install. Looks
like the Oracle Java installer used to set a bunch of env variables that I did
not know about!
{noformat}
genesys-maven: mvn help:system | grep java
java.specification.version=11
java.class.path=/usr/local/Cellar/maven/3.6.0/libexec/boot/plexus-classworlds-2.5.2.jar
java.vm.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
java.vm.specification.version=11
sun.java.launcher=SUN_STANDARD
sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher help:system
java.specification.vendor=Oracle Corporation
java.version.date=2019-01-15
java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home
java.vm.compressedOopsMode=Zero based
java.specification.name=Java Platform API Specification
java.vm.specification.vendor=Oracle Corporation
java.awt.graphicsenv=sun.awt.CGraphicsEnvironment
java.runtime.version=11.0.2+9
java.runtime.name=OpenJDK Runtime Environment
java.vm.name=OpenJDK 64-Bit Server VM
java.vendor.version=18.9
java.vendor.url.bug=http://bugreport.java.com/bugreport/
java.io.tmpdir=/var/folders/w_/kgpg46bx1ns4bw2tk8fqp1t80000gn/T/
java.version=11.0.2
java.vm.specification.name=Java Virtual Machine Specification
java.awt.printerjob=sun.lwawt.macosx.CPrinterJob
java.library.path=/Users/pbarry/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
java.vendor=Oracle Corporation
java.vm.info=mixed mode
java.vm.version=11.0.2+9
java.class.version=55.0{noformat}
> Maven report wrong jdk vendor
> ------------------------------
>
> Key: MNG-6582
> URL: https://issues.apache.org/jira/browse/MNG-6582
> Project: Maven
> Issue Type: Bug
> Affects Versions: 3.5.4, 3.6.0
> Reporter: Patrick Barry
> Priority: Minor
> Fix For: wontfix-candidate
>
>
> I am using OpenJDK and when I perform mvn -version, it says Oracle is the
> vendor.
> {noformat}
> mvn -version
> Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe;
> 2018-06-17T14:33:14-04:00) Maven home: /usr/local/Cellar/maven/3.5.4/libexec
> Java version: 11.0.2, vendor: Oracle Corporation, runtime:
> /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home Default
> locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version:
> "10.13.6", arch: "x86_64", family: "mac"
> {noformat}
> If you were to print the java version straight from the java install path:
> {noformat}
> /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/bin/java
> -version
> openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment 18.9 (build
> 11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
> {noformat}
> I updated to the latest install of Maven, and the problem exists there as
> well. Testing done on a Mac.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)