Martin Desruisseaux created SIS-545:
---------------------------------------
Summary: Automatic download of optional dependencies
Key: SIS-545
URL: https://issues.apache.org/jira/browse/SIS-545
Project: Spatial Information Systems
Issue Type: Improvement
Components: Command line, GUI
Affects Versions: 1.2
Reporter: Martin Desruisseaux
Fix For: 1.3
Some examples documented in the web site do not work unless optional
dependencies are manually installed. For example with the metadata example
given in the [command-line|https://sis.apache.org/command-line.html] page,
adding the {{--format xml}} option causes the following error:
{noformat}
Implementation of JAXB-API has not been found on module path or classpath.
Causée par ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
{noformat}
The error can be fixed by running the following commands:
{code:bash}
cd binaries/
wget
https://repo1.maven.org/maven2/org/glassfish/jaxb/jaxb-runtime/2.3.6/jaxb-runtime-2.3.6.jar
wget
https://repo1.maven.org/maven2/com/sun/istack/istack-commons-runtime/3.0.12/istack-commons-runtime-3.0.12.jar
{code}
We should add a mechanism in Apabe SIS command-line and JavaFX applications for
offering to download those dependencies automatically when first required.
The combined size of above dependencies is about 1 Mb. It is not very big, so
we could have included those dependencies in SIS binary distribution. But the
same mechanism could be applied to UCAR netCDF and to Amazon SDK dependencies
too, which are much bigger.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)