我试图通过以下示例来理解couchDB: -
http://www.javacodegeeks.com/2013/08/couchdb-relax.html
我导入的所有沙发db maven依赖项(我在google上找到)他们无法解析会话和文档
import com.fourspaces.couchdb.Session;
import com.fourspaces.couchdb.Document;
我可以随时在本地运行jar,因为我在这里学到了它: How to add local jar files in maven project?
然后我必须在我的其他环境中手动复制jar(生产/测试......)。
我想知道这有什么工作吗?
请给我一些提示或建议。
感谢。
已更新
在系统中手动添加jar并将其指向目录,如下所示:
<dependency>
<groupId>apache-collections-commons</groupId>
<artifactId>com.apache-collections-commons</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/apache-collections-commons-collections-3.1.jar</systemPath>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>com.commons-beanutils</artifactId>
<version>1.8.3</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/commons-beanutils-1.8.3.jar</systemPath>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>com.commons-codec</artifactId>
<version>1.6</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/commons-codec-1.6.jar</systemPath>
</dependency>
<dependency>
<groupId>commons-httpclient-3.1</groupId>
<artifactId>com.commons-httpclient-3.1</artifactId>
<version>3.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/commons-httpclient-3.1.jar</systemPath>
</dependency>
<dependency>
<groupId>commons-lang-2.6</groupId>
<artifactId>com.commons-lang-2.6</artifactId>
<version>2.6</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/commons-lang-2.6.jar</systemPath>
</dependency>
<dependency>
<groupId>commons-logging-api-1.1.1</groupId>
<artifactId>com.commons-logging-api-1.1.1</artifactId>
<version>1.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/commons-logging-api-1.1.1.jar</systemPath>
</dependency>
<dependency>
<groupId>couchdb</groupId>
<artifactId>com.couchdb</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/couchdb4j-0.1.2.jar</systemPath>
</dependency>
<dependency>
<groupId>ezmorph-1.0.6.jar</groupId>
<artifactId>com.ezmorph-1.0.6.jar</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/ezmorph-1.0.6.jar</systemPath>
</dependency>
<dependency>
<groupId>httpclient-4.2.1</groupId>
<artifactId>com.httpclient-4.2.1</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/httpclient-4.2.1.jar</systemPath>
</dependency>
<dependency>
<groupId>httpcore-4.2.1</groupId>
<artifactId>com.httpcore-4.2.1</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/httpcore-4.2.1.jar</systemPath>
</dependency>
<dependency>
<groupId>json.lib</groupId>
<artifactId>com.jsonLib</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/json-lib-2.4-jdk15.jar</systemPath>
</dependency>
<dependency>
<groupId>json-simple-1.1</groupId>
<artifactId>com.json-simple-1.1</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/couchdbJars/json-simple-1.1.jar</systemPath>
</dependency>