mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-14 14:10:52 +00:00
Bump native-maven-plugin from 0.10.2 to 0.10.3 (#1144)
The plugin introduced some "windows fix"[1] that causes current arg parsing to fail. Solution seems to be to split each arg in own line, but that introduced another set of challenges. [1] https://github.com/graalvm/native-build-tools/pull/609 Supersedes https://github.com/apache/maven-mvnd/pull/1135
This commit is contained in:
@@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.release>11</maven.compiler.release>
|
<maven.compiler.release>11</maven.compiler.release>
|
||||||
<graalvm-native-static-opt />
|
|
||||||
<graalvm-native-glibc-opt />
|
|
||||||
<patchelf.skip>true</patchelf.skip>
|
<patchelf.skip>true</patchelf.skip>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -190,9 +188,19 @@
|
|||||||
<family>!mac</family>
|
<family>!mac</family>
|
||||||
</os>
|
</os>
|
||||||
</activation>
|
</activation>
|
||||||
<properties>
|
<build>
|
||||||
<graalvm-native-static-opt>-H:+StaticExecutableWithDynamicLibC</graalvm-native-static-opt>
|
<plugins>
|
||||||
</properties>
|
<plugin>
|
||||||
|
<groupId>org.graalvm.buildtools</groupId>
|
||||||
|
<artifactId>native-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<buildArgs combine.children="append">
|
||||||
|
<buildArg>-H:+StaticExecutableWithDynamicLibC</buildArg>
|
||||||
|
</buildArgs>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
@@ -206,11 +214,23 @@
|
|||||||
</file>
|
</file>
|
||||||
</activation>
|
</activation>
|
||||||
<properties>
|
<properties>
|
||||||
<graalvm-native-glibc-opt>-H:CCompilerPath=${basedir}/src/main/resources/glibc/gcc
|
|
||||||
-H:CCompilerOption=-B${project.build.directory}/graalvm-libs-for-glibc-2.12
|
|
||||||
-H:CLibraryPath=${project.build.directory}/graalvm-libs-for-glibc-2.12</graalvm-native-glibc-opt>
|
|
||||||
<patchelf.skip>false</patchelf.skip>
|
<patchelf.skip>false</patchelf.skip>
|
||||||
</properties>
|
</properties>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.graalvm.buildtools</groupId>
|
||||||
|
<artifactId>native-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<buildArgs combine.children="append">
|
||||||
|
<buildArg>-H:CCompilerPath=${basedir}/src/main/resources/glibc/gcc</buildArg>
|
||||||
|
<buildArg>-H:CCompilerOption=-B${project.build.directory}/graalvm-libs-for-glibc-2.12</buildArg>
|
||||||
|
<buildArg>-H:CLibraryPath=${project.build.directory}/graalvm-libs-for-glibc-2.12</buildArg>
|
||||||
|
</buildArgs>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
@@ -227,17 +247,17 @@
|
|||||||
<skip>false</skip>
|
<skip>false</skip>
|
||||||
<mainClass>org.mvndaemon.mvnd.client.DefaultClient</mainClass>
|
<mainClass>org.mvndaemon.mvnd.client.DefaultClient</mainClass>
|
||||||
<imageName>mvnd</imageName>
|
<imageName>mvnd</imageName>
|
||||||
<buildArgs>--no-fallback
|
<buildArgs combine.children="append">
|
||||||
-march=compatibility
|
<buildArg>--no-fallback</buildArg>
|
||||||
-H:+UnlockExperimentalVMOptions
|
<buildArg>-march=compatibility</buildArg>
|
||||||
${graalvm-native-static-opt}
|
<buildArg>-H:+UnlockExperimentalVMOptions</buildArg>
|
||||||
${graalvm-native-glibc-opt}
|
<buildArg>-H:IncludeResources=org/mvndaemon/mvnd/.*</buildArg>
|
||||||
-H:IncludeResources=org/mvndaemon/mvnd/.*
|
<buildArg>-H:IncludeResources=mvnd-bash-completion.bash</buildArg>
|
||||||
-H:IncludeResources=mvnd-bash-completion.bash
|
<buildArg>-H:-ParseRuntimeOptions</buildArg>
|
||||||
-H:-ParseRuntimeOptions
|
<buildArg>-H:+AddAllCharsets</buildArg>
|
||||||
-H:+AddAllCharsets
|
<buildArg>-H:+ReportExceptionStackTraces</buildArg>
|
||||||
-H:+ReportExceptionStackTraces
|
<buildArg>-ea</buildArg>
|
||||||
-ea</buildArgs>
|
</buildArgs>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
@@ -106,7 +106,7 @@
|
|||||||
<phase>none</phase>
|
<phase>none</phase>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>mvn-39</id>
|
<id>java-test</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>test</goal>
|
<goal>test</goal>
|
||||||
</goals>
|
</goals>
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
<artifactId>maven-failsafe-plugin</artifactId>
|
<artifactId>maven-failsafe-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>native-39</id>
|
<id>native-test</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>integration-test</goal>
|
<goal>integration-test</goal>
|
||||||
<goal>verify</goal>
|
<goal>verify</goal>
|
||||||
|
2
pom.xml
2
pom.xml
@@ -79,7 +79,7 @@
|
|||||||
<commons-compress.version>1.27.1</commons-compress.version>
|
<commons-compress.version>1.27.1</commons-compress.version>
|
||||||
<!-- cannot upgrade graalvm to 23.0.0 which requires JDK >= 20 -->
|
<!-- cannot upgrade graalvm to 23.0.0 which requires JDK >= 20 -->
|
||||||
<graalvm.version>24.1.0</graalvm.version>
|
<graalvm.version>24.1.0</graalvm.version>
|
||||||
<graalvm.plugin.version>0.10.2</graalvm.plugin.version>
|
<graalvm.plugin.version>0.10.3</graalvm.plugin.version>
|
||||||
<groovy.version>4.0.23</groovy.version>
|
<groovy.version>4.0.23</groovy.version>
|
||||||
<jakarta.inject.version>1.0</jakarta.inject.version>
|
<jakarta.inject.version>1.0</jakarta.inject.version>
|
||||||
<jline.version>3.27.0</jline.version>
|
<jline.version>3.27.0</jline.version>
|
||||||
|
Reference in New Issue
Block a user