seam-gen error

D:/Java/jboss-seam-2.1.2/examples/seambay>ant deploy
Buildfile: build.xml

initcopy:

initpoms:
     [echo] Setting up dependencies
     [copy] Copying 1 file to D:/Java/jboss-seam-2.1.2/classes/poms
[artifact:install] [INFO] Installing D:/Java/jboss-seam-2.1.2/classes/poms/root.
pom to C:/Documents and Settings/a/.m2/repository/org/jboss/seam/root/2.1.2/root
-2.1.2.pom
[artifact:install] An error has occurred while processing the Maven artifact tas
ks.
[artifact:install]  Diagnosis:
[artifact:install]
[artifact:install] Error installing artifact 'org.jboss.seam:root:pom': Error in
stalling artifact's metadata: Error installing metadata: Error updating group re
pository metadata
[artifact:install] only whitespace content allowed before start tag and not A (p
osition: START_DOCUMENT seen A... @1:1)
[artifact:install]

BUILD FAILED
D:/Java/jboss-seam-2.1.2/build/common.build.xml:96: The following error occurred
 while executing this line:
D:/Java/jboss-seam-2.1.2/build/utilities.build.xml:80: Error installing artifact
 'org.jboss.seam:root:pom': Error installing artifact's metadata: Error installi
ng metadata: Error updating group repository metadata

Total time: 2 seconds

 

 

解决方法:把C:/Documents and Settings/a/.m2下的repository删除就可以了。这个问题不常见,困扰了我很久,很少有人遇到过,问过不少人,现在终于解决了。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值