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 |
2 answers
Hi, 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 |
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.