Just a quick note about this. it seems that maven actually does allow to keep all main and test sources under one dir .
just make sourceDirectory and unitTestSourceDirectory point to the same dir, then your test will be run.
About the artifact generation, when building jar, you just can exclude your test files files using ${maven.jar.excludes}.
ive just tried it with a dummy example and it seems to work.
its not that im using this layout (i have parallel source trees), so it might eventually require additional efforts for other artifacts generation.
So i think that maven doesnot strictly forbids the all-in-one-dir practice, it s more that it just discourages it. tho perhaps im missing something.
-- gd
Jason van Zyl wrote:
On Sat, 2003-07-12 at 20:14, Bob Cumbers wrote:
Never going to happen and I make no apologies for that.It's nice to see that you take user input so graciously
Give me a break.
When I think something is categorically a bad practice then the dialog
is cut short. I am not trying to win any popularity contests and I'm
don't care if every single user is happy. It's just not possible. But I
have taken loads of suggestions for Maven and they have found there way
into Maven. But there are several issues like multiple sources
directories, mixing test and application code and several other issues
which I will not change my mind on.
Maven is but one solution for building your project. I encourage anyone
not happy with it to go find something else.
I also take into consideration the number of downloads in constrast with the number of people who complain about certain limitations. I certainly don't think mixing test/application code is a good idea but I think given that I've only seen a few people want this out of the thousands that have downloaded Maven is a good indicator that most users think it's not a very good idea. I'm not a politician, I could care less if all users like me because most users are selfish and only consider their own methods and own desires when requesting features while generally never considering larger issues. As always there are the valued and treasured exceptions by users who have genuinely taken into consideration all users and the larger issues. Just because a user makes a suggestion doesn't mean it's a good one. If you're looking for grace go somewhere else.
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
