Include one Maven assembly inside another?

My project generates 3/4 builds, 3 cans and 1 war. [I need to use assemblies myself] I need to include 2 of these collectors in my war. How can I ensure that there are 2 other banks created before the war squad is created? Answer, please

+2


source to share


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







All Articles