有Maven拼图jlink插件吗? [英] Is there a maven jigsaw jlink plugin?
问题描述
我在网上搜索过maven是否有用于新Java 9 jlink
的插件,但无法从maven团队找到任何官方信息.
Does maven have a plugin for the new Java 9 jlink
I have searched online but have not been able to find anything official from the maven team.
推荐答案
是.在
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jlink-plugin</artifactId>
<version>3.0.0-SNAPSHOT</version>
</plugin>
该插件在其代码中的读取内容适用于 JEP-282 和 JEP-220 .
The plugin in its code reads to be adaptive to JEP-282 and JEP-220 from the proposals.
尽管这看起来像一个链接,但答案太多了. @khmarbaise上有一个有效的示例,位于 Github 为此,也需要a>,这需要带有-
And though this might look like a link too many answer. There is a working example from @khmarbaise on Github as well for this, which requires a toolchain with -
<configuration>
<jdkHome>/Library/Java/JavaVirtualMachines/jdk1.9.0_ea+170.jdk/Contents/Home</jdkHome>
</configuration>
加上作者的旁注引用-
目前不超过概念验证.这里的一切都是投机活动!
Currently not more than a Proof of Concept. Everything here is speculative!
Edit1 :-如评论中所分享,其他详细信息可以在 Edit2 :-日期为2018年11月10日,可以使用提供一些宝贵的反馈意见.
这篇关于有Maven拼图jlink插件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!