0
종속성이있는 jar 파일을 만들어야하고 rxtx 라이브러리를 종속성으로 추가해야합니다. 하지만 내가 항아리를 만들 때 항아리 파일에서 rxtx를 볼 수 없습니다. 제게 올바른 방법을 알려주세요.maven 어셈블리 플러그인이있는 jar 파일로 rxtx 라이브러리 꾸미기
이는 치어 파일
....
<dependency>
<groupId>org.rxtx</groupId>
<artifactId>rxtxcomm</artifactId>
<version>2.0-7pre1</version>
<scope>run</scope>
</dependency>
....
....
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>uom.elect.smeter.Output</mainClass>
</manifest>
</archive>
</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>
....
내 관련 부분은 오타를 rxtxcomm''의 범위'run'이다? 그렇지 않다면 문제의 원인이 될 수 있습니다. 'runtime' 또는 다른 유효한 범위 여야합니다. – Raghuram
err .. 나는 그것을 시도했다. 운이 없다. 어셈블리 플러그인은 rxtx를 제외한 모든 패키지를 어셈블합니다. – tiran
저에게 맞습니다. 자세한 내용을 제공해야합니다. rxtxcomm은 Maven 중앙 또는 로컬 저장소에서 사용할 수 있습니까? – Raghuram