Seam 3 examples
asookazian Mar 4, 2011 2:07 AMSo I finally downloaded and extracted Maven 3, JBoss 6.0-final and Seam 3.0-CR1. Good job guys!
Whatever happened to the build.xml ant script (from Weld) with the macrodef tag that allows ant to hook into maven? When I ran
mvn clean install
for the helloworld example app, the WAR file was not automatically copied to the JBoss /server/default/deploy directory as I expected (yes, I'm lazy). either that or use maven's antrun plugin to use the ant copy task:
the idmconsole build failed:
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 46.535s [INFO] Finished at: Thu Mar 03 22:53:08 PST 2011 [INFO] Final Memory: 5M/10M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project seam-security-idmconsole-example: Coul d not resolve dependencies for project org.jboss.seam.security:seam-security-idm console-example:war:3.0.0.CR1: Failed to collect dependencies for [org.jboss.sea m.security:seam-security-impl:jar:3.0.0.CR1 (compile), org.drools:drools-core:ja r:5.1.1 (compile), org.drools:drools-compiler:jar:5.1.1 (compile), org.jboss.sea m.persistence:seam-persistence:jar:3.0.0.Beta2 (compile), org.jboss.seam.config: seam-config-xml:jar:3.0.0.Beta2 (runtime), javax.enterprise:cdi-api:jar:1.0-SP4 (provided), org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Fina l (provided), javax.validation:validation-api:jar:1.0.0.GA (provided), org.hiber nate:hibernate-validator:jar:4.0.0.GA (provided), javax.faces:jsf-api:jar:2.0 (p rovided), org.testng:testng:jar:jdk15:5.10 (test), org.glassfish.web:el-impl:jar :2.1.2-b04 (runtime)]: Failed to read artifact descriptor for javax.faces:jsf-ap i:jar:2.0: Could not transfer artifact javax.faces:jsf-api:pom:2.0 from/to jboss -public-repository-group (https://repository.jboss.org/nexus/content/groups/publ ic/): Error transferring file: repository.jboss.org: Unknown host repository.jbo ss.org -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso lutionException C:\java\seam-3.0.0.CR1\examples\idmconsole>
here is my settings.xml in .m2 directory:
<settings> <profiles> <profile> <id>jboss-public-repository</id> <repositories> <repository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>jboss-public-repository</activeProfile> </activeProfiles> </settings>