My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for

Dependencies  
List of runtime JAR dependencies for Morphia.
Updated Oct 31, 2010 by scotthernandez

Dependencies

Morphia depends on the following third party JARs:

If you use Maven2 to build your project, it will automatically download all dependencies for you.

Including Morphia (in your project)

Manually

Add the dependencies above to your class-path and compile.

Through Maven

  • If you use Maven2 to manage your project, you can reference Morphia as a dependency.
    • Repo: http://morphia.googlecode.com/svn/mavenrepo/
    • Project Settings:
    • <dependency>
      	<groupId>com.google.code.morphia</groupId>
      	<artifactId>morphia</artifactId>
      	<version>###</version>
      </dependency>
      <!-Optional Jars (for certain features) but required by maven for bulding. -->
      <dependency>
      	<groupId>cglib</groupId>
      	<artifactId>cglib-nodep</artifactId>
      	<version>[2.1_3,)</version>
      	<type>jar</type>
      	<optional>true</optional>
      </dependency>
      <dependency>
      	<groupId>com.thoughtworks.proxytoys</groupId>
      	<artifactId>proxytoys</artifactId>
      	<version>1.0</version>
      	<type>jar</type>
      	<optional>true</optional>
      </dependency>
      

From Source

You can check out from subversion and build it yourself. You will need Maven2 for this. After you've checked out the project, change into the morphia directory, and run "mvn install" (Note: Will need to have Mongo running locally for the tests to pass).

Comment by nafe...@gmail.com, Jan 28, 2011

You have a typo on this page <!-Optional should be <!-- Optional

Comment by aaront...@gmail.com, Jul 26, 2011

Found another typo. bulding. --> should be building. -->

Comment by ahmetalp...@gmail.com, Nov 16, 2011
$ svn checkout http://morphia.googlecode.com/svn/trunk/ morphia-read-only
$ mvn install

INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.google.code.morphia:morphia:0.99.1-SNAPSHOT (/Users/alp/morphia-read-only/morphia/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find com.google.code.morphia:morphia-parent:pom:1.2 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 10 -> [Help 2]
[ERROR] [...]
Comment by chenjf2...@gmail.com, Nov 18, 2011

<groupId>com.google.code.morphia</groupId> is wrong?

<groupId>com.google.code</groupId> is right?

Comment by bolinf...@gmail.com, Jan 9, 2012

I tried syncing to revision 1376 (http://code.google.com/p/morphia/source/detail?r=1376), which was the 0.98 release, and mvn install worked there:

svn up -r 1376 mvn install

I see that there are quite a few patches proposed for fixing various pom.xml files:

http://code.google.com/p/morphia/issues/detail?id=348


Sign in to add a comment
Powered by Google Project Hosting