我刚刚接手了一个maven项目,在此之前我没有使用maven的经验。下面的错误是什么?关于这个&add-maven-repo'的信息非常少。在线...我该如何解决它?
[ERROR] Could not find goal 'add-maven-repo' in plugin org.apache.maven.plugins:
maven-eclipse-plugin:2.10 among available goals clean, configure-workspace, ecli
pse, help, install-plugins, myeclipse, myeclipse-clean, rad, rad-clean, remove-c
ache, resolve-workspace-dependencies, to-maven -> [Help 1]
这是我跑的命令
mvn -Declipse.workspace=<my_workspace_absolute_path> eclipse:add-maven-repo
由于
答案 0 :(得分:3)
似乎已弃用add-maven-repo
。您可以尝试使用:eclipse:configure-workspace
http://maven.apache.org/plugins-archives/maven-eclipse-plugin-2.8/add-maven-repo-mojo.html http://www.mkyong.com/maven/how-to-configure-m2_repo-variable-in-eclipse-ide/