It's all about the answers!

Ask a question

Maven ( pom.xml) for RTC Plain Java API


Desh Sharma (4669) | asked Mar 19 '13, 3:48 p.m.
I am looking for pom.xml for RTC  Plain Java API. Do we have one?

2 answers



permanent link
Desh Sharma (4669) | answered Mar 20 '13, 9:28 a.m.
edited Mar 20 '13, 9:32 a.m.
Thanks Scott,

Here is what I have done.

1) Unzip the RTC-Client-plainJavaLib-4.0.zip in a directory,
2) Created Dependency:  for i in `ls -1 *jar`; do name=$i ; echo "<dependency> <groupId> $name </groupId><artifactId>$name</artifactId><version>4.0</version></dependency>";done
Copied the output of above command  into pom.xml.
3) Maven install
for i in `ls -1 *jar`; do echo $i;   mvn install:install-file -Dfile=$i -DgroupId=$i -DartifactId=$i -Dversion=4.0 -Dpackaging=jar ;done


permanent link
Scott Cowan (966310) | answered Mar 19 '13, 5:06 p.m.
JAZZ DEVELOPER
Hi Desh,

The Plain Java Client Libraries is not a maven project, so there is no pom.xml for them.  However, if your project is using maven, you can include the libraries into your project's pom.xml.  This thread describes some approaches.

http://stackoverflow.com/questions/364114/can-i-add-jars-to-maven-2-build-classpath-without-installing-them

Hope that helps,
Scott

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.