pom.xml
으로 실행 가능 병을 작성하려고하지만 couchbase 외부 리포지토리가 포함되어 있지 않습니다.jar-with-dependencies에는 외부 리포지토리가 포함되지 않습니다.
Eclipse에서 모든 것이 정상적으로 실행됩니다.
<repositories>
<repository>
<id>couchbase</id>
<name>Couchbase Maven Repository</name>
<layout>default</layout>
<url>http://files.couchbase.com/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
...
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>couchbase</groupId>
<artifactId>couchbase-client</artifactId>
<version>1.1.7</version>
<scope>provided</scope>
</dependency>
그리고 플러그인 :
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>fully.qualified.MainClass</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
그러나 com.fasterxml.jackson.core
이 항아리에 포함되어 있지만 com.couchbase.client
... 사전에없는
덕분에 나는 통해 치어의 카우치베이스 주식회사 클라이언트를 가지고있다.
감사합니다. 이 코드를 복사했습니다. 죄송합니다 :( –