如果直接部署seam 2.3.1的examples,比如在examples/registration目录下执行mvn clean install会报告如下的错误信息:
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.jboss.seam.examples:registration:2.3.1.Final (/home/subaochen/devel/jboss-seam-2.3.1.Final/examples/registration/pom.xml) has 1 error
[ERROR] Non-resolvable import POM: Failure to find org.jboss.seam:bom:pom:2.3.1.Final in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.jboss.seam:examples:2.3.1.Final, /home/subaochen/devel/jboss-seam-2.3.1.Final/examples/pom.xml, line 228, column 25 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
<repositories>
<repository>
<id>JBoss repository</id>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
</repository>
</repositories>
否则在maven repository中找不到seam 2.3.1。奇怪的是,jboss为什么自己搞一个repository,而不是加入maven central repository呢?
--转自
该贴由system转至本版2014-10-24 22:35:40