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:
- Create a "lightweight" installator, that will not contain any maven artifacts (or, if that's not possible, contain all of them = "heavyweight" installator).
- When end user launches the installator, he is asked for the list of components to package (=checkboxes)
- For each component, installator asks for the configuration options (then to be saved as .property files, one per component)
- Installator then fetches only the artifacts needed (selected by user + those which are obligatory), and replaces the property file(s) in those artifacts by those from step 3 (or puts them to "classes/").
- Finally it creates ready to-use WAR package and (optionally) launches tomcat (or jetty) in a background.
IzPack helps to solve step 2 only. But is there any universal solution for that?