Reputation: 10639
Something similar has been asked in maven user list but I have the situation, similar to that.
I have some service, packaged as .WAR, which is build by maven. However, this .WAR file requires customization: I need to package it in different ways, depending on user input. Basically, user should himself select the components, he would like to add to WAR, and define some simple configuration for these components.
What I need to do is:
IzPack helps to solve step 2 only. But is there any universal solution for that?
Upvotes: 4
Views: 251
Reputation: 570385
I don't know any universal solution doing that, especially something that will package a customized WAR. IzPack can gather install parameters (and maybe help to solve step 3), IzPack has an advanced feature called Web Installers that could help to solve step 4, but to my knowledge, it's not a build/packaging tool, so it won't cover step 5 (the most important).
Maybe a maven archetype could help here (in interactive mode). But I'm not even sure an archetype will offer the level of flexibility you need. In other words, it won't be simple.
Actually, in your case, I think that Ant (with Maven Ant Tasks or Ivy) would be the best option. I know this is not what you asked for but I don't think Maven is the right tool for your use case.
Upvotes: 2