Results 1 to 3 of 3

Thread: cant compile spring-data-jpa-examples

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    Default 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. #2
    Join Date
    Apr 2011
    Posts
    107

    Default

    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 at 09:51 AM.

  3. #3
    Join Date
    Apr 2011
    Posts
    2

    Default

    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •