Manually install netcdfAll dependency into maven repository #94
Replies: 3 comments 1 reply
-
"quite a bit of trouble". You got that right! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion. I did update the path to be relative to the project (so no longer user specific) in my recent change to the dependencies, but this sounds like an even better approach. I'll take a look at using it. |
Beta Was this translation helpful? Give feedback.
-
Would there be any interest in transitioning fully to a conventional maven build? By 'conventional maven build' I mean:
These kinds of changes would make the pom.xml much less complicated and would allow erddap to be built in a manner that most java developers nowadays are used to, which reduces barriers to contribution. A powershell and bash script can be included to build without maven as well, if necessary. I have already done all of these changes on a local fork of ERDDAP (v2.18), so barring any Java 17 complications it is definitely possible, and I would be happy to contribute. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I notice that managing the netcdfAll.jar dependency is causing quite a bit of trouble now that Unidata has stopped publishing it.
Has manual installation of the jar into the developer's local maven repository been explored? After manually downloading the jar from https://artifacts.unidata.ucar.edu/#browse/browse:downloads-netcdf-java, you can use the following command to install the jar into your local maven repo:
Once installed, maven will be able to find the jar and the user/platform specific
<systemPath>
and<scope>
elements on the netcdfAll dependency can be removed, making the build more portable and less brittle.Beta Was this translation helpful? Give feedback.
All reactions