Maven并将JAR添加到系统范围
我的Android项目中有一个JAR,我希望将其添加到最终的APK中。好吧,我去: <dependency> <groupId>com.loopj.android.http</groupId> <artifactId>android-async-http</artifactId> <version>1.3.2</version> <type>jar</type> <scope>system</scope> <systemPath>${project.basedir}/libs/android-async-http-1.3.2.jar</systemPath> </dependency> 但是当我跑步时,mvn package我得到一个警告: [WARNING] Some problems were encountered while building the effective model for **apk:1.0 [WARNING] 'dependencies.dependency.systemPath' for com.loopj.android.http:android-async-http:jar should not point at files within the project directory, ${project.basedir}/libs/android-async-http-1.3.2.jar will be unresolvable by dependent projects @ line 36, column 25 在最终的APK中,没有JAR。 我该如何解决?