View Source

h2. Maven G.A.V

{excerpt:hidden=true}How to add couch4j as a dependency for Maven users.{excerpt}

Please add the {{couch4j}} dependency and an appropriate [logging binding|Maven#Logging].

{note}There are currently only snapshots available.{note}

{code:xml}
<dependency>
<groupId>org.couch4j</groupId>
<artifactId>couch4j</artifactId>
<version>0.9.0-SNAPSHOT</version>
</dependency>

<!-- AND --!>


<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.5.10</version>
</dependency>

<!-- OR -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.10</version>
</dependency>

<!-- OR -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.5.10</version>
</dependency>
{code}


{anchor:Logging}
See [Logging] for more information about the logging facade SLF4J couch4j is using.

h3. Repository (temporary)

Please add the following repository definition until the library is available from the official maven 2 repository:

{code:xml}
<repository>
<id>couch4j-repos</id>
<name>couch4j repos</name>
<url>http://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
</snapshots>
</repository>
{code}