Seam2 以及 Seam3 的工程都改用maven管理,在运行Seam提供的example的时候,如果直接 maven package会失败。因为缺少Seam的Maven repository ,需要在maven的setting.xml文件中加上相关配置。
这个是Seam2.3的
然后再到相关example的目录下,执行mav package,把编译后的war包放到jboss中运行。jboss-public-repository jboss-public-repository-group JBoss Public Maven Repository Group https://repository.jboss.org/nexus/content/groups/public/ default true never true never jboss-public-repository-group JBoss Public Maven Repository Group https://repository.jboss.org/nexus/content/groups/public/ default true never true never jboss-staging-repository jboss-staging-repository JBoss Staging Maven Repository https://repository.jboss.org/nexus/content/groups/staging/ default true never false never jboss-public-repository