Native image construction of a Quarkus application breaks when referencing Geotools library - quarkus

The generation of the native image with GraalVM of my application in Quarkus breaks when I'm using the geotools library
I need to find a workarround because I use geotools to read shapefile (SHP format) and convert it to WKT format.
Does anyone know of an alternative to solve this?
I reference these classes in my code:
import org.geotools.data.DataStore;
import org.geotools.data.DataStoreFinder;
import org.geotools.data.FeatureSource;
import org.geotools.feature.FeatureCollection;
import org.geotools.feature.FeatureIterator;

Related

Why I cannot import JsonFormat from package com.google.protobuf.util?

Currently, I'm working on google cloud (google pub/sub). I've used java client. But I cannot import JsonFormat class from package com.google.protobuf.util. I'm using intelliJ idea, I have tried invalidate cache and restart the idea. What am I missing?
My build.gradle
// google cloud
implementation platform('com.google.cloud:libraries-bom:22.0.0')
implementation 'com.google.cloud:google-cloud-pubsub'
In latest versions of google cloud bom the package com.google.cloud.protobuf:protobuf-util is used with runtime scope, so it's not available during compilation. Not sure why they changed it...
Adding manually the dependency with compile scope (maven) or implementation (gradle) should help.
Source:
https://mvnrepository.com/artifact/com.google.cloud/google-cloud-pubsub/1.114.7

Cannot import ArangoDriver class in springboot

I have been trying to run an application in batch mode to upload data to arango db. But to start the driver in batch mode I tried importing ArangoDriver class. But the class is not accessible. It is giving import error. But I'am able to import all the other packages in com.arangodb. I tried creating instance as per the tutorial available here https://www.arangodb.com/2014/11/arangodb-java-driver-batch-asynchronous-mode/'. But Iam not able to import anything. Has new changes have come to arango? How to resolve this?

Exporting classes without package in OSGI

I am embedding 3rd party JARs in pom.xml. The JARs have few classes which are not part of any package but I want to export these classes using the tag. Please help me how to do the same.
An OSGi bundle cannot import the default package, so there's no use in exporting it from your bundle.
Since you want to export the API, I assume you have one or more other bundles that need to use it. If you are in control of those bundles, I recommend that you try to wrap your own API around the classes that you need to make available. Create this API in a package of your own liking and export that package with the Export-Package header in your jar. See also this SO post: wrap-third-party-jar-that-imports-from-default-package-using-bndtools.

the ggts cant import the spring source code

I want to read and learn Spring's source code, but I cant import the gradle project after I download the source cdoe.
Here is the error message
enter image description here
can anybody help me?

What is the best way to import a GraphML or GraphSON file into Neo4j in ruby?

I am using jruby-1.7.6 and neo4j 2.0.1.
There is a Pacer Gem and pacer-neo4j gem that provides
Pacer::GraphML.import
which can be used to import GraphML file into neo4j.
What to do about GraphSON file? What are other options to Is pacer only way to import GraphML file to neo4j through ruby?
You can also import graphml with the shell import tools, which works independent of any programming language.
For GraphSON you can probably just pass the GraphSON-JSON Map to Cypher directly and use the map + collection support to import the details?
See for an ruby example of some JSON: https://gist.github.com/jexp/3b60a3a1f29061853e8c

Resources