有Maven拼图jlink插件吗? [英] Is there a maven jigsaw jlink plugin?

查看:152
本文介绍了有Maven拼图jlink插件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上搜索过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.

推荐答案

.在 Github/maven-插件.

<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 ,这需要带有-

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日,可以使用 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆