Android SDK Full Javdocs with Maven in Eclipse

狂风中的少年 提交于 2019-12-25 05:13:21

问题


I have an Android Maven project using maven-eclipse-plugin and android-maven-plugin. Since it grabs the jars and javadocs from Maven Central (which are stubbed), I would like to instead link back to the javadocs in the Android SDK folder.

I have tried two things

  1. Packaging the $ANDROID_HOME/docs/reference folder into a Jar, and then manually installing that as the Javadocs for Android 2.2.1 in Maven using mvn install:install-file.

  2. Manually defining the javadoc location of the android-2.2.1.jar on my build path as $ANDROID_HOME/docs/reference

Neither of these have had any success in actually linking back the correct Javadocs - I remain with the stubbed ones that don't give any actually information about the methods. Any ideas how to fix this?


回答1:


This should work in your IDE setup.

However Eclipse might be confused since the source and the binary artifact will not correspond to each other again because the original android jar in the SDK as well as in the Central Repository are both stubbed.

That said I have never tried to hook this up together either and I am using IntelliJ so I would not be able to help you with Eclipse much..



来源:https://stackoverflow.com/questions/10522707/android-sdk-full-javdocs-with-maven-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!