2010/11/10 jeb001 <[email protected]>:
> I've seen that I should use profiles et filters.. but I don't know exactly
> how, with my 4-part project?
>
> In which pom.xml have I to define thoses filters ? each one ?
> I'm not sure this is the best way to do it..
Yes, each one you have such configurable resources.
1. Just create all your profiles and, in each profile, put specific properties.
2. Replace all the addresses in your resources with ${...}
placeholders connected to the property you defined in your poms.
3. Instruct Maven to filter resources (filtering is off by default):
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
</resource>
</resources>
As an option, you can think of *not* putting addresses in pom.xml, but
inside your settings.xml and activated by specific profiles.
However, take in consideration what I said before: leave this kind of
configuration on the server itself.
HTH
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]