It's all about the answers!

Ask a question

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


Gustavo Monti Rocha (251316) | asked Aug 27 '13, 3:20 p.m.
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.

One answer



permanent link
Jeff Care (1.0k3833) | answered Aug 28 '13, 9:30 a.m.
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.

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.