|
138 | 138 | <scope>test</scope> |
139 | 139 | </dependency> |
140 | 140 | </dependencies> |
141 | | - |
142 | | - <profiles> |
143 | | - <profile> |
144 | | - <id>static</id> |
145 | | - <build> |
146 | | - <plugins> |
147 | | - <plugin> |
148 | | - <groupId>org.apache.maven.plugins</groupId> |
149 | | - <artifactId>maven-jar-plugin</artifactId> |
150 | | - <version>3.4.2</version> |
151 | | - </plugin> |
152 | | - <plugin> |
153 | | - <groupId>org.apache.maven.plugins</groupId> |
154 | | - <artifactId>maven-compiler-plugin</artifactId> |
155 | | - <version>3.14.0</version> |
156 | | - <configuration> |
157 | | - <compilerArgs> |
158 | | - <arg>-parameters</arg> |
159 | | - </compilerArgs> |
160 | | - <source>${maven.compiler.source}</source> |
161 | | - <target>${maven.compiler.target}</target> |
162 | | - <encoding>${project.build.sourceEncoding}</encoding> |
163 | | - </configuration> |
164 | | - </plugin> |
165 | | - <plugin> |
166 | | - <groupId>pl.project13.maven</groupId> |
167 | | - <artifactId>git-commit-id-plugin</artifactId> |
168 | | - <version>4.9.10</version> |
169 | | - <executions> |
170 | | - <execution> |
171 | | - <id>get-the-git-infos</id> |
172 | | - <goals> |
173 | | - <goal>revision</goal> |
174 | | - </goals> |
175 | | - </execution> |
176 | | - </executions> |
177 | | - <configuration> |
178 | | - <dotGitDirectory>${project.basedir}/.git</dotGitDirectory> |
179 | | - <prefix>git</prefix> |
180 | | - <verbose>false</verbose> |
181 | | - <generateGitPropertiesFile>true</generateGitPropertiesFile> |
182 | | - <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties |
183 | | - </generateGitPropertiesFilename> |
184 | | - <format>properties</format> |
185 | | - <gitDescribe> |
186 | | - <skip>false</skip> |
187 | | - <always>false</always> |
188 | | - <dirty>-dirty</dirty> |
189 | | - </gitDescribe> |
190 | | - </configuration> |
191 | | - </plugin> |
192 | | - <plugin> |
193 | | - <groupId>org.graalvm.nativeimage</groupId> |
194 | | - <artifactId>native-image-maven-plugin</artifactId> |
195 | | - <version>21.2.0</version> |
196 | | - <configuration> |
197 | | - <imageName>misc</imageName> |
198 | | - <mainClass>com.moilioncircle.redis.rdb.cli.Main</mainClass> |
199 | | - <buildArgs combine.children="append"> |
200 | | - -H:+StaticExecutableWithDynamicLibC |
201 | | - </buildArgs> |
202 | | - </configuration> |
203 | | - <executions> |
204 | | - <execution> |
205 | | - <goals> |
206 | | - <goal>native-image</goal> |
207 | | - </goals> |
208 | | - <phase>package</phase> |
209 | | - </execution> |
210 | | - </executions> |
211 | | - </plugin> |
212 | | - <plugin> |
213 | | - <groupId>org.apache.maven.plugins</groupId> |
214 | | - <artifactId>maven-surefire-plugin</artifactId> |
215 | | - <version>3.5.3</version> |
216 | | - <configuration> |
217 | | - <argLine>-Dfile.encoding=UTF-8</argLine> |
218 | | - </configuration> |
219 | | - </plugin> |
220 | | - <plugin> |
221 | | - <artifactId>maven-assembly-plugin</artifactId> |
222 | | - <version>3.7.1</version> |
223 | | - <configuration> |
224 | | - <finalName>${project.artifactId}</finalName> |
225 | | - <descriptors> |
226 | | - <descriptor>src/main/assembly/assembly-native.xml</descriptor> |
227 | | - </descriptors> |
228 | | - </configuration> |
229 | | - <executions> |
230 | | - <execution> |
231 | | - <id>make-assembly</id> |
232 | | - <phase>verify</phase> |
233 | | - <goals> |
234 | | - <goal>single</goal> |
235 | | - </goals> |
236 | | - </execution> |
237 | | - </executions> |
238 | | - </plugin> |
239 | | - </plugins> |
240 | | - </build> |
241 | | - </profile> |
242 | | - <profile> |
243 | | - <id>shared</id> |
244 | | - <build> |
245 | | - <plugins> |
246 | | - <plugin> |
247 | | - <groupId>org.apache.maven.plugins</groupId> |
248 | | - <artifactId>maven-jar-plugin</artifactId> |
249 | | - <version>3.4.2</version> |
250 | | - </plugin> |
251 | | - <plugin> |
252 | | - <groupId>org.apache.maven.plugins</groupId> |
253 | | - <artifactId>maven-compiler-plugin</artifactId> |
254 | | - <version>3.14.0</version> |
255 | | - <configuration> |
256 | | - <compilerArgs> |
257 | | - <arg>-parameters</arg> |
258 | | - </compilerArgs> |
259 | | - <source>${maven.compiler.source}</source> |
260 | | - <target>${maven.compiler.target}</target> |
261 | | - <encoding>${project.build.sourceEncoding}</encoding> |
262 | | - </configuration> |
263 | | - </plugin> |
264 | | - <plugin> |
265 | | - <groupId>pl.project13.maven</groupId> |
266 | | - <artifactId>git-commit-id-plugin</artifactId> |
267 | | - <version>4.9.10</version> |
268 | | - <executions> |
269 | | - <execution> |
270 | | - <id>get-the-git-infos</id> |
271 | | - <goals> |
272 | | - <goal>revision</goal> |
273 | | - </goals> |
274 | | - </execution> |
275 | | - </executions> |
276 | | - <configuration> |
277 | | - <dotGitDirectory>${project.basedir}/.git</dotGitDirectory> |
278 | | - <prefix>git</prefix> |
279 | | - <verbose>false</verbose> |
280 | | - <generateGitPropertiesFile>true</generateGitPropertiesFile> |
281 | | - <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties |
282 | | - </generateGitPropertiesFilename> |
283 | | - <format>properties</format> |
284 | | - <gitDescribe> |
285 | | - <skip>false</skip> |
286 | | - <always>false</always> |
287 | | - <dirty>-dirty</dirty> |
288 | | - </gitDescribe> |
289 | | - </configuration> |
290 | | - </plugin> |
291 | | - <plugin> |
292 | | - <groupId>org.graalvm.nativeimage</groupId> |
293 | | - <artifactId>native-image-maven-plugin</artifactId> |
294 | | - <version>21.2.0</version> |
295 | | - <configuration> |
296 | | - <imageName>misc</imageName> |
297 | | - <mainClass>com.moilioncircle.redis.rdb.cli.Main</mainClass> |
298 | | - </configuration> |
299 | | - <executions> |
300 | | - <execution> |
301 | | - <goals> |
302 | | - <goal>native-image</goal> |
303 | | - </goals> |
304 | | - <phase>package</phase> |
305 | | - </execution> |
306 | | - </executions> |
307 | | - </plugin> |
308 | | - <plugin> |
309 | | - <groupId>org.apache.maven.plugins</groupId> |
310 | | - <artifactId>maven-surefire-plugin</artifactId> |
311 | | - <version>3.5.3</version> |
312 | | - <configuration> |
313 | | - <argLine>-Dfile.encoding=UTF-8</argLine> |
314 | | - </configuration> |
315 | | - </plugin> |
316 | | - <plugin> |
317 | | - <artifactId>maven-assembly-plugin</artifactId> |
318 | | - <version>3.7.1</version> |
319 | | - <configuration> |
320 | | - <finalName>${project.artifactId}</finalName> |
321 | | - <descriptors> |
322 | | - <descriptor>src/main/assembly/assembly-native.xml</descriptor> |
323 | | - </descriptors> |
324 | | - </configuration> |
325 | | - <executions> |
326 | | - <execution> |
327 | | - <id>make-assembly</id> |
328 | | - <phase>verify</phase> |
329 | | - <goals> |
330 | | - <goal>single</goal> |
331 | | - </goals> |
332 | | - </execution> |
333 | | - </executions> |
334 | | - </plugin> |
335 | | - </plugins> |
336 | | - </build> |
337 | | - </profile> |
338 | | - </profiles> |
339 | 141 |
|
340 | 142 | <build> |
341 | 143 | <plugins> |
|
0 commit comments