Search code examples
maven-2dependencieskundera

I did a mvn install to kundera. I want to add the installed jar to another maven project


Prefix: I'm very new to maven so I am open to "your doing it wrong" answers.

I want to build a kundera project with MongoDB as the backend. I tried these directions but ended up with a kundera without the Document class. I was trying this tutorial that I got from this answer, and came to the conclusion that the version of kundera in that jar did not have mongo support. So I built kundera from svn and did a mvn install. I want to know what mvn command or what edits to the pom.xml file I must make to add the kendera jar I just installed to my local maven repository as a dependency to another maven project.


Solution

  • Please add this into your pom under the <repositories> section.

        <repository>
            <id>kundera-missing</id>
            <name>Kundera Public Missing Resources Repository</name>
            <url>http://kundera.googlecode.com/svn/maven2/maven-missing-resources</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    

    And add a depedency like:

        <dependency>
            <groupId>com.impetus.kundera</groupId>
            <artifactId>kundera</artifactId>
            <version>1.1.1-SNAPSHOT</version>
        </dependency>
    

    into your pom.xml That should solve yuour problem.

    You can join this forum for discussions related to Kundera: https://groups.google.com/forum/#!forum/kundera-discuss

    Regards, Amresh