【发布时间】: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中打包我的文件,不同文件的功能等等。请问有没有人可以帮忙??
提前感谢战利品!
【问题讨论】: