It's all about the answers!

Ask a question

How to create Jar file using RTC Build


Dastan Ali (17716) | asked Sep 03 '16, 5:48 a.m.
 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



permanent link
Alan Sampson (93749) | answered Sep 03 '16, 2:54 p.m.
JAZZ DEVELOPER
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.

permanent link
Lilian Galicia (645) | answered Sep 06 '16, 1:10 p.m.
 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.

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.