Announcement Announcement Module
Collapse
No announcement yet.
Problem with maven dependencies in 10 minute example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with maven dependencies in 10 minute example

    Hi

    I've downloaded spring-roo-1.1.0.M3 and am trying to go through 10 minute example in the introduction documentation.
    This example fails for me when I try to do the perform tests command.
    Some maven dependencies cannot be downloaded. I'm not a maven wiz so I don't really know what to do with this.

    Is there any help to get?

    Best regards




    [Thread-5] [INFO] ------------------------------------------------------------------------
    [Thread-5] [ERROR] BUILD ERROR
    [Thread-5] [INFO] ------------------------------------------------------------------------
    [Thread-5] [INFO] Failed to resolve artifact.
    [Thread-5]
    [Thread-5] Missing:
    [Thread-5] ----------
    [Thread-5] 1) org.hibernate:hibernate-core:jar:3.5.5-Final
    [Thread-5]
    [Thread-5] Try downloading the file manually from the project website.
    [Thread-5]
    [Thread-5] Then, install it using the command:
    [Thread-5] mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-core -Dversion=3.5.5-Final -Dpa
    ckaging=jar -Dfile=/path/to/file
    [Thread-5]
    [Thread-5] Alternatively, if you host your own repository you can deploy the file there:
    [Thread-5] mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-core -Dversion=3.5.5-Final -Dpack
    aging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    [Thread-5]
    [Thread-5] Path to dependency:
    [Thread-5] 1) com.tenminutes.springmvc:springmvc:war:0.1.0.BUILD-SNAPSHOT
    [Thread-5] 2) org.hibernate:hibernate-core:jar:3.5.5-Final
    [Thread-5]
    [Thread-5] 2) javassist:javassist:jar:3.9.0.GA
    [Thread-5]
    [Thread-5] Try downloading the file manually from the project website.
    [Thread-5]
    [Thread-5] Then, install it using the command:
    [Thread-5] mvn install:install-file -DgroupId=javassist -DartifactId=javassist -Dversion=3.9.0.GA -Dpackaging=jar
    -Dfile=/path/to/file
    [Thread-5]
    [Thread-5] Alternatively, if you host your own repository you can deploy the file there:
    [Thread-5] mvn deploy:deploy-file -DgroupId=javassist -DartifactId=javassist -Dversion=3.9.0.GA -Dpackaging=jar -D
    file=/path/to/file -Durl=[url] -DrepositoryId=[id]
    [Thread-5]
    [Thread-5] Path to dependency:
    [Thread-5] 1) com.tenminutes.springmvc:springmvc:war:0.1.0.BUILD-SNAPSHOT
    [Thread-5] 2) org.hibernate:hibernate-entitymanager:jar:3.5.5-Final
    [Thread-5] 3) javassist:javassist:jar:3.9.0.GA
    [Thread-5]
    [Thread-5] 3) org.hibernate:hibernate-entitymanager:jar:3.5.5-Final
    [Thread-5]
    [Thread-5] Try downloading the file manually from the project website.
    [Thread-5]
    [Thread-5] Then, install it using the command:
    [Thread-5] mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-entitymanager -Dversion=3.5.5-F
    inal -Dpackaging=jar -Dfile=/path/to/file
    [Thread-5]
    [Thread-5] Alternatively, if you host your own repository you can deploy the file there:
    [Thread-5] mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-entitymanager -Dversion=3.5.5-Fin
    al -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    [Thread-5]
    [Thread-5] Path to dependency:
    [Thread-5] 1) com.tenminutes.springmvc:springmvc:war:0.1.0.BUILD-SNAPSHOT
    [Thread-5] 2) org.hibernate:hibernate-entitymanager:jar:3.5.5-Final
    [Thread-5]
    [Thread-5] 4) org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final
    [Thread-5]
    [Thread-5] Try downloading the file manually from the project website.
    [Thread-5]
    [Thread-5] Then, install it using the command:
    [Thread-5] mvn install:install-file -DgroupId=org.hibernate.javax.persistence -DartifactId=hibernate-jpa-2.0-api -
    Dversion=1.0.0.Final -Dpackaging=jar -Dfile=/path/to/file
    [Thread-5]
    [Thread-5] Alternatively, if you host your own repository you can deploy the file there:
    [Thread-5] mvn deploy:deploy-file -DgroupId=org.hibernate.javax.persistence -DartifactId=hibernate-jpa-2.0-api -Dv
    ersion=1.0.0.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    [Thread-5]
    [Thread-5] Path to dependency:
    [Thread-5] 1) com.tenminutes.springmvc:springmvc:war:0.1.0.BUILD-SNAPSHOT
    [Thread-5] 2) org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final
    [Thread-5]
    [Thread-5] 5) org.hibernate:hibernate-annotations:jar:3.5.5-Final
    [Thread-5]
    [Thread-5] Try downloading the file manually from the project website.
    [Thread-5]
    [Thread-5] Then, install it using the command:
    [Thread-5] mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-annotations -Dversion=3.5.5-Fin
    al -Dpackaging=jar -Dfile=/path/to/file
    [Thread-5]
    [Thread-5] Alternatively, if you host your own repository you can deploy the file there:
    [Thread-5] mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-annotations -Dversion=3.5.5-Final
    -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    [Thread-5]
    [Thread-5] Path to dependency:
    [Thread-5] 1) com.tenminutes.springmvc:springmvc:war:0.1.0.BUILD-SNAPSHOT
    [Thread-5] 2) org.hibernate:hibernate-entitymanager:jar:3.5.5-Final
    [Thread-5] 3) org.hibernate:hibernate-annotations:jar:3.5.5-Final
    [Thread-5]
    [Thread-5] 6) org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final
    [Thread-5]
    [Thread-5] Try downloading the file manually from the project website.
    [Thread-5]
    [Thread-5] Then, install it using the command:
    [Thread-5] mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-commons-annotations -Dversion=3
    .2.0.Final -Dpackaging=jar -Dfile=/path/to/file
    [Thread-5]
    [Thread-5] Alternatively, if you host your own repository you can deploy the file there:
    [Thread-5] mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-commons-annotations -Dversion=3.2
    .0.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    [Thread-5]
    [Thread-5] Path to dependency:
    [Thread-5] 1) com.tenminutes.springmvc:springmvc:war:0.1.0.BUILD-SNAPSHOT
    [Thread-5] 2) org.hibernate:hibernate-entitymanager:jar:3.5.5-Final
    [Thread-5] 3) org.hibernate:hibernate-annotations:jar:3.5.5-Final
    [Thread-5] 4) org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final
    [Thread-5]
    [Thread-5] 7) org.hibernate:hibernate-validator:jar:4.1.0.Final
    [Thread-5]
    [Thread-5] Try downloading the file manually from the project website.
    [Thread-5]
    [Thread-5] Then, install it using the command:
    [Thread-5] mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-validator -Dversion=4.1.0.Final
    -Dpackaging=jar -Dfile=/path/to/file
    [Thread-5]
    [Thread-5] Alternatively, if you host your own repository you can deploy the file there:
    [Thread-5] mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-validator -Dversion=4.1.0.Final -
    Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    [Thread-5]
    [Thread-5] Path to dependency:
    [Thread-5] 1) com.tenminutes.springmvc:springmvc:war:0.1.0.BUILD-SNAPSHOT
    [Thread-5] 2) org.hibernate:hibernate-validator:jar:4.1.0.Final
    [Thread-5]
    [Thread-5] ----------
    [Thread-5] 7 required artifacts are missing.
    [Thread-5]
    [Thread-5] for artifact:
    [Thread-5] com.tenminutes.springmvc:springmvc:war:0.1.0.BUILD-SNAPSHOT
    [Thread-5]
    [Thread-5] from the specified remote repositories:
    [Thread-5] spring-maven-milestone (http://maven.springframework.org/milestone),
    [Thread-5] central (http://repo1.maven.org/maven2),
    [Thread-5] spring-roo-repository (http://spring-roo-repository.springsource.org/release),
    [Thread-5] spring-maven-release (http://maven.springframework.org/release),
    [Thread-5] JBoss Repo (https://repository.jboss.org/nexus/content/repositories/releases)
    [Thread-5]
    [Thread-5] [INFO] ------------------------------------------------------------------------
    [Thread-5] [INFO] For more information, run Maven with the -e switch
    [Thread-5] [INFO] ------------------------------------------------------------------------
    [Thread-5] [INFO] Total time: 9 seconds
    [Thread-5] [INFO] Finished at: Fri Oct 01 11:33:46 CEST 2010
    [Thread-5] [INFO] Final Memory: 17M/31M
    [Thread-5] [INFO] ------------------------------------------------------------------------
    roo> roo>

  • #2
    I think it's because you're behind a proxy and the jboss repository (JBoss Repo (https://repository.jboss.org/nexus/c...ories/releases), which is only accessible via https) is not reachable.
    Try to set the proxy settings in MAVEN_HOME/conf/settings.xml.

    Comment

    Working...
    X