首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

maven的archetype:create时的异常

2012-09-24 
maven的archetype:create时的错误今天用以下面maven命令创建项目时,mvn archetype:create -DgroupIdcom.n

maven的archetype:create时的错误
今天用以下面maven命令创建项目时,

mvn archetype:create -DgroupId=com.nuc.test -DartifactId=mytest

报了以下的一个错误:
Reason: Error getting POM for 'org.apache.maven.plugins:maven-archetype-plugin' from the repository: Unable to read local copy of metadata: Cannot read metadata from '/home/enjiex/repo/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata-central.xml': end tag name </head> must be the same as start tag <META> from line 7 (position: TEXT seen ...<META HTTP-EQUIV="expires" CONTENT="0">\n</head>... @8:8)   org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST


导致项目创建失败,但遗憾的是没有找到错误原因。
后来我把本地maven资源库中的/org/apache/maven/plugins/目录下的maven-archetype-plugin删除后,然后再重试上面命令,问题得以解决。

热点排行