Hi all,

just some thoughts:

I think maven doesn't make use of it, because the art of configuration
management is not a simple thing to implement and one can find nearly
in every project a different approach to it. the "config"-directory
appears to me to be a first idea of where configuration data could be
stored - for simple cases anyways.

so, how to use it is completely up to you. I'm using it for files
which are only usefull in the assembly to be delivered to clients.
i.e. files which could end up in a "/etc"-dir inside the installation
directory of a deployed application. So I use the assembly-plugin to
store those files in the right place in the assembly to be created.


maybe, this makes some sense to you.


Stefan

2006/6/8, Wayne Fay <[EMAIL PROTECTED]>:
This is all theory... Perhaps while writing the docs, someone involved
with Maven development thought it might be useful to have a
src/main/config directory and so it was included in docs, but since it
was never implemented in the code, it is not being used today.

Perhaps file a JIRA bug and request that references to this config
directory be removed if it is not actually being used, or ask for
clarification on the proper usage of the directory, etc.

Wayne

On 6/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I've seen all the reference information on it as well however Maven 2.X
> appears to completely ignore that directory...so I really don't
> understand what its real purpose is.
>
> So say I store application configuration files in there...now what?
> Maven doesn't read them or treat it as a source directory. The directory
> doesn't show up on the classpath so the application or test classes
> can't read anything in it.  Packing doesn't package that dir so nothing
> in it will end up in any of your jar files. Assemblies don't assemble
> the dir so it won't end up in any of your assemblies. What else is
> there?
>
> Nothing in Maven seems to do anything with that directory so why is it a
> standard directory?
>
> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 08, 2006 11:17 AM
> To: Maven Users List
> Subject: Re: uses for config directory?
>
> Found a reference to src/main/config in the Better Builds with Maven
> book (pg 273):
>
> src/main/config/
> Standard location for application configuration files.
>
> So I guess you'd use that directory for application configuration
> files. But I have never personally used it, as of this point.
>
> Wayne
>
> On 6/8/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > What version of Maven?
> > What "config" directory?
> >
> > Where did you read about this config directory etc?
> >
> > Wayne
> >
> > On 6/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> > > Can someone tell me or give me an example of what the config
> directory
> > > is actually used for?
> > >
> > >
> > >
> > > I can't seem to figure out a reasonable use for this directory.
> Maven
> > > doesn't actually appear to do anything with this dir.  It doesn't
> end up
> > > on the classpath that I can tell,  packaging and assemblies ignore
> it,
> > > you can't filter stuff in it.  What do you actually do with it?
> > >
> > >
> > >
> > > ---Rudy
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> 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]
>
>

---------------------------------------------------------------------
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