RE: Read properties from pom.xml from Java

2010-02-05 Thread bernd . adamowicz
is needed like 'settings.profiles.profile'. Just try it. Bernd Søren Krogh Neigaard soeren.krogh.neiga...@systematic.com wrote on 05.02.2010 08:47:04: [image removed] RE: Read properties from pom.xml from Java Søren Krogh Neigaard to: Maven Users List 05.02.2010 08:47

RE: Read properties from pom.xml from Java

2010-02-05 Thread Søren Krogh Neigaard
soeren.krogh.neiga...@systematic.com www.systematic.com -Original Message- From: Martin Höller [mailto:mar...@xss.co.at] Sent: 5. februar 2010 09:00 To: Maven Users List Subject: Re: Read properties from pom.xml from Java Hi! Am Freitag, 5. Februar 2010 08:41:02 schrieb Søren Krogh

Re: Read properties from pom.xml from Java

2010-02-05 Thread Stephen Connolly
...@systematic.com www.systematic.com -Original Message- From: bernd.adamow...@external.icw-global.com [mailto: bernd.adamow...@external.icw-global.com] Sent: 4. februar 2010 11:59 To: Maven Users List Subject: Re: Read properties from pom.xml from Java Sounds like this might help you: - Create

Re: Read properties from pom.xml from Java

2010-02-05 Thread Martin Höller
Am Freitag, 5. Februar 2010 09:50:04 schrieb Søren Krogh Neigaard: Im getting grey hairs :) I tried with this in my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.5/version configuration systemPropertyVariables

RE: Read properties from pom.xml from Java

2010-02-05 Thread Søren Krogh Neigaard
properties from pom.xml from Java Am Freitag, 5. Februar 2010 09:50:04 schrieb Søren Krogh Neigaard: Im getting grey hairs :) I tried with this in my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.5/version configuration

Re: Read properties from pom.xml from Java

2010-02-05 Thread Stephen Connolly
On 5 February 2010 10:01, Martin Höller mar...@xss.co.at wrote: Am Freitag, 5. Februar 2010 09:50:04 schrieb Søren Krogh Neigaard: Im getting grey hairs :) I tried with this in my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId

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 bernd . adamowicz
Krogh Neigaard soeren.krogh.neiga...@systematic.com wrote on 04.02.2010 09:59:26: [image removed] Read properties from pom.xml from Java Søren Krogh Neigaard to: users 04.02.2010 10:00 Please respond to Maven Users List Hi I have been tossed into a maven controlled

Re: Read properties from pom.xml from Java

2010-02-04 Thread Martin Höller
Hi! Am Donnerstag, 4. Februar 2010 09:59:26 schrieb Søren Krogh Neigaard: The username/password/driver/url for the database is set in the pom.xml file by maven. How do I read these values from my Java helper class? Set them in the pom.xml via properties, eg.: project properties

Re: Read properties from pom.xml from Java

2010-02-04 Thread Karl Heinz Marbaise
://maven-plugins.sourceforge.net/maven-dbunit-plugin/ maven-dbunit-plugin not to forget http://www.dbunit.org/ dbUnit itself... Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/Read-properties-from-pom.xml-from-Java-tp27449529p27451408.html Sent from

RE: Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
...@systematic.com www.systematic.com -Original Message- From: bernd.adamow...@external.icw-global.com [mailto:bernd.adamow...@external.icw-global.com] Sent: 4. februar 2010 11:59 To: Maven Users List Subject: Re: Read properties from pom.xml from Java Sounds like this might help you: - Create

Re: Read properties from pom.xml from Java

2010-02-04 Thread Anders Hammar
+4541965252 soeren.krogh.neiga...@systematic.com www.systematic.com -Original Message- From: bernd.adamow...@external.icw-global.com [mailto: bernd.adamow...@external.icw-global.com] Sent: 4. februar 2010 11:59 To: Maven Users List Subject: Re: Read properties from pom.xml from Java

Re: Read properties from pom.xml from Java

2010-02-04 Thread Martin Höller
Am Freitag, 5. Februar 2010 07:45:51 schrieb Søren Krogh Neigaard: Thank you all for your answers I tried adding the following to my pom.xml properties database.driveroracle.jdbc.OracleDriver/database.driver database.url${database.url}/database.url

RE: Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
...@xss.co.at] Sent: 5. februar 2010 08:30 To: Maven Users List Subject: Re: Read properties from pom.xml from Java Am Freitag, 5. Februar 2010 07:45:51 schrieb Søren Krogh Neigaard: Thank you all for your answers I tried adding the following to my pom.xml properties

RE: Read properties from pom.xml from Java

2010-02-04 Thread bernd . adamowicz
- From: bernd.adamow...@external.icw-global.com [ mailto:bernd.adamow...@external.icw-global.com] Sent: 4. februar 2010 11:59 To: Maven Users List Subject: Re: Read properties from pom.xml from Java Sounds like this might help you: - Create a Maven plugin which is executed in any phase bevore

RE: Read properties from pom.xml from Java

2010-02-04 Thread Søren Krogh Neigaard
Subject: RE: Read properties from pom.xml from Java Søren Krogh Neigaard soeren.krogh.neiga...@systematic.com wrote on 05.02.2010 07:45:51: We are already using the sql-maven-plugin to bootstrap the database, but it only gets run once before all junit tests are run, and that is not what I

Re: Read properties from pom.xml from Java

2010-02-04 Thread Martin Höller
Hi! Am Freitag, 5. Februar 2010 08:41:02 schrieb Søren Krogh Neigaard: I have this in my settings.xml settings profiles profile activation activeByDefaulttrue/activeByDefault /activation properties