You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "cjdaniels4@gmail.com" <cj...@gmail.com> on 2011/06/08 23:29:29 UTC

Re: Default location of config files -> Maven Standard Directroy Layo ut?

This thread is old, but it appears to be the closest to a definitive answer
that I can find.


Martin Höller wrote:
> 
> On 26-03-2007 11:15 Doyle D.G. (Duncan) wrote:
> 
>> Furthermore, where should one put configuration files which are needed
>> for testing? There is no 'src/test/config' listed in the Maven Standard
>> Directory Layout.
> 
> Put it in src/test/resources.
> 

Martin, I don't think this is the answer Duncan is looking for. If I
understand him correctly (and he is asking the same question that I have),
he is referring to configuration files that are *not* needed on the test
classpath, such as a testng.xml file for configuring TestNG execution. This
is not a file that belongs on any classpath. It is simply used during build
execution to control test execution.

As Doyle suggests, it seems that the place to put such test configuration
files would be src/test/config, but this directory is not identified in
Maven's standard directory layout. Only src/main/config is specified, and
since the purpose of that directory is not clearly described or understood,
we can only guess as to its purpose.

Under the assumption that src/main/config is the "right" place for files
such as checkstyle.xml, it seems that a similar directory for test
configuration files (src/test/config) would be the "right" place to put
files such as testng.xml, but again, nobody seems to have definitively
answered this long-standing question.

Anyone care to add to this, or point me to a more recent discussion/solution
for this?

--
View this message in context: http://maven.40175.n5.nabble.com/Default-location-of-config-files-Maven-Standard-Directroy-Layo-ut-tp84421p4470992.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org