I cannot seem to get the "Try Roo" example to build. I'm not new to Maven, so perhaps one of my global repositories or my own profile is screwing things up, but as I follow the example I finally receive the error as a result of the very last step "perform tests".
I'm running Maven 3.0 on OS X 10.6.6 using the latest Apple-provided version of Java.Code:[Thread-9] [INFO] Scanning for projects... [Thread-9] [INFO] [Thread-9] [INFO] ------------------------------------------------------------------------ [Thread-9] [INFO] Building foo 0.1.0.BUILD-SNAPSHOT [Thread-9] [INFO] ------------------------------------------------------------------------ [Thread-9] Downloading: https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.6.0.Final/hibernate-core-3.6.0.Final.pom [Thread-9] [Thread-9] Downloading: https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-entitymanager/3.6.0.Final/hibernate-entitymanager-3.6.0.Final.pom [Thread-9] [Thread-9] Downloading: https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.pom [Thread-9] [Thread-9] Downloading: https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-validator/4.1.0.Final/hibernate-validator-4.1.0.Final.pom [Thread-9] [Thread-9] [INFO] ------------------------------------------------------------------------ [Thread-9] [INFO] BUILD FAILURE [Thread-9] [INFO] ------------------------------------------------------------------------ [Thread-9] [INFO] Total time: 2.008s [Thread-9] [INFO] Finished at: Mon Jan 31 12:37:09 CST 2011 [Thread-9] [INFO] Final Memory: 5M/81M [Thread-9] [INFO] ------------------------------------------------------------------------ [Thread-9] [ERROR] Failed to execute goal on project foo: Could not resolve dependencies for project com.foo:foo:war:0.1.0.BUILD-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.8.1 (test), log4j:log4j:jar:1.2.16 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.aspectj:aspectjrt:jar:1.6.11.M1 (compile), org.aspectj:aspectjweaver:jar:1.6.11.M1 (compile), javax.servlet:servlet-api:jar:2.5 (provided), net.sf.flexjson:flexjson:jar:2.0 (compile), org.springframework.roo:org.springframework.roo.annotations:jar:1.1.1.RELEASE (provided), org.springframework:spring-core:jar:3.0.5.RELEASE (compile), org.springframework:spring-test:jar:3.0.5.RELEASE (test), org.springframework:spring-context:jar:3.0.5.RELEASE (compile), org.springframework:spring-aop:jar:3.0.5.RELEASE (compile), org.springframework:spring-aspects:jar:3.0.5.RELEASE (compile), org.springframework:spring-tx:jar:3.0.5.RELEASE (compile), org.hsqldb:hsqldb:jar:1.8.0.10 (compile), org.hibernate:hibernate-core:jar:3.6.0.Final (compile), org.hibernate:hibernate-entitymanager:jar:3.6.0.Final (compile), org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final (compile), org.hibernate:hibernate-validator:jar:4.1.0.Final (compile), javax.validation:validation-api:jar:1.0.0.GA (compile), cglib:cglib-nodep:jar:2.2 (compile), javax.transaction:jta:jar:1.1 (compile), org.springframework:spring-jdbc:jar:3.0.5.RELEASE (compile), org.springframework:spring-orm:jar:3.0.5.RELEASE (compile), commons-pool:commons-pool:jar:1.5.4 (compile), commons-dbcp:commons-dbcp:jar:1.3 (compile), org.apache.tiles:tiles-core:jar:2.2.1 (compile), org.apache.tiles:tiles-jsp:jar:2.2.1 (compile), org.springframework:spring-web:jar:3.0.5.RELEASE (compile), org.springframework:spring-webmvc:jar:3.0.5.RELEASE (compile), org.springframework.webflow:spring-js-resources:jar:2.2.1.RELEASE (compile), commons-digester:commons-digester:jar:2.0 (compile), commons-fileupload:commons-fileupload:jar:1.2.1 (compile), javax.servlet:jstl:jar:1.2 (compile), javax.el:el-api:jar:1.0 (provided), joda-time:joda-time:jar:1.6 (compile), javax.servlet.jsp:jsp-api:jar:2.1 (provided), com.google.gwt:gwt-servlet:jar:2.1.1 (compile), com.google.gwt:gwt-user:jar:2.1.1 (provided), org.json:json:jar:20090211 (compile), com.googlecode.gwt.inject:gin:jar:1.0 (compile), xalan:xalan:jar:2.7.1 (compile)]: Failed to read artifact descriptor for org.hibernate:hibernate-core:jar:3.6.0.Final: Could not transfer artifact org.hibernate:hibernate-core:pom:3.6.0.Final from JBoss Repo (https://repository.jboss.org/nexus/content/repositories/releases): Error transferring file: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 1] [Thread-9] [ERROR] [Thread-9] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [Thread-9] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [Thread-9] [ERROR] [Thread-9] [ERROR] For more information about the errors and possible solutions, please read the following articles: [Thread-9] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Should I switch back to Maven 2.2.1 perhaps? I know Eclipse has been using an embedded version of Maven for a long time (or rather the M2 project has), so I can't imagine that Roo lacks Maven 3 support.Code:Apache Maven 3.0 (r1004208; 2010-10-04 06:50:56-0500) Java version: 1.6.0_22 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x" version: "10.6.6" arch: "x86_64" Family: "mac"
Thank you for your help!


Reply With Quote
