请教一个Maven的问题
我的Maven的版本是2.0.10,并且安装成功(执行mvn -verson正常).
但在命令行执行mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app后总是报下面的错误:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
我在网上找了很久,没有找到正确的答案,很多网友说这个问题是因为没有连接网络而不能下载最新的jar包导致的,难道就不能手动下载包吗?
请问各位大侠,应该怎样解决.最好有详细答案.谢谢!