Thanks, Benjamin.
The good news is that the problem resolved itself last night, perhaps with an
appreciated effort from one of you.
--
Bill Wohler <Bill.Wohler@xxxxxxxx<mailto:Bill.Wohler@xxxxxxxx>> aka
<wohler@xxxxxxxx<mailto:wohler@xxxxxxxx>>
Cell: 650-380-1804
-----Original Message-----
From: Benjamin Root
<ben.v.root@xxxxxxxxx<mailto:Benjamin%20Root%20%3cben.v.root@xxxxxxxxx%3e>>
To: "Wohler, Bill (ARC-TN)[SETI INSTITUTE]"
<bill.wohler@xxxxxxxx<mailto:%22Wohler,%20Bill%20%28ARC-TN%29%5bSETI%20INSTITUTE%5d%22%20%3cbill.wohler@xxxxxxxx%3e>>
Cc: netcdfgroup@xxxxxxxxxxxxxxxx
<netcdfgroup@xxxxxxxxxxxxxxxx<mailto:%22netcdfgroup@xxxxxxxxxxxxxxxx%22%20%3cnetcdfgroup@xxxxxxxxxxxxxxxx%3e>>
Subject: [EXTERNAL] [BULK] Re: [netcdfgroup] New problem accessing netcdf with
Gradle
Date: Wed, 21 May 2025 19:22:28 -0400
CAUTION: This email originated from outside of NASA. Please take care when
clicking links or opening attachments. Use the "Report Message" button to
report suspicious messages to the NASA SOC.
I think netcdf-java recently bumped up the Spring framework version
requirement. I don't recall the details, but I think the minimum java version
also got bumped.
On Tue, May 20, 2025 at 7:34 PM Wohler, Bill (ARC-TN)[SETI INSTITUTE]
<bill.wohler@xxxxxxxx<mailto:bill.wohler@xxxxxxxx>> wrote:
[I had sent this message to the support mailing list, but got an automatic
reply that operations are paused until funding resumes and that I should send
my question here. I understand that you won't be able to fix the problem, but
perhaps you can suggest some workarounds until the problem can be fixed. My
current thinking is that it should be possible to copy the library to a local
Maven repository and point my build at that. What do you think?]
We just started getting the following error out of the blue when compiling our
Java code with Gradle that makes use of the netcdf libraries.
> Could not resolve edu.ucar:netcdf4:4.6.+.
Required by:
project :code:spoc-protobuf
> Failed to list versions for edu.ucar:netcdf4.
> Unable to load Maven meta-data from
https://artifacts.unidata.ucar.edu/repository/unidata-all/edu/ucar/netcdf4/maven-metadata.xml.
> Could not HEAD
> 'https://artifacts.unidata.ucar.edu/repository/unidata-all/edu/ucar/netcdf4/maven-metadata.xml'.
> Received status code 403 from server: Forbidden
What's weird is that I can access maven-metadata.xml just fine with my browser
or with curl. Have you seen this problem? Do you have any idea what might be
the source of the problem?
We've been using the netcdf library in our build.gradle files for a long time
like this:
repositories {
mavenCentral()
maven {
url = "https://artifacts.unidata.ucar.edu/repository/unidata-all/"
}
}
...
dependencies {
...
implementation 'edu.ucar:netcdf4:4.6.+'
...
}
Interestingly, this error went away when I used "implementation
'edu.ucar:netcdf4:+'", which will match the highest available version. I was
surprised to see that it downloaded version 4.5.5, not a more recent version!
That might indicate a problem with the last update of your metadata. (Version
4.6, which we're still using, seems to add Closeable to NetcdfFileWriter, which
we are taking advantage of with try-with-resources, so our code is broken with
the older version.)
Thanks, I look forward to hearing from you.
--
Bill Wohler <Bill.Wohler@xxxxxxxx> aka <wohler@xxxxxxxx>
Cell: 650-380-1804
--
Bill Wohler <Bill.Wohler@xxxxxxxx> aka <wohler@xxxxxxxx>
Cell: 650-380-1804
_______________________________________________
NOTICE: Due to the current gap in continued funding from the U.S. National
Science Foundation (NSF),
the NSF Unidata Program Center has temporarily paused most operations. Please
see this link for details:
https://www.unidata.ucar.edu/blogs/news/entry/nsf-unidata-pause-in-most
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
To subscribe: netcdfgroup-join@xxxxxxxxxxxxxxxx
To unsubscribe: netcdfgroup-leave@xxxxxxxxxxxxxxxx