Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Maven team build not seing propertis from build definition

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

1 vote



2 answers

Permanent link
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

1 vote


Permanent link


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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 19 '11, 9:26 a.m.

Question was seen: 6,535 times

Last updated: May 19 '11, 9:26 a.m.

Confirmation Cancel Confirm