How to create Jar file using RTC Build
I want to create jar file using RTC build. To set up and Run the build I am referencing https://jazz.net/help-dev/clm/topic/com.ibm.team.concert.tutorial.doc/topics/tut_rtc_build.html. As per the link, snapshot of repository workspace is created. I wanted to know if I can generate a jar file from java project after successful completion of build.
Thanks in Advance
Dastan
2 answers
You can have JBE launch an ant build and create your jar via an ant task. See https://jazz.net/library/article/1286 for a discussion.
My recommendation is:
1. Use Maven based project in order to specify in the project properties, the type of file to generate after compile: EAR, WAR, JAR, etc.
2. Create a Build Definition based on Maven with goals clean compile package and further.
Is very easy to define and bring to you all the bennefits of dependencies managments and pluggins availables on maven.