如何在不干扰版本控制的情况下向eclipse项目添加外部jar



我需要将roottools添加到我的android项目中,我要做的是将jar添加到我的git repo中,并将jar添加到这里提到的eclipse构建配置中。问题是,第二步不会导致回购发生任何变化。更改只在.classpath文件中,每个人都建议将其添加到gitignore中。问题是,如何将roottools.jar is included in the build path添加到git库中?

使用不依赖于IDE的构建工具,如Maven。然后将构建脚本(在Maven的情况下是pom.xml)检查到git中。

那么你仍然可以使用Eclipse,因为它支持Maven。

下面是关于如何使用Maven设置Android项目的信息:http://code.google.com/p/maven-android-plugin/wiki/GettingStarted

最新更新