Thursday, March 21, 2013

Packaging dependent jars inside an aar file using WSO2 Developer Studio

After creating a "Axis2 Service Project" using WSO2 Developer studio, you will get a folder hierarchy like below.






If you want to package external jars within axis2 archive (.aar) , put them under resources/lib as shown below. (I have put sampleJar.jar inside resources/lib folder.)






Create the .aar file out of this project. You will get an .aar file having the sampleJar.jar inside the .aar file under lib directory.