Activating a profile in settings.xml based on a property set in pom.xml?

2010-07-02 Thread Søren Krogh Neigaard
production profile and so on, can I use this to activate profiles in settings.xml, or how do I do this? Med venlig hilsen / Kind regards Søren Krogh Neigaard Systems Engineer Søren Frichs Vej 39, 8000 Aarhus C Denmark Mobile +4541965252 soeren.krogh.neiga...@systematic.com www.systematic.com

RE: Activating a profile in settings.xml based on a property set in pom.xml?

2010-07-02 Thread Søren Krogh Neigaard
and are therefore in each developers settings.xml, but when I make a build for a testserver or other server then I want to overwrite the values defined in settings.xml. Please help :) Med venlig hilsen / Kind regards Søren Krogh Neigaard Systems Engineer Søren Frichs Vej 39, 8000 Aarhus C

RE: Read properties from pom.xml from Java

2010-02-05 Thread Søren Krogh Neigaard
also tried with this: properties db.driveroracle.jdbc.OracleDriver/db.driver db.url${settings.database.url}/db.url ... Al of my attempts gives me null :( Med venlig hilsen / Kind regards Søren Krogh Neigaard Systems Engineer Søren Frichs Vej 39, 8000 Aarhus C Denmark Mobile +4541965252

RE: Read properties from pom.xml from Java

2010-02-05 Thread Søren Krogh Neigaard
Søren Krogh Neigaard Systems Engineer Søren Frichs Vej 39, 8000 Aarhus C Denmark Mobile +4541965252 soeren.krogh.neiga...@systematic.com www.systematic.com -Original Message- From: Martin Höller [mailto:mar...@xss.co.at] Sent: 5. februar 2010 11:01 To: Maven Users List Subject: Re: Read

Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
Hi I have been tossed into a maven controlled project. We run our junit tests from Eclipse and also on our build server. When ever they are run, some maven magic happens so that username/password/driver/url for the dabase is correctly set for the user pc or the buildserver. However I need

RE: Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
properties from the correct settings.xml. Bernd you talked about making a plugin that gets called before every test, how can I do this? Med venlig hilsen / Kind regards Søren Krogh Neigaard Systems Engineer Søren Frichs Vej 39, 8000 Aarhus C Denmark Mobile +4541965252 soeren.krogh.neiga

RE: Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
I still get null with System.getProperty Med venlig hilsen / Kind regards Søren Krogh Neigaard Systems Engineer Søren Frichs Vej 39, 8000 Aarhus C Denmark Mobile +4541965252 soeren.krogh.neiga...@systematic.com www.systematic.com -Original Message- From: Martin Höller [mailto:mar

RE: Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
But I do use the @Before annotation, and I was planning to call my database cleanup from here. But my problem is that the database properties are not accessible to me (I think), and they are managed by maven (are they not?). Med venlig hilsen / Kind regards Søren Krogh Neigaard Systems