maven-assembly-pluginによって生成されたjarにクラスパスを追加しようとしています。マニフェストにクラスパスがない場合を除いて、アセンブリbulid。以下は私の構成です。どんな助けでもいただければ幸いです。ありがとう!
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>assembly</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>assembly/package.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>mymain.Main</mainClass>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>