-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added org.geotools.{gt-api, gt-opengis} dependencies to core/pom.xml #144
Conversation
@mbasmanova Hi Masha, I can pass "mvn clean install" without using these dependencies. And travis-ci also can pass it. Are there any special settings on your side? |
And, adding these dependencies makes GeoSpark incompatible with previous version. I tried to update GeoSparkTemplateProject using SNAPSHOT dependency but failed because of not finding HintKey. |
@jiayuasu , the main difference in setups is that I cannot pull dependencies from repos other then Maven Central. In particular, I cannot pull dependencies from osgeo. To allow build to succeed, I manually downloaded gt-* jars to local repo (~/.m2/repository/org/geotools/). It seems to me that gt-api, gt-opengis dependencies are actually used, but they are not declared explicitly and mvn is able to pull them as transitive dependencies. Adding maven-dependency-plugin [1] to the pom file may help reveal these "used, but undeclared" dependencies. The problematic classes are the following:
I see the first one in gt-api:
And the other three in gt-opengis:
Where can I find GeoSparkTemplateProject ? I'd like to see why it fails to build. |
I found GeoSparkTemplateProject and ran 'mvn package' in geospark/java. I didn't get any errors, but there are warnings about duplicate classes defined across geospark, jscience and sernetcdf jars. @jiayuasu , what was the build error you saw?
|
@mbasmanova The current GeoSparkTemplateProject can pass the execution because I manually add the dependencies such gt-api and gt-opengis in build.sbt and POM.xml. I was expecting the code at this moment ( jiayuasu/GeoSparkTemplateProject@d865c68) should fit in GeoSpark 0.9.0-snapshot (lower case) without any other changes. But it actually failed. In order to pass CRS transformation, I have to repackage gt-api and gt-opengis again in the template project. GeoSpark 0.9.0-snapshot contains your commit of gt-api and gt-opengis. |
* feat: add ST_M * fix: snowflake registration * fix: remove function from snowflake * docs: remove function from snowflake docs
* [TASK-70] Add ST_M (#144) * feat: add ST_M * fix: snowflake registration * fix: remove function from snowflake * docs: remove function from snowflake docs * Update versions --------- Co-authored-by: Furqaan Khan <46216254+furqaankhan@users.noreply.github.com>
* feat: add ST_M * fix: snowflake registration * fix: remove function from snowflake * docs: remove function from snowflake docs
Without these dependencies, I'm getting reference-not-found errors for the following import statements in SpatialRDD.java:
import org.geotools.geometry.jts.JTS;
import org.opengis.referencing.FactoryException;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.opengis.referencing.operation.MathTransform;