당신은 EXE에서 jar 파일을 포장하기위한 플러그인
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.5.2</version>
</plugin>
를 사용할 수 있습니다.
사전에 답변의 설명에있는 것처럼 모두 한 병에 포장 할 수 있습니다. aberes.
그래서, 예를 들어, 구성은 다음과 같을 수 있습니다 :
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<executions>
<execution>
<id>l4j-clui</id>
<phase>install</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<!--
<headerType>gui</headerType> -->
<headerType>console</headerType>
<jar>target/yourFinalJar.jar</jar>
<outfile>target/${project.build.finalName}.exe</outfile>
<errTitle>${project.name}</errTitle>
<icon>your/Icon.ico</icon>
<jre>
<path>jre</path> <!-- if you bundle the jre -->
</jre>
<versionInfo>
<fileVersion>1.2.3.4</fileVersion>
<txtFileVersion>${project.version}</txtFileVersion>
<fileDescription>${project.description}</fileDescription>
<copyright>(c) ${project.inceptionYear} MyCompany</copyright>
<productVersion>1.0.0.0</productVersion>
<txtProductVersion>${project.version}</txtProductVersion>
<productName>${project.name}</productName>
<companyName>MyCompany</companyName>
<internalName>${project.name}</internalName>
<originalFilename>${project.build.finalName}.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
당신은 appassembler - 받는다는 - 플러그인을하는 ... 그것은 당신의 자바 응용 프로그램 배치/스크립트/JSW 파일을 생성하는 모습을 찍은 적이 있지만, exe 파일이 아닙니다. – khmarbaise
jar 파일을 래핑하지 않고 이것이 어떻게 가능한지 모르겠습니다. –