Include one Maven assembly inside another?
1 answer
You have three options:
- define all build executions in one plugin configuration and order them as needed. See this answer for details .
- Define an earlier stage for your build assemblies so that they are all packaged before the war starts.
- Move the contents of the jar to separate projects and specify them as military project dependencies so that they are automatically packaged. This is the "Maven way" to handle this. It will also allow you to potentially reuse banks in other wars.
I would recommend option 3 myself, but the other two should work.
+4
source to share