Hudson Valley
GLobal property value at setting.xml not propagated to child poms with HUDSON
Posts  1 - 1  of  1
psubudhi
I have added new param at settings.xml like
profile
profile
properties "build.version" properties
profile
xml/html tags remove

The above property build.version passed to child pom.xml (${build.version}

While I use mvn clean deploy from CLI the deploy works fine and the respective artifacts deployed into
Ex: Nexus repository.
deployed are:
---------------
TEST-SNAPSHOT.pom
TEST-SNAPSHOT.pom.md5
TEST-SNAPSHOT.pom.sha1
maven-metadata.xml.md5
maven-metadata.xml.sha1
maven-metadata.xml.tmp

The above pom.xml has the param $build.veriosn} and it replaced by the value passed in the CLI -Dbuild.version.

The part is ok and now I did the same in Hudson job with Maven goal as mvn clean deploy -Dbuild.version=XXX.
Now the deployemnt is successfull, but the value is not replaced in the deployed artifacts ".pom" file.

Now the issue our other project module uses above jars and artifacts created above using dependency tag.
Now while executing the ext projext it failed to download the artifacts of the deloyed . saying
[WARNING] Unable to get resource
'com.cisco:components:pom:${build.version}' from
repository
Central (http:central): Error transferring file: Server returned
HTTP

The values is not replaced by "XXX" which is passed in the switch -Dbuild.version=XXX in TEST-SNAPSHOT.pom file.

Is there any way we can do this from Hudson. CLI works fine but Hudson is not replacing the parameter with value Passed in maven goal.

Any help in thig regards is appriciated
Save
Cancel
Reply
 
x
OK