It's all about the answers!

Ask a question

Maven team build not seing propertis from build definition


Radu BARBUS (1612) | asked May 19 '11, 9:26 a.m.
Hi,

I setup a Maven Team build definition, and all is fine except that the properties defined in the build definition are not accessible in the pom.xml file.

I use the maven-antrun-plugin.

the error I get looks like the following:
BUILD ERROR
------------------------------------------------------------------------
An Ant BuildException has occured: "passwordFile" contains path to non-existent file "D:\builds\my_project\${passwordFile}".

I defined a property called passwordFile in the build definition.

Once I move the properties in the pom.xml, they are visible.

Did anyone else have this problem?

thanks
Radu

2 answers



permanent link
Radu BARBUS (1612) | answered May 25 '11, 6:06 a.m.


Hi Radu,

To make the properties available so the ant snippet in the pom.xml can use them, you need to add the following (and any other properties that you want to use) to the Java VM arguments field on the Maven page of the build definition:

-DpasswordFile=${passwordFile}

Brent Ulbricht
Developer/Lead - RTC Build


Hi Brent,

It works now.

Thanks a lot
Radu

permanent link
Brent Ulbricht (2.5k11) | answered May 24 '11, 4:25 p.m.
JAZZ DEVELOPER
Hi,

I setup a Maven Team build definition, and all is fine except that the properties defined in the build definition are not accessible in the pom.xml file.

I use the maven-antrun-plugin.

the error I get looks like the following:
BUILD ERROR
------------------------------------------------------------------------
An Ant BuildException has occured: "passwordFile" contains path to non-existent file "D:\builds\my_project\${passwordFile}".

I defined a property called passwordFile in the build definition.

Once I move the properties in the pom.xml, they are visible.

Did anyone else have this problem?

thanks
Radu


Hi Radu,

To make the properties available so the ant snippet in the pom.xml can use them, you need to add the following (and any other properties that you want to use) to the Java VM arguments field on the Maven page of the build definition:

-DpasswordFile=${passwordFile}

Brent Ulbricht
Developer/Lead - RTC Build

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.