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. |
One answer
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
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.