From 5bce90991740a74b25040d5ea7754b55b1549367 Mon Sep 17 00:00:00 2001 From: Dennis Labordus Date: Thu, 11 Nov 2021 08:32:30 +0100 Subject: [PATCH 1/2] Changed configuration to fix building native image. Signed-off-by: Dennis Labordus --- .../cim/mapping/rest/CompasCimMappingConfiguration.java | 9 +-------- app/src/main/resources/application.properties | 7 +++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/org/lfenergy/compas/cim/mapping/rest/CompasCimMappingConfiguration.java b/app/src/main/java/org/lfenergy/compas/cim/mapping/rest/CompasCimMappingConfiguration.java index 2f810cc..d8d3a16 100644 --- a/app/src/main/java/org/lfenergy/compas/cim/mapping/rest/CompasCimMappingConfiguration.java +++ b/app/src/main/java/org/lfenergy/compas/cim/mapping/rest/CompasCimMappingConfiguration.java @@ -15,14 +15,7 @@ * This is done by using the RegisterForReflection annotation. */ @RegisterForReflection(targets = { - com.powsybl.triplestore.impl.rdf4j.TripleStoreFactoryServiceRDF4J.class, - org.lfenergy.compas.scl2007b4.model.ObjectFactory.class, - org.lfenergy.compas.scl2007b4.model.TDA.class, - org.lfenergy.compas.scl2007b4.model.TSDI.class, - org.lfenergy.compas.scl2007b4.model.TDAI.class, - javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class, - javax.xml.bind.annotation.adapters.CollapsedStringAdapter.class, - javax.xml.bind.annotation.W3CDomHandler.class, + com.powsybl.triplestore.impl.rdf4j.TripleStoreFactoryServiceRDF4J.class }) public class CompasCimMappingConfiguration { @Produces diff --git a/app/src/main/resources/application.properties b/app/src/main/resources/application.properties index b861875..a806d8d 100644 --- a/app/src/main/resources/application.properties +++ b/app/src/main/resources/application.properties @@ -11,6 +11,13 @@ quarkus.http.limits.max-body-size = 150M quarkus.log.level = INFO quarkus.log.category."org.lfenergy.compas.cim.mapping".level = INFO +# Add scanning this dependency for scanning, also used by native compilation. +quarkus.index-dependency.scl2007b4.group-id=org.lfenergy.compas.core +quarkus.index-dependency.scl2007b4.artifact-id=scl2007b4 + +quarkus.index-dependency.jaxb-api.group-id=org.jboss.spec.javax.xml.bind +quarkus.index-dependency.jaxb-api.artifact-id=jboss-jaxb-api_2.3_spec + # Settings needed for native compilation of the project. quarkus.native.resources.includes=**/com.powsybl.triplestore.api.TripleStoreFactoryService,CIM*.sparql quarkus.native.additional-build-args=--initialize-at-run-time=org.eclipse.rdf4j.common.iteration.TimeLimitIteration,--initialize-at-run-time=org.apache.http.impl.auth.NTLMEngineImpl From c5485c50572454214db19c4ebc9fcb7510a0a149 Mon Sep 17 00:00:00 2001 From: Dennis Labordus Date: Thu, 11 Nov 2021 08:35:04 +0100 Subject: [PATCH 2/2] Changed configuration to fix building native image. Signed-off-by: Dennis Labordus --- app/src/main/resources/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/resources/application.properties b/app/src/main/resources/application.properties index a806d8d..56499b5 100644 --- a/app/src/main/resources/application.properties +++ b/app/src/main/resources/application.properties @@ -11,7 +11,7 @@ quarkus.http.limits.max-body-size = 150M quarkus.log.level = INFO quarkus.log.category."org.lfenergy.compas.cim.mapping".level = INFO -# Add scanning this dependency for scanning, also used by native compilation. +# Add scanning these dependencies for scanning, also used by native compilation. quarkus.index-dependency.scl2007b4.group-id=org.lfenergy.compas.core quarkus.index-dependency.scl2007b4.artifact-id=scl2007b4