Announcement Announcement Module
Collapse
No announcement yet.
cant compile spring-data-jpa-examples Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • cant compile spring-data-jpa-examples

    Hallo,
    I cant compile the spring-data-jpa-examples from https://github.com/SpringSource/spri...a-jpa-examples

    I use maven3 and I remove the hole maven cache already, but its not working

    Code:
    cd c:\Users\gle\mvprojects
    cd spring-data-jpa-examples\spring-data-jpa-example
    mvn compile
    I get an WARNING like "org.springframework:org.springframework.aspects:j ar:3.0.5.RELEASE is missing, no dependency information available", after I get an ERROR :-(

    Code:
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Spring Data JPA sample 1.0.0.BUILD-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for org.springframework:org.springframework.aspects:jar:3.0.5.RELEASE is missing, no dependency information available
    [WARNING] The POM for javax.persistence:com.springsource.javax.persistence:jar:2.0.0 is missing, no dependency information available
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.093s
    [INFO] Finished at: Tue Apr 19 15:55:27 CEST 2011
    [INFO] Final Memory: 3M/61M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project spring-data-jpa-example: Could not resolve dependencies for project org.springframework.data.jpa.examples:spring-data-
    jpa-example:jar:1.0.0.BUILD-SNAPSHOT: The following artifacts could not be resolved: org.springframework:org.springframework.aspects:jar:3.0.5.RELEASE, javax.pe
    rsistence:com.springsource.javax.persistence:jar:2.0.0: Failure to find org.springframework:org.springframework.aspects:jar:3.0.5.RELEASE in http://maven.spring
    framework.org/milestone was cached in the local repository, resolution will not be reattempted until the update interval of repository.springframework.maven.mil
    estone has elapsed or updates are forced -> [Help 1]
    [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/DependencyResolutionException
    Maybee I need more dependencies inside my pom.xml

    What did I wrong

  • #2
    The maven artifact ID you use are the one from repository provided by spring.

    Maybe you forgot to declare the repository inside your configuration. Read
    http://ebr.springsource.com/repository/app/faq
    Last edited by gwa; Apr 19th, 2011, 10:51 AM.

    Comment


    • #3
      Thanks, its help me many

      I put inside my pom.xml
      Code:
      <repository>
          <id>com.springsource.repository.bundles.release</id>
          <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
          <url>http://repository.springsource.com/maven/bundles/release</url>
      </repository>
      
      <repository>
          <id>com.springsource.repository.bundles.external</id>
          <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
          <url>http://repository.springsource.com/maven/bundles/external</url>
      </repository>
      It works!

      Comment

      Working...
      X