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删除就可以了。这个问题不常见,困扰了我很久,很少有人遇到过,问过不少人,现在终于解决了。