EAR plugin & composite build


(Pedro Lamarão) #1

Hello!

I am trying to do a composite build to assemble an EAR artifact.

The EAR artifact is not assembling WAR dependencies correctly.
For every WAR dependency, instead of assembling a WAR artifact, it assembles a JAR artifact instead.

We found nothing in the documentation about this.
Searching the Web, we found articles explaining that one must depend explicitly on the archives configuration of WAR projects.

Yet, in a composite build, we cannot depend explicitly on particular configurations, default is always used.
We are currently trying to “fix” default somehow to express our intent, but have failed so far.

Has anyone found a solution for this setup?