|
223 | 223 |
|
224 | 224 | <profiles> |
225 | 225 | <profile> |
226 | | - <id>native</id> |
| 226 | + <id>native-windows</id> |
| 227 | + <activation> |
| 228 | + <os><family>windows</family></os> |
| 229 | + </activation> |
227 | 230 | <build> |
228 | 231 | <plugins> |
229 | 232 | <plugin> |
|
254 | 257 | </profile> |
255 | 258 | <profile> |
256 | 259 | <id>shared-dll</id> |
| 260 | + <activation> |
| 261 | + <os><family>windows</family></os> |
| 262 | + </activation> |
257 | 263 | <build> |
258 | 264 | <plugins> |
259 | 265 | <plugin> |
|
283 | 289 | </plugins> |
284 | 290 | </build> |
285 | 291 | </profile> |
| 292 | + <profile> |
| 293 | + <id>native-linux</id> |
| 294 | + <activation> |
| 295 | + <os><family>unix</family></os> |
| 296 | + </activation> |
| 297 | + <build> |
| 298 | + <plugins> |
| 299 | + <plugin> |
| 300 | + <groupId>org.graalvm.buildtools</groupId> |
| 301 | + <artifactId>native-maven-plugin</artifactId> |
| 302 | + <version>${native.maven.plugin.version}</version> |
| 303 | + <extensions>true</extensions> |
| 304 | + <configuration> |
| 305 | + <buildArgs> |
| 306 | + <arg>--initialize-at-build-time=org.apache.xerces.parsers.SAXParser</arg> |
| 307 | + <arg>-Djava.security.properties=src/main/resources/custom.security</arg> |
| 308 | + <arg>-g</arg> |
| 309 | + <arg>-H:ConfigurationFileDirectories=target/recording</arg> |
| 310 | + </buildArgs> |
| 311 | + </configuration> |
| 312 | + <executions> |
| 313 | + <execution> |
| 314 | + <id>build-native</id> |
| 315 | + <goals> |
| 316 | + <goal>compile-no-fork</goal> |
| 317 | + </goals> |
| 318 | + <phase>package</phase> |
| 319 | + </execution> |
| 320 | + </executions> |
| 321 | + </plugin> |
| 322 | + </plugins> |
| 323 | + </build> |
| 324 | + </profile> |
| 325 | + <profile> |
| 326 | + <id>shared-so</id> |
| 327 | + <activation> |
| 328 | + <os><family>unix</family></os> |
| 329 | + </activation> |
| 330 | + <build> |
| 331 | + <plugins> |
| 332 | + <plugin> |
| 333 | + <groupId>org.graalvm.buildtools</groupId> |
| 334 | + <artifactId>native-maven-plugin</artifactId> |
| 335 | + <version>${native.maven.plugin.version}</version> |
| 336 | + <extensions>true</extensions> |
| 337 | + <configuration> |
| 338 | + <buildArgs> |
| 339 | + <arg>--initialize-at-build-time=org.apache.xerces.parsers.SAXParser</arg> |
| 340 | + <arg>-Djava.security.properties=src/main/resources/custom.security</arg> |
| 341 | + <arg>-g</arg> |
| 342 | + <arg>--shared</arg> |
| 343 | + <arg>-H:ConfigurationFileDirectories=target/recording</arg> |
| 344 | + </buildArgs> |
| 345 | + </configuration> |
| 346 | + <executions> |
| 347 | + <execution> |
| 348 | + <id>build-native</id> |
| 349 | + <goals> |
| 350 | + <goal>compile-no-fork</goal> |
| 351 | + </goals> |
| 352 | + <phase>package</phase> |
| 353 | + </execution> |
| 354 | + </executions> |
| 355 | + </plugin> |
| 356 | + </plugins> |
| 357 | + </build> |
| 358 | + </profile> |
| 359 | + <profile> |
| 360 | + <id>native-mac</id> |
| 361 | + <activation> |
| 362 | + <os><family>mac</family></os> |
| 363 | + </activation> |
| 364 | + <build> |
| 365 | + <plugins> |
| 366 | + <plugin> |
| 367 | + <groupId>org.graalvm.buildtools</groupId> |
| 368 | + <artifactId>native-maven-plugin</artifactId> |
| 369 | + <version>${native.maven.plugin.version}</version> |
| 370 | + <extensions>true</extensions> |
| 371 | + <configuration> |
| 372 | + <buildArgs> |
| 373 | + <arg>--initialize-at-build-time=org.apache.xerces.parsers.SAXParser</arg> |
| 374 | + <arg>-Djava.security.properties=src/main/resources/custom.security</arg> |
| 375 | + <arg>-g</arg> |
| 376 | + <arg>-H:ConfigurationFileDirectories=target/recording</arg> |
| 377 | + <arg>-H:CCompilerOption=-mmacosx-version-min=11.0</arg> |
| 378 | + </buildArgs> |
| 379 | + </configuration> |
| 380 | + <executions> |
| 381 | + <execution> |
| 382 | + <id>build-native</id> |
| 383 | + <goals> |
| 384 | + <goal>compile-no-fork</goal> |
| 385 | + </goals> |
| 386 | + <phase>package</phase> |
| 387 | + </execution> |
| 388 | + </executions> |
| 389 | + </plugin> |
| 390 | + </plugins> |
| 391 | + </build> |
| 392 | + </profile> |
| 393 | + <profile> |
| 394 | + <id>shared-dylib</id> |
| 395 | + <activation> |
| 396 | + <os><family>mac</family></os> |
| 397 | + </activation> |
| 398 | + <build> |
| 399 | + <plugins> |
| 400 | + <plugin> |
| 401 | + <groupId>org.graalvm.buildtools</groupId> |
| 402 | + <artifactId>native-maven-plugin</artifactId> |
| 403 | + <version>${native.maven.plugin.version}</version> |
| 404 | + <extensions>true</extensions> |
| 405 | + <configuration> |
| 406 | + <buildArgs> |
| 407 | + <arg>--initialize-at-build-time=org.apache.xerces.parsers.SAXParser</arg> |
| 408 | + <arg>-Djava.security.properties=src/main/resources/custom.security</arg> |
| 409 | + <arg>-g</arg> |
| 410 | + <arg>--shared</arg> |
| 411 | + <arg>-H:ConfigurationFileDirectories=target/recording</arg> |
| 412 | + <arg>-H:CCompilerOption=-mmacosx-version-min=11.0</arg> |
| 413 | + </buildArgs> |
| 414 | + </configuration> |
| 415 | + <executions> |
| 416 | + <execution> |
| 417 | + <id>build-native</id> |
| 418 | + <goals> |
| 419 | + <goal>compile-no-fork</goal> |
| 420 | + </goals> |
| 421 | + <phase>package</phase> |
| 422 | + </execution> |
| 423 | + </executions> |
| 424 | + </plugin> |
| 425 | + </plugins> |
| 426 | + </build> |
| 427 | + </profile> |
286 | 428 | </profiles> |
287 | 429 | </project> |
0 commit comments