使用Maven2创建项目失败
我使用Maven2创建项目,创建命令:mvn archetype:create -DgroupId=cn.gwssi.cpees -DartifactId=cpees
报错如下:
[INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: checking
for updates from central
[WARNING] repository metadata for: 'artifact org.apache.maven.archetypes:maven-a
rchetype-quickstart' could not be retrieved from repository: central due to an e
rror: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-quickstart
Version: RELEASE
Reason: Unable to determine the release version
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=
maven-archetype-quickstart \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave
n-archetype-quickstart \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE
请高手指教。