我尝试通过 maven 构建一个项目。我尝试过
$ mvn archetype:generate -DgroupId=org.thoughtworks.app -DartifactId=mvntest -DarchetypeArtifactId=maven-archetype-quickstart
它有效。然后我尝试了
$ mvn archetype:generate -DgroupId=org.thoughtworks.app -DartifactId=mvntest
我的意思是,我删除了archetypeArtifactId参数。它失败了,我没有为它提供Internet。错误消息在这里。这个参数是否使它需要Internet?忘记其他依赖。
[INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: checking for updates from central
[WARNING] repository metadata for: 'artifact org.apache.maven.archetypes:maven-archetype-quickstart' 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 FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE)