diff --git a/.settings/.gitignore b/.settings/.gitignore
new file mode 100644
index 0000000..3b1537c
--- /dev/null
+++ b/.settings/.gitignore
@@ -0,0 +1 @@
+/org.eclipse.jdt.core.prefs
diff --git a/pom.xml b/pom.xml
index 6594681..4b5c9b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,6 +17,7 @@
1.0
${sis.version}
https://code-repo.d4science.org/gCubeSystem
+ 5.3.3
@@ -31,14 +32,22 @@
org.gcube.distribution
gcube-smartgears-bom
- 2.0.0
+ 2.1.0
pom
import
org.gcube.distribution
gcube-bom
- 2.0.0
+ 2.0.1
+ pom
+ import
+
+
+
+ org.apache.sis
+ storage
+ 1.0
pom
import
@@ -49,7 +58,7 @@
org.gcube.data.transfer
data-transfer-plugin-framework
- [1.0.2,2.0.0-SNAPSHOT)
+ [1.0.2,2.0.0)
@@ -70,7 +79,7 @@
org.gcube.spatial.data
sdi-library
- [1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)
+ [1.0.0,2.0.0)
@@ -109,6 +118,20 @@
+
+
+
+ com.esri.geometry
+ esri-geometry-api
+
+
+
+
+ edu.ucar
+ cdm
+
+
+
@@ -118,14 +141,7 @@
runtime
-
-
-
-
- edu.ucar
- netcdf
- 4.3.22
-
+
@@ -138,7 +154,6 @@
junit
junit
- 4.12
test
@@ -151,13 +166,23 @@
org.opengis
geoapi-conformance
- 3.0.1
test
+
+
+ unidata-all
+ Unidata All
+
+ https://nexus.d4science.org/nexus/content/repositories/unidata/
+
+
+
+
+
diff --git a/src/test/java/org/gcube/data/transfer/plugins/sis/TestGetMetadata.java b/src/test/java/org/gcube/data/transfer/plugins/sis/TestGetMetadata.java
index 0adb476..1f6791b 100644
--- a/src/test/java/org/gcube/data/transfer/plugins/sis/TestGetMetadata.java
+++ b/src/test/java/org/gcube/data/transfer/plugins/sis/TestGetMetadata.java
@@ -2,12 +2,10 @@ package org.gcube.data.transfer.plugins.sis;
import java.io.File;
import java.io.FileInputStream;
-import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
-import java.net.MalformedURLException;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.security.MessageDigest;
@@ -15,7 +13,6 @@ import java.security.NoSuchAlgorithmException;
import org.apache.sis.storage.DataStoreException;
import org.apache.sis.storage.UnsupportedStorageException;
-import org.gcube.data.transfer.model.TransferTicket.Status;
import org.gcube.data.transfer.plugins.thredds.sis.SisPlugin;
public class TestGetMetadata {
@@ -28,11 +25,35 @@ public class TestGetMetadata {
for(String f:toCheckFiles) {
System.out.println("checking "+f);
- check(false,f);
+ try{
+ check(false,f);
+ }catch(UnsupportedStorageException e) {
+ System.err.println(e.getMessage());
+// System.out.println("Trying opening "+f+" manually");
+// open(f);
+ }
}
System.out.println("Done");
}
+
+// private static void open(String path) throws IOException, UnsupportedStorageException, DataStoreException {
+// System.out.println("Opening "+path);
+// NetcdfFile f=NetcdfFiles.open(path);
+// System.out.println(f.getFileTypeDescription()+"\t"+f.getFileTypeId());
+//
+//
+// NetcdfDataset ncDs=NetcdfDatasets.openDataset(path);
+//// NcMLReaderNew.
+////
+// System.out.println(ncDs.getFileTypeDescription()+"\t"+ncDs.getFileTypeId());
+//
+//// NetcdfDatasets.openFile(path,null);
+//
+//
+// }
+
+
private static void check(boolean checkCopy,String src) throws UnsupportedStorageException, DataStoreException, IOException, NoSuchAlgorithmException {
File original=new File(src);