Skip to content

Commit

Permalink
Fix #4122 to use io.quarkiverse.cxf:quarkus-cxf-saaj
Browse files Browse the repository at this point in the history
  • Loading branch information
zhfeng authored and essobedo committed Jul 7, 2023
1 parent c58441a commit 7b35a7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 27 deletions.
4 changes: 4 additions & 0 deletions extensions/soap/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-jaxb-deployment</artifactId>
</dependency>
<dependency>
<groupId>io.quarkiverse.cxf</groupId>
<artifactId>quarkus-cxf-saaj-deployment</artifactId>
</dependency>

<dependency>
<groupId>org.apache.camel.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;
import org.jboss.jandex.DotName;
import org.jboss.jandex.IndexView;

Expand All @@ -42,32 +41,6 @@ NativeImageResourceBuildItem nativeImageResources() {
return new NativeImageResourceBuildItem("soap.xsd", "soap12.xsd", "xml.xsd");
}

@BuildStep
void serviceProviders(BuildProducer<ServiceProviderBuildItem> serviceProvider) {
String[] soapVersions = new String[] { "1_1", "1_2" };
for (String version : soapVersions) {
serviceProvider.produce(
new ServiceProviderBuildItem(
"javax.xml.soap.MessageFactory",
"com.sun.xml.messaging.saaj.soap.ver" + version + ".SOAPMessageFactory" + version + "Impl"));

serviceProvider.produce(
new ServiceProviderBuildItem(
"javax.xml.soap.SOAPFactory",
"com.sun.xml.messaging.saaj.soap.ver" + version + ".SOAPFactory" + version + "Impl"));
}

serviceProvider.produce(
new ServiceProviderBuildItem(
"javax.xml.soap.SOAPConnectionFactory",
"com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory"));

serviceProvider.produce(
new ServiceProviderBuildItem(
"javax.xml.soap.SAAJMetaFactory",
"com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl"));
}

@BuildStep
void registerForReflection(CombinedIndexBuildItem combinedIndex, BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
IndexView index = combinedIndex.getIndex();
Expand Down
4 changes: 4 additions & 0 deletions extensions/soap/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-jaxb</artifactId>
</dependency>
<dependency>
<groupId>io.quarkiverse.cxf</groupId>
<artifactId>quarkus-cxf-saaj</artifactId>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit 7b35a7a

Please sign in to comment.