graalvm / native-build-tools

Native-image plugins for various build tools
https://graalvm.github.io/native-build-tools/
Other
365 stars 57 forks source link

Maven Toolchain Support #611

Open albertattard opened 1 month ago

albertattard commented 1 month ago

Hi,

Could you please support the Maven Toolchain?

Ideally, it would be great if the same GraalVM used to compile the Java code could also be used to build the native executable, without depending on the host.

Thank you in advance.

vjovanov commented 3 weeks ago

@albertattard thanks for bringing this up. @alvarosanchez how would you see this going forward? Are there any obvious blockers ?

alvarosanchez commented 3 weeks ago

I don't see any blockers. There is a ToolchainManager component that can be used in the MOJOs. Then the user should be able to specify a custom toolchain. More info at https://maven.apache.org/plugins/maven-toolchains-plugin/toolchains/custom.html

That said, I only assign GitHub issues that I plan to work on in the short term, and this is not the case here.