|
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> |
|
65 | 66 |
|
66 | 67 | <build> |
67 | 68 | <plugins> |
| 69 | + |
68 | 70 | <!-- Maven Compiler Plugin --> |
69 | 71 | <plugin> |
70 | 72 | <groupId>org.apache.maven.plugins</groupId> |
|
77 | 79 | </configuration> |
78 | 80 | </plugin> |
79 | 81 |
|
80 | | - <!-- Maven Surefire Plugin for tests --> |
| 82 | + <!-- Maven Surefire Plugin --> |
81 | 83 | <plugin> |
82 | 84 | <groupId>org.apache.maven.plugins</groupId> |
83 | 85 | <artifactId>maven-surefire-plugin</artifactId> |
84 | 86 | <version>3.2.2</version> |
85 | 87 | </plugin> |
86 | 88 |
|
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 --> |
| 89 | + <!-- Fat JAR con dipendenze --> |
103 | 90 | <plugin> |
104 | 91 | <groupId>org.apache.maven.plugins</groupId> |
105 | 92 | <artifactId>maven-assembly-plugin</artifactId> |
|
124 | 111 | </execution> |
125 | 112 | </executions> |
126 | 113 | </plugin> |
| 114 | + |
| 115 | + <!-- Launch4j Plugin per EXE --> |
| 116 | + <plugin> |
| 117 | + <groupId>com.akathist.maven.plugins.launch4j</groupId> |
| 118 | + <artifactId>launch4j-maven-plugin</artifactId> |
| 119 | + <version>1.7.25</version> |
| 120 | + <executions> |
| 121 | + <execution> |
| 122 | + <id>launch4j-exe</id> |
| 123 | + <phase>package</phase> |
| 124 | + <goals> |
| 125 | + <goal>launch4j</goal> |
| 126 | + </goals> |
| 127 | + </execution> |
| 128 | + </executions> |
| 129 | + <configuration> |
| 130 | + <outfile>${project.build.directory}/${project.artifactId}-${project.version}${exe.suffix}.exe</outfile> |
| 131 | + <jar>${project.build.directory}/${project.artifactId}-${project.version}-jar-with-dependencies.jar</jar> |
| 132 | + <mainClass>net.nicolamurtas.android.emulator.AndroidEmulatorManager</mainClass> |
| 133 | + <errTitle>Android Emulator Manager</errTitle> |
| 134 | + <chdir>.</chdir> |
| 135 | + <priority>normal</priority> |
| 136 | + <stayAlive>false</stayAlive> |
| 137 | + <restartOnCrash>false</restartOnCrash> |
| 138 | + <minVersion>21</minVersion> |
| 139 | + <bundledJrePath>${bundled.jre.path}</bundledJrePath> |
| 140 | + <bundledJre64Bit>true</bundledJre64Bit> |
| 141 | + <requires64Bit>true</requires64Bit> |
| 142 | + </configuration> |
| 143 | + </plugin> |
127 | 144 | </plugins> |
128 | 145 | </build> |
| 146 | + |
| 147 | + <!-- Profili per EXE --> |
| 148 | + <profiles> |
| 149 | + <!-- Richiede JRE di sistema --> |
| 150 | + <profile> |
| 151 | + <id>windows</id> |
| 152 | + <properties> |
| 153 | + <bundled.jre.path></bundled.jre.path> |
| 154 | + <exe.suffix></exe.suffix> |
| 155 | + </properties> |
| 156 | + </profile> |
| 157 | + |
| 158 | + <!-- Include una JRE locale --> |
| 159 | + <profile> |
| 160 | + <id>windows-standalone</id> |
| 161 | + <properties> |
| 162 | + <bundled.jre.path>jre</bundled.jre.path> |
| 163 | + <exe.suffix>-standalone</exe.suffix> |
| 164 | + </properties> |
| 165 | + </profile> |
| 166 | + </profiles> |
| 167 | + |
129 | 168 | </project> |
0 commit comments