This isn't a Maven thing, but we usually name all our component configuration 
files the same name in the respective jars.  Spring has a means to find all the 
files of the same name in the different jars (you can go check it out there, 
they use the "classpath*:" nomenclature for it).  That way, our component 
loader just asks for "classpath*:/lib/component.xml" or some such and gets back 
all the configs for components, regardless of how many there are, avoiding gaps 
in naming created over time by deprecated components and component names.

The part that *is* a Maven thing with this process is you don't need any 
complicated assembly config to get the component names worked out in a certain 
way.  

Hope that helps, B

On Jul 10, 2011, at 11:47 PM, Ivan wrote:

> Hello, guys! 
> We have a project consisting of a main module (we call it core) and several
> configurable plugin modules (we call it component). By the application
> design each module is highly customizable and depends on one or more
> configuration files. When the application starts the "conf" folder is
> scanned and application configuration is constructed from all conf-files
> located in that folder. Depending on the usage scenario several combinations
> of configuration files may be used
> 
> The basic aim we want to achieve is:
> 1) Have all possible configuration files stored in some folder of a module,
> e.g. for component A we have Aconf1.xml, Aconf2.xml and for component B
> Bconf1.xml and Bconf2.xml
> 2) For each target usage scenario we want to predefine a set of
> configuration files in a pom file that will build a distribution. E.g. for
> Scenario1 we should use Aconf1.xml and Bconf2.xml, but for Scenario2 we
> should use Aconf2.xml and Bconf1.xml
> 3) The resulting layout should look like ./lib - all *.jar files (core and
> components used) and ./conf - subset of configuration files specified in a
> distribution pom file.
> 
> Can you suggest how this goal can be achieved with maven and distribution or
> assembly plugin?
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Multimodule-distribution-tp4574067p4574067.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to