I don't actually know if dependency POMs look at their profiles'
<activeByDefault> elements or not. I guess not, from what you're
describing. Have you tried invoking the profile explicitly when you run
Maven? (e.g. "mvn -P profileName deploy") The dependency POM's profiles
may still be available, even if they're not auto-activated.

Also, I think Wayne was suggesting actually writing config files with
the properties, packaging them into an archive, and then using that as a
dependency. (Sorry, Wayne, if I'm misunderstanding your advice.) Many
frameworks will allow you to do an #include-style import of settings
from other files, so perhaps you could have your bottom-level projects
depend on that archive, and point to its config files.

~DVA

-----Original Message-----
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2008 6:28 PM
To: Maven Users List
Subject: RE: sharing properties between modules

So there's no way to keep the properties in various profiles (all within
a pom) and just put a dependency on that pom (I think the dependency
part works, but it doesn't seem to pick up the activated profile)? 

-----Original Message-----
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2008 6:24 PM
To: Maven Users List
Subject: RE: sharing properties between modules

Wait, package what?  99% of our properties are stored in profiles.

When we want to generate the configuration for a particular stack, we
use the -P<common>,<stackname> convention. 

-----Original Message-----
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2008 6:12 PM
To: Maven Users List
Subject: Re: sharing properties between modules

Sure. Just package it as a jar, and use the dependency plugin to
unpack its contents where you need them in your related projects.

Wayne

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided "as is", 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to