Skip to content

Commit 1c4e715

Browse files
authored
Update pom.xml
Add launch4j to pom.xml
1 parent 8e2ddc0 commit 1c4e715

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

pom.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,31 @@
4444
</configuration>
4545
</plugin>
4646

47+
<!-- Плагин Launch4j для создания .exe файла -->
48+
<plugin>
49+
<groupId>org.tanukisoftware.wrapper</groupId>
50+
<artifactId>launch4j-maven-plugin</artifactId>
51+
<version>2.6.1</version>
52+
<executions>
53+
<execution>
54+
<goals>
55+
<goal>launch4j</goal>
56+
</goals>
57+
</execution>
58+
</executions>
59+
<configuration>
60+
<!-- Путь к вашему JAR файлу -->
61+
<outputDirectory>${project.build.directory}</outputDirectory>
62+
<outputFile>NotepadM.exe</outputFile>
63+
<jar>${project.build.directory}/NotepadM-1.0-SNAPSHOT.jar</jar>
64+
<mainClass>com.example.Main</mainClass>
65+
<icon>${project.basedir}/src/main/resources/notepad.ico</icon> <!-- (необязательно) иконка для .exe -->
66+
<dontWrapJar>false</dontWrapJar>
67+
<stayAlive>true</stayAlive> <!-- опционально, чтобы программа не закрывалась после завершения -->
68+
</configuration>
69+
</plugin>
70+
4771
</plugins>
4872
</build>
4973

50-
</project>
74+
</project>

0 commit comments

Comments
 (0)