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

How to define a jar filename based on RTC build using Maven?

How to define a jar filename based on RTC build using maven? I'm using JBE.

My file name should be: myprojectname-1.0-rtcbuildname

How my pom.xml might like? Any suggestions?

Thanks.

0 votes



One answer

Permanent link
Generally you can use the finalName element within the build section of the POM to change how generated artifacts are named. Certain plugins also allow setting a finalName that is specific to that plugin's execution; the JAR plugin allows this.

So then your problem becomes how do you make the "rtcbuildname" available within the Maven runtime? Lots of options there, depending on the type of build definition you are using. One approach would be to use the properties:read-project-properties mojo to read the RTC build.properties file.

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
× 382

Question asked: Aug 27 '13, 3:20 p.m.

Question was seen: 3,890 times

Last updated: Aug 28 '13, 9:30 a.m.

Confirmation Cancel Confirm