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

Class loader issues in AvroRpcTest with Quarkus 2.0.0.Alpha3 #2651 #2859

Merged
merged 1 commit into from
Jun 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions extensions/avro-rpc/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
<artifactId>quarkus-avro-deployment</artifactId>
<groupId>io.quarkus</groupId>
</dependency>
<dependency>
<artifactId>quarkus-vertx-http-deployment</artifactId>
<groupId>io.quarkus</groupId>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@
*/
package org.apache.camel.quarkus.component.avro.rpc.deployment;

import java.nio.file.Paths;

import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.IndexDependencyBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import org.apache.avro.specific.AvroGenerated;
import org.apache.camel.quarkus.component.avro.rpc.spi.VertxHttpServerFactory;
import org.apache.camel.quarkus.core.deployment.spi.CamelServiceBuildItem;
import org.jboss.jandex.AnnotationTarget;
import org.jboss.jandex.DotName;
import org.jboss.jandex.IndexView;
Expand Down Expand Up @@ -51,4 +55,10 @@ ReflectiveClassBuildItem registerForReflection(CombinedIndexBuildItem combinedIn
void registerDependencyForIndex(BuildProducer<IndexDependencyBuildItem> indexDependency) {
indexDependency.produce(new IndexDependencyBuildItem("org.apache.avro", "avro-ipc"));
}

@BuildStep
CamelServiceBuildItem httpFactory() {
return new CamelServiceBuildItem(Paths.get("META-INF/services/org/apache/camel/avro-rpc-http-server-factory"),
VertxHttpServerFactory.class.getName());
}
}
14 changes: 11 additions & 3 deletions extensions/avro-rpc/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,27 @@
<artifactId>*</artifactId>
<groupId>org.apache.avro</groupId>
</exclusion>
<exclusion>
<artifactId>camel-avro-rpc-jetty</artifactId>
<groupId>org.apache.camel</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-avro-rpc-spi</artifactId>
</dependency>
<dependency>
<artifactId>quarkus-avro</artifactId>
<groupId>io.quarkus</groupId>
</dependency>
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc-netty</artifactId>
<artifactId>quarkus-vertx-http</artifactId>
<groupId>io.quarkus</groupId>
</dependency>
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc-jetty</artifactId>
<artifactId>avro-ipc-netty</artifactId>
</dependency>
<dependency>
<groupId>org.graalvm.nativeimage</groupId>
Expand Down