我尝试使用这个 maven 插件为我的代码获取一个可执行文件,来自How can I create an executable JAR with dependencies using Maven? . 但是它最终出现错误无法执行目标 com.mycila:license-maven-plugin:3.0:check (check-license) on project rinsim-example: Execution check-license of goal com.mycila:license-maven-plugin :3.0:check failed: 无法读取头文件 LICENSE_HEADER。原因:在文件系统、类路径或 URL 中找不到资源 LICENSE_HEADER:无协议:LICENSE_HEADER -> [帮助 1]>
这是我的 Maven 文件的一部分:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.github.rinde.rinsim.examples.project.DDRP</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-my-jar-with-dependencies</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
谢谢你。