Skip to content
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

Build errors caused by JTS #263

Closed
etj opened this issue Apr 13, 2022 · 3 comments
Closed

Build errors caused by JTS #263

etj opened this issue Apr 13, 2022 · 3 comments

Comments

@etj
Copy link
Member

etj commented Apr 13, 2022

When building there are a lot of compilation errors caused by the missing jts dep:

it/geosolutions/geostore/core/model/adapter/XMultiPolygonAdapter.java:[33,34] error: package com.vividsolutions.jts.geom does not exist
it/geosolutions/geostore/core/model/adapter/XMultiPolygonAdapter.java:[34,34] error: package com.vividsolutions.jts.geom does not exist
it/geosolutions/geostore/core/model/adapter/XMultiPolygonAdapter.java:[35,32] error: package com.vividsolutions.jts.io does not exist
it/geosolutions/geostore/core/model/adapter/XMultiPolygonAdapter.java:[36,32] error: package com.vividsolutions.jts.io does not exist
it/geosolutions/geostore/core/model/adapter/XMultiPolygonAdapter.java:[37,32] error: package com.vividsolutions.jts.io does not exist
...
@etj etj changed the title Build errrors caused by jts Build errors caused by JTS Apr 13, 2022
@etj
Copy link
Member Author

etj commented Apr 13, 2022

dependency:tree reveals that that jts has changed package to org.locationtech.jts:

[INFO] --------------< it.geosolutions.geostore:geostore-model >---------------
[INFO] Building GeoStore - Core - Model 1.9-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ geostore-model ---
[WARNING] The artifact xml-apis:xml-apis:jar:2.0.2 has been relocated to xml-apis:xml-apis:jar:1.0.b2
[INFO] it.geosolutions.geostore:geostore-model:jar:1.9-SNAPSHOT
[INFO] +- javax.xml.bind:jaxb-api:jar:2.1:compile
[INFO] |  +- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] |  \- javax.activation:activation:jar:1.1:compile
[INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.1.2:compile
[INFO] +- org.hibernatespatial:hibernate-spatial-postgis:jar:1.1.1:provided
[INFO] |  +- org.hibernatespatial:hibernate-spatial:jar:1.1.1:provided
[INFO] |  +- org.hibernate:hibernate-core:jar:5.5.0.Final:provided
[INFO] |  |  +- org.jboss.logging:jboss-logging:jar:3.4.2.Final:provided
[INFO] |  |  +- javax.persistence:javax.persistence-api:jar:2.2:provided
[INFO] |  |  +- org.javassist:javassist:jar:3.27.0-GA:provided
[INFO] |  |  +- net.bytebuddy:byte-buddy:jar:1.10.22:provided
[INFO] |  |  +- antlr:antlr:jar:2.7.7:provided
[INFO] |  |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.1.1.Final:provided
[INFO] |  |  +- org.jboss:jandex:jar:2.2.3.Final:provided
[INFO] |  |  +- com.fasterxml:classmate:jar:1.5.1:provided
[INFO] |  |  +- javax.activation:javax.activation-api:jar:1.2.0:provided
[INFO] |  |  +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.2.Final:provided
[INFO] |  |  \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.1:provided
[INFO] |  |     +- org.glassfish.jaxb:txw2:jar:2.3.1:provided
[INFO] |  |     +- com.sun.istack:istack-commons-runtime:jar:3.0.7:provided
[INFO] |  |     +- org.jvnet.staxex:stax-ex:jar:1.8:provided
[INFO] |  |     \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.15:provided
[INFO] |  +- org.locationtech.jts:jts-core:jar:1.17.1:provided
[INFO] |  \- javassist:javassist:jar:3.8.0.GA:runtime
[INFO] +- asm:asm:jar:2.2.3:provided
[INFO] +- cglib:cglib-nodep:jar:2.1_3:provided
[INFO] +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.0.3:compile
[INFO] +- jdom:jdom:jar:1.0:compile
[INFO] \- junit:junit:jar:4.12:test
[INFO]    \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] ------------------------------------------------------------------------

@etj
Copy link
Member Author

etj commented Apr 13, 2022

It seems that when spring has been upgraded, hibernate (and hibernate spatial) have been upgraded only partially.

I'll mirror the changes made on geofence (which shares with geostore the same inital dependencies).

See also:

etj added a commit that referenced this issue Apr 13, 2022
etj added a commit that referenced this issue Apr 13, 2022
@etj
Copy link
Member Author

etj commented Apr 20, 2022

Closing because of #268.

@etj etj closed this as completed Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant