what i finaly did is the following:
added this into my pom.xml

       </plugins>
       <filters>
           <filter>user.properties</filter>
       </filters>
       <resources>

and check that this is already set:
               <filtering>true</filtering>
           </resource>
       </resources>

and in user.properties (which will not be added to source control):

jdbc.url=jdbc:mysql://localhost/test?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=utf-8
etc...

works fine.

it also should be possible with settings.xml in ~/.m2 but i did not got it working.

tibi


Matt Raible wrote:
You should be able to create 4 different sessionFactories in
src/main/resources/applicationContext-resources.xml.  If you need to
add additional properties for filtering, just add them to your pom.xml
- or hard-code them in your Spring configuration (or jdbc.properties)
files.

Matt

On 4/6/07, Nathan Anderson <[EMAIL PROTECTED]> wrote:
The 1.9.x branch has a way to have system/user specific properties like
database settings, but I believe it was tied closely to the way Ant
works.  I don't know if this functionality is in 2.0 yet, but I expect
it will be if it isn't already [Matt, let me know if I should make a
JIRA issue on this ;) ].

Nathan

tibi wrote:
> mmm is everyone working allone??
>
> tibi
>
> tibi wrote:
>>
>> hi
>> i have a project with two users, continuum and the life site.
>> all four need different database settings.
>> these settings are now in the pom file and i need to change them for
>> each.
>> is there a better way??
>>
>> thanks
>>
>> tibi
>>
>> ---------------------------------------------------------------------
>> 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