生成aar文件时向Axis2 web服务添加lib依赖

Add lib dependencies to Axis2 web service when generating aar file

我使用 Developer Studio 3.7.1 创建了一个 Axis2 服务项目。 项目结构如下:

ProjectName
-->\src
---->\main
------>\java
-------->Source Code of the web service
------>\resources
-------->\META-INF
---------->services.xml
-->\lib
-->Jar dependencies of the web service

在 Project Explorer 中,当我右键单击项目并 select "Export Project as Deployable Archive" 生成 aar 文件时,它不包含具有依赖项的库,我必须通过以下方式添加它们在将 aar 部署到 Axis2 服务器存储库之前。 我的问题是如何自动添加这些依赖项?

把你的lib目录放在ProjectName/src/main/resources下会把你的lib打包成aar文件。