---
title: "MAVEN创建一个java的web应用报错，请大侠帮忙看看"
author: "XIAOLINJAVA"
date: "2011-10-09T23:14:23Z"
tags: []
categories: ["行业应用"]
slug: "maven-java-web"
draft: false
lastmod: "2011-10-09T23:14:23Z"
id: 1188162
url: "https://xiaolinjava.iteye.com/blog/1188162"
---

```java

F:\study\ssm>mvn archetype:create -DgroupId=com.xcl -DartifactId=ssm -DarchetypeArtifactId=maven-archetype-webapp
[info] Scanning for projects...
[info] Searching repository for plugin with prefix: 'archetype'.
[info] ------------------------------------------------------------------------
[error] BUILD ERROR
[info] ------------------------------------------------------------------------
[info] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-archetype-plugin

Reason: Error getting POM for 'org.apache.maven.plugins:maven-archetype-plugin' from the repository: Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata.
  org.apache.maven.plugins:maven-archetype-plugin:pom:2.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugins:maven-archetype-plugin


[info] ------------------------------------------------------------------------
[info] For more information, run Maven with the -e switch
[info] ------------------------------------------------------------------------
[info] Total time: < 1 second
[info] Finished at: Sun Oct 09 15:06:09 GMT 2011
[info] Final Memory: 1M/4M
[info] ------------------------------------------------------------------------

```