Announcement Announcement Module
Collapse
No announcement yet.
MongoDb - Stuck with dependencies Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MongoDb - Stuck with dependencies

    Hi,
    I am trying to follow Tutorial 'Spring Data - MongoDB (Revision for 1.0.0.M2)'
    at http://krams915.blogspot.com/2011/04...for-100m2.html

    I am using Netbeans and can not resolve these 2 imports:

    import org.springframework.data.annotation.Id;
    import org.springframework.data.document.mongodb.mapping. Document;

    These libraries are already added to the project:
    - Spring Framework 3.1.0
    - Spring Data Commons
    - Spring Data Mongo


    Questions:
    1. what do I miss?
    2. more general - how can one locate the libraries to download, given the import string. How can you find out about possible further dependencies to resolve such issues? I am still missing the picture!

    Thanks for help, Sebut

  • #2
    Hello,

    Im using maven for this, and perhaps this mvn dependency:tree output could help you to determine missing jars :

    Code:
    [INFO] +- org.springframework.data:spring-data-mongodb:jar:1.0.0.RC1:compile
    [INFO] |  +- org.springframework:spring-beans:jar:3.1.0.RELEASE:compile
    [INFO] |  +- org.springframework:spring-expression:jar:3.1.0.RELEASE:compile
    [INFO] |  +- org.springframework.data:spring-data-commons-core:jar:1.2.0.RC1:compile
    [INFO] |  |  \- org.springframework:spring-tx:jar:3.1.0.RELEASE:compile
    [INFO] |  \- org.mongodb:mongo-java-driver:jar:2.7.1:compile

    Comment

    Working...
    X