|
3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 |
5 | 5 | http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 6 | + |
6 | 7 | <modelVersion>4.0.0</modelVersion> |
7 | 8 |
|
8 | 9 | <groupId>net.nicolamurtas</groupId> |
|
38 | 39 | <junit.version>5.10.1</junit.version> |
39 | 40 | <slf4j.version>2.0.9</slf4j.version> |
40 | 41 | <logback.version>1.5.19</logback.version> |
| 42 | + |
| 43 | + <!-- Launch4j default properties --> |
| 44 | + <bundled.jre.path></bundled.jre.path> |
| 45 | + <exe.suffix></exe.suffix> |
41 | 46 | </properties> |
42 | 47 |
|
43 | 48 | <dependencies> |
|
65 | 70 |
|
66 | 71 | <build> |
67 | 72 | <plugins> |
| 73 | + |
68 | 74 | <!-- Maven Compiler Plugin --> |
69 | 75 | <plugin> |
70 | 76 | <groupId>org.apache.maven.plugins</groupId> |
|
77 | 83 | </configuration> |
78 | 84 | </plugin> |
79 | 85 |
|
80 | | - <!-- Maven Surefire Plugin for tests --> |
| 86 | + <!-- Maven Surefire Plugin --> |
81 | 87 | <plugin> |
82 | 88 | <groupId>org.apache.maven.plugins</groupId> |
83 | 89 | <artifactId>maven-surefire-plugin</artifactId> |
84 | 90 | <version>3.2.2</version> |
85 | 91 | </plugin> |
86 | 92 |
|
87 | | - <!-- Maven Jar Plugin with Main-Class --> |
88 | | - <plugin> |
89 | | - <groupId>org.apache.maven.plugins</groupId> |
90 | | - <artifactId>maven-jar-plugin</artifactId> |
91 | | - <version>3.3.0</version> |
92 | | - <configuration> |
93 | | - <archive> |
94 | | - <manifest> |
95 | | - <mainClass>net.nicolamurtas.android.emulator.AndroidEmulatorManager</mainClass> |
96 | | - <addClasspath>true</addClasspath> |
97 | | - </manifest> |
98 | | - </archive> |
99 | | - </configuration> |
100 | | - </plugin> |
101 | | - |
102 | | - <!-- Maven Assembly Plugin for fat JAR --> |
| 93 | + <!-- Fat JAR con dipendenze --> |
103 | 94 | <plugin> |
104 | 95 | <groupId>org.apache.maven.plugins</groupId> |
105 | 96 | <artifactId>maven-assembly-plugin</artifactId> |
|
124 | 115 | </execution> |
125 | 116 | </executions> |
126 | 117 | </plugin> |
| 118 | + |
| 119 | + <!-- Launch4j Plugin per EXE --> |
| 120 | + <plugin> |
| 121 | + <groupId>com.akathist.maven.plugins.launch4j</groupId> |
| 122 | + <artifactId>launch4j-maven-plugin</artifactId> |
| 123 | + <version>2.5.1</version> |
| 124 | + <executions> |
| 125 | + <execution> |
| 126 | + <id>launch4j-exe</id> |
| 127 | + <phase>package</phase> |
| 128 | + <goals> |
| 129 | + <goal>launch4j</goal> |
| 130 | + </goals> |
| 131 | + <configuration> |
| 132 | + <headerType>gui</headerType> |
| 133 | + <outfile>${project.build.directory}/${project.artifactId}-${project.version}${exe.suffix}.exe</outfile> |
| 134 | + <jar>${project.build.directory}/${project.artifactId}-${project.version}-jar-with-dependencies.jar</jar> |
| 135 | + <errTitle>Android Emulator Manager</errTitle> |
| 136 | + <classPath> |
| 137 | + <mainClass>net.nicolamurtas.android.emulator.AndroidEmulatorManager</mainClass> |
| 138 | + </classPath> |
| 139 | + <jre> |
| 140 | + <path>${bundled.jre.path}</path> |
| 141 | + <minVersion>21</minVersion> |
| 142 | + <requires64Bit>true</requires64Bit> |
| 143 | + <bundledJre64Bit>true</bundledJre64Bit> |
| 144 | + </jre> |
| 145 | + <versionInfo> |
| 146 | + <fileVersion>3.0.0.0</fileVersion> |
| 147 | + <txtFileVersion>3.0.0-SNAPSHOT</txtFileVersion> |
| 148 | + <fileDescription>Android Emulator Manager</fileDescription> |
| 149 | + <copyright>MIT License - Nicola Murtas</copyright> |
| 150 | + <productVersion>3.0.0.0</productVersion> |
| 151 | + <txtProductVersion>3.0.0-SNAPSHOT</txtProductVersion> |
| 152 | + <productName>Android Emulator Manager</productName> |
| 153 | + <internalName>android-emulator-manager</internalName> |
| 154 | + <originalFilename>android-emulator-manager.exe</originalFilename> |
| 155 | + </versionInfo> |
| 156 | + </configuration> |
| 157 | + </execution> |
| 158 | + </executions> |
| 159 | + </plugin> |
127 | 160 | </plugins> |
128 | 161 | </build> |
| 162 | + |
| 163 | + <!-- Profili per EXE --> |
| 164 | + <profiles> |
| 165 | + <!-- Richiede JRE di sistema --> |
| 166 | + <profile> |
| 167 | + <id>windows</id> |
| 168 | + <properties> |
| 169 | + <bundled.jre.path></bundled.jre.path> |
| 170 | + <exe.suffix></exe.suffix> |
| 171 | + </properties> |
| 172 | + </profile> |
| 173 | + |
| 174 | + <!-- Include una JRE locale --> |
| 175 | + <profile> |
| 176 | + <id>windows-standalone</id> |
| 177 | + <properties> |
| 178 | + <bundled.jre.path>jre</bundled.jre.path> |
| 179 | + <exe.suffix>-standalone</exe.suffix> |
| 180 | + </properties> |
| 181 | + </profile> |
| 182 | + </profiles> |
| 183 | + |
129 | 184 | </project> |
0 commit comments