meteoinfo / MeteoInfoDemo

MeteoInfo library usage demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MeteoInfoLib version issue

kxygk opened this issue · comments

I unsuccessfully tried to git clone and mvn compile this.

The last commit bumped MeteoInfoLib version to v2.3 but this version is not available one Maven: https://mvnrepository.com/artifact/org.meteothink/MeteoInfoLib

I actually don't really understand where the source code for MeteoInfoLib is... otherwise I'd post this issue there. It's not listed as one of the meteoinfo repositories here on Github.

Rolling back to v2.2 also fails

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:21 min
[INFO] Finished at: 2021-08-11T20:24:38+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project MeteoInfoDemo: Could not resolve dependencies for project org.example:MeteoInfoDemo:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.meteothink:MeteoInfoLib:jar:2.2 -> org.mozilla.intl:chardet:jar:1.0: Failed to read artifact descriptor for org.mozilla.intl:chardet:jar:1.0: Could not transfer artifact org.mozilla.intl:chardet:pom:1.0 from/to boundless (http://repo.boundlessgeo.com/main/): Transfer failed for http://repo.boundlessgeo.com/main/org/mozilla/intl/chardet/1.0/chardet-1.0.pom: Unknown host repo.boundlessgeo.com: Temporary failure in name resolution -> [Help 1]

Similarly with v2.1 (and v2.0)

[ERROR] Failed to execute goal on project MeteoInfoDemo: Could not resolve dependencies for project org.example:MeteoInfoDemo:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.meteothink:MeteoInfoLib:jar:2.1 -> edu.ucar:netcdfAll:jar:5.1.0: Failed to read artifact descriptor for edu.ucar:netcdfAll:jar:5.1.0: Could not transfer artifact edu.ucar:netcdfAll:pom:5.1.0 from/to boundless (http://repo.boundlessgeo.com/main/): Transfer failed for http://repo.boundlessgeo.com/main/edu/ucar/netcdfAll/5.1.0/netcdfAll-5.1.0.pom: Unknown host repo.boundlessgeo.com: Temporary failure in name resolution -> [Help 1]

MeteoInfoLib has been split to several libraries (https://github.com/meteoinfo/MeteoInfo) and this demo program is quite old. I will try to build a new demo with newest MeteoInfo labraries in near future. In fact, you can also refer to meteoinfo-map module for GIS GUI development.

Thanks! Okay, I see how it's now a monorepo of many libraries.

I just put the issue up in case someone else comes across the problem.
If it's updated later then I'll give it a try :) There is no rush. Thanks for all the quick replies

I just updated this demo program using MeteoInfo libraries 3.1.0. You can try it now.

git clone https://github.com/meteoinfo/MeteoInfoDemo.git
cd MeteoInfoDemo/
mvn compile

I get a build failure

$ mvn compile
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< org.example:MeteoInfoDemo >----------------------
[INFO] Building MeteoInfoDemo 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from boundless: http://repo.boundlessgeo.com/main/org/mozilla/intl/chardet/1.0/chardet-1.0.pom
Downloading from ebi: http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/org/mozilla/intl/chardet/1.0/chardet-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.306 s
[INFO] Finished at: 2021-08-11T21:44:00+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project MeteoInfoDemo: Could not resolve dependencies for project org.example:MeteoInfoDemo:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.meteothink:meteoinfo-chart:jar:3.1.0 -> org.meteothink:meteoinfo-geo:jar:3.1.0 -> org.meteothink:meteoinfo-math:jar:3.1.0 -> org.meteothink:meteoinfo-ndarray:jar:3.1.0 -> org.meteothink:meteoinfo-common:jar:3.1.0 -> org.mozilla.intl:chardet:jar:1.0: Failed to read artifact descriptor for org.mozilla.intl:chardet:jar:1.0: Could not transfer artifact org.mozilla.intl:chardet:pom:1.0 from/to boundless (http://repo.boundlessgeo.com/main/): Transfer failed for http://repo.boundlessgeo.com/main/org/mozilla/intl/chardet/1.0/chardet-1.0.pom: Unknown host repo.boundlessgeo.com: Temporary failure in name resolution -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

It runs for you?

$ java --version
openjdk 14.0.2 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 14.0.2+12-Ubuntu-120.04, mixed mode, sharing)

I looks like it's not using Maven to fetch chardet. Instead it's trying to go to some http://repo.boundlessgeo.com/ but it can't reach this repository (b/c it's down?)

However chardet is available on Maven: https://mvnrepository.com/artifact/org.mozilla.intl/chardet

Sorry, I'm not too familiar with fixing Java builds - otherwise I'd try to fix it and give you a PR

chardet is not in Maven central repository and unfortunately its location of EBI repository is broken. You can download MeteoInfo software (http://www.meteothink.org/downloads/files/MeteoInfo_3.1.1.zip), unzip and find chardet-1.0.jar file under MeteoInfo -> lib folder, and copy it in your local maven repository. For example: C:\Users\yaqiang.m2\repository\org\mozilla\intl\chardet\1.0

At the link provided it says

"Note: this artifact is located at EBI repository (https://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/)"

However it's not clear to me if that repository works.

Sorry for all the third party troubles :S Sounds annoying and out of your control. But in the end I guess one can't use a library that doesn't resolve its dependencies. Thanks for the quick fix though :)

I will come back to this is I need to integrate visualization. At the moment I just need to generate lots of moisture tracks over Thailand 😆 so I think this can wait