【问题标题】:How to develop an android app on EclipseIDE using Maven framework?如何使用 Maven 框架在 EclipseIDE 上开发 Android 应用程序?
【发布时间】:2011-07-01 05:42:21
【问题描述】:

我被这个问题困扰了 3 天。我想使用 Eclipse 在 Maven 框架中开发一个 android 应用程序。我对 Maven 框架一无所知。我正在使用 Apache Maven。我按照安装说明进行了安装,它显示了版本等,但是当我尝试设置 repo 的路径时,我得到了这个

C:\Users\377759>cd mvn -Declipse.workspace=<C:\Users\377759\Desktop\Repo> eclipse:add-maven-repo
Access is denied.

如果给出不带尖括号的路径,这就是我得到的......

C:\Users\377759>mvn -Declipse.workspace=C:\Users\377759\Desktop\Repo eclipse:add-maven-repo
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file: repo1.maven.org
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-eclipse-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Fri Jul 01 05:38:44 GMT 2011
[INFO] Final Memory: 1M/3M
[INFO] ------------------------------------------------------------------------
C:\Users\377759>

这是为什么?我该怎么办??其实我需要知道一些基础知识,比如如何在maven中打包我的文件,不同文件的功能等等。请问有没有人可以帮忙??
提前感谢战利品!

【问题讨论】:

    标签: android eclipse maven


    【解决方案1】:

    试试这些:

    要访问您的本地存储库,您需要该文件夹的路径。请记住,Subversion 需要 file:///C:/SVNRepository/ 形式的所有存储库路径

    另外,在你的 Maven settings.xml,这可以在你的 Maven_Installation_Folder\conf 中找到,请查看以下内容:

    • 如果需要,应指定代理以连接到 Internet。
    • 如果您有本地存储库,请在此处定义。 (您可以在那里查看示例定义)

    有关 Maven 的基本用法,请阅读 Apache Maven 网站

    的文档

    【讨论】:

    • 嘿,谢谢回复..还是一样:(!!
    猜你喜欢
    • 1970-01-01
    • 2017-05-23
    • 2014-05-17
    • 1970-01-01
    • 2010-10-16
    • 1970-01-01
    • 1970-01-01
    • 2012-10-22
    • 2011-11-06
    相关资源
    最近更新 更多