我开发一个Android应用程序使用Eclipse,在 Android开发工具(ADT)插件并在 Maven的Android的插件。
I develop an Android App using eclipse, the Android Development Tools (ADT) plugin and the maven-android-plugin.
构建和安装应用程序的命令行( MVN安装
/ ADB安装
)正常工作 - 特别是它包括在pom.xml中指定的所有依赖关系。
Building and installing the application on the commandline (mvn install
/ adb install
) works fine - especially it includes all dependencies specified in the pom.xml.
将应用程序部署通过Eclipse到Android(如运行 - > Android应用程序)不会自动把依赖的apk文件 - 尽管在pom.xml中指定。我还没到明确的声明它们在Eclipse项目构建路径 - >库
对话框
Deploying the application to Android via eclipse (Run as -> Android Application) does not automatically put the dependencies in the apk file - although specified in the pom.xml. I haven to explicit declare them in the eclipse project Build Path -> Libraries
dialog.
有没有一种方法,使日食包括中定义的依赖关系的的pom.xml 的没有项目definig他们两次的构建路径 - >库的
Is there a way to make eclipse include the dependencies defined in the pom.xml without definig them twice in the project Build-Path -> Libraries?
编辑::要澄清 - Eclipse项目包括Maven依赖条目中的pom.xml中指定的所有依赖关系。但这些依赖关系将不包括在通过在运行方式 - > Android应用程序安装APK。 ,包括他们,每个人心中都有的Java构建路径 - >库添加为额外的对话框。这是痛苦!
To clarify - the eclipse project includes a "Maven Dependencies" entry with all dependencies specified in the pom.xml. But these dependencies will not be included in the apk during install via "Run As -> Android Application". To include them, each one has to be extra added in the "Java Build Path -> Libraries" dialog. That's the pain!
也许你应该看看 m2e- Android的,假设你已经在使用 m2eclipse的。
Perhaps you should look at m2e-android, assuming you are already using M2Eclipse.
上一篇:抛出:IllegalArgumentException抛出requestLocationUpdate()抛出、IllegalArgumentException、requestLocationUpdat