Maven multi-module project – copying all “package” JARS from submodules into parent/target/

You could try the maven-dependency-plugin:copy plugin:goal. You will have to add this to the pom of all submodules that you want to copy. EDIT: Or just in the parent pom (see comments). <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-artifact</id> <phase>package</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>${project.groupId}</groupId> <artifactId>${project.artifactId}</artifactId> <version>${project.version}</version> <type>${project.packaging}</type> </artifactItem> </artifactItems> <outputDirectory>../Main/target/dependencies</outputDirectory> </configuration> … Read more

Build order of Maven multimodule project?

The build order is determined by the Maven reactor which is a mechanism that automatically ensures correct build order for multimodule builds by sorting the projects. See the official documentation for how it works. It says: The following relationships are honoured when sorting projects: a project dependency on another module in the build a plugin … Read more

How to create a Jandex index in Quarkus for classes in a external module

Quarkus automatically indexes the main module but, when you have additional modules containing CDI beans, entities, objects serialized as JSON, you need to explicitly index them. There are a couple of different (easy to implement) options to do so. Using the Jandex Maven plugin Just add the following to the additional module pom.xml: <build> <plugins> … Read more