NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
[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<mailto:Bill.Wohler@xxxxxxxx>> aka <wohler@xxxxxxxx<mailto:wohler@xxxxxxxx>> Cell: 650-380-1804 -- Bill Wohler <Bill.Wohler@xxxxxxxx<mailto:Bill.Wohler@xxxxxxxx>> aka <wohler@xxxxxxxx<mailto:wohler@xxxxxxxx>> Cell: 650-380-1804
netcdfgroup
archives: