[MacPorts] #61445: Java version not detected on macOS Big Sur 11.0.1

MacPorts noreply at macports.org
Sat Nov 14 01:02:25 UTC 2020


#61445: Java version not detected on macOS Big Sur 11.0.1
--------------------+--------------------
 Reporter:  breun   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:
--------------------+--------------------
 When trying to upgrade a port on macOS Big Sur 11.0.1 which requires Java
 (via 'PortGroup java 1.0'), I get the following error:

 {{{
 % sudo port upgrade maven3
 --->  Fetching archive for maven3
 --->  Attempting to fetch maven3-3.6.3_0.darwin_20.noarch.tbz2 from
 https://packages.macports.org/maven3
 --->  Attempting to fetch maven3-3.6.3_0.darwin_20.noarch.tbz2 from
 https://nue.de.packages.macports.org/maven3
 --->  Attempting to fetch maven3-3.6.3_0.darwin_20.noarch.tbz2 from
 https://mse.uk.packages.macports.org/maven3
 --->  Computing dependencies for maven3
 --->  Fetching distfiles for maven3
 Error: maven3 requires Java 1.7+ but no such installation could be found.
 Error: Failed to fetch maven3: missing required Java version
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_maven3/maven3/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 }}}

 However, OpenJDK 8 is installed via MacPorts just fine:

 {{{
 % /usr/libexec/java_home -f -v 1.7
 /Library/Java/JavaVirtualMachines/openjdk8/Contents/Home
 % port installed openjdk8
 The following ports are currently installed:
   openjdk8 @8u272_0 (active)
 % echo $JAVA_HOME
 /Library/Java/JavaVirtualMachines/openjdk8/Contents/Home
 }}}

 The full log file:

 {{{
 version:1
 :debug:sysinfo macOS 11.0 (darwin/20.1.0) arch i386
 :debug:sysinfo MacPorts 2.6.4
 :debug:sysinfo Xcode 12.2
 :debug:sysinfo SDK 11.0
 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 11.0
 :debug:main Executing org.macports.main (maven3)
 :debug:main dropping privileges: euid changed to 502, egid changed to 501.
 :debug:archivefetch archivefetch phase started at Sat Nov 14 01:55:29 CET
 2020
 :msg:archivefetch --->  Fetching archive for maven3
 :debug:archivefetch Executing org.macports.archivefetch (maven3)
 :debug:archivefetch euid/egid changed to: 0/0
 :debug:archivefetch chowned /opt/local/var/macports/incoming to macports
 :debug:archivefetch euid/egid changed to: 502/501
 :info:archivefetch --->  maven3-3.6.3_0.darwin_20.noarch.tbz2 doesn't seem
 to exist in /opt/local/var/macports/incoming/verified
 :msg:archivefetch --->  Attempting to fetch
 maven3-3.6.3_0.darwin_20.noarch.tbz2 from
 https://packages.macports.org/maven3
 :debug:archivefetch Fetching archive failed: The requested URL returned
 error: 404
 :msg:archivefetch --->  Attempting to fetch
 maven3-3.6.3_0.darwin_20.noarch.tbz2 from
 https://nue.de.packages.macports.org/maven3
 :debug:archivefetch Fetching archive failed: The requested URL returned
 error: 404 Not Found
 :msg:archivefetch --->  Attempting to fetch
 maven3-3.6.3_0.darwin_20.noarch.tbz2 from
 https://mse.uk.packages.macports.org/maven3
 :debug:archivefetch Fetching archive failed: The requested URL returned
 error: 404 Not Found
 version:1
 :debug:sysinfo macOS 11.0 (darwin/20.1.0) arch i386
 :debug:sysinfo MacPorts 2.6.4
 :debug:sysinfo Xcode 12.2
 :debug:sysinfo SDK 11.0
 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 11.0
 :msg:archivefetch --->  Computing dependencies for
 maven3:info:archivefetch .:debug:archivefetch Searching for dependency:
 openjdk11
 :debug:archivefetch Found Dependency: receipt exists for openjdk11
 :debug:archivefetch Searching for dependency: maven_select
 :debug:archivefetch Found Dependency: receipt exists for maven_select
 :debug:main Executing org.macports.main (maven3)
 :debug:main dropping privileges: euid changed to 502, egid changed to 501.
 :debug:fetch fetch phase started at Sat Nov 14 01:55:33 CET 2020
 :notice:fetch --->  Fetching distfiles for maven3
 :debug:fetch Executing proc-pre-org.macports.fetch-fetch-0
 :debug:fetch Discovered JAVA_HOME via /usr/libexec/java_home:
 /Library/Java/JavaVirtualMachines/openjdk15-openj9/Contents/Home
 :debug:fetch Adding dependency on JDK fallback openjdk11
 :error:fetch maven3 requires Java 1.7+ but no such installation could be
 found.
 :error:fetch Failed to fetch maven3: missing required Java version
 :debug:fetch Error code: NONE
 :debug:fetch Backtrace: missing required Java version
 :debug:fetch     while executing
 :debug:fetch "$pre $targetname"
 :error:fetch See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_maven3/maven3/main.log
 for details.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61445>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list