File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments