Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does quarkus-maven-plugin support multi-module projects?

Tags:

quarkus

I'm trying to convert a multi-module Maven project from vanilla Java EE 8 to Quarkus, and it seems that ArcAnnotationProcessor throws exceptions about unsatisfied dependencies for all injection points referencing dependencies located in a different module.

Is there any workaround, short of merging the modules?

like image 206
Harald Wellmann Avatar asked Apr 03 '19 10:04

Harald Wellmann


1 Answers

Answering my own question:

According to the Quarkus CDI guide,

The bean archive is synthesized from:

  • the application,

  • application dependencies that contain a beans.xml descriptor or a generated Jandex index (META-INF/jandex.idx),

  • and Quarkus integration code.

After adding a beans.xml to each of my reactor modules, ArC no longer complains about missing dependencies.

like image 77
Harald Wellmann Avatar answered Nov 07 '22 08:11

Harald Wellmann