当我尝试创建 Maven jlink 时,我没有看到 Java 图像

I do not see the Java image when I tried to create a maven jlink

我创建了一个简单的项目,我想在其中创建 windows 图像。我有一个带有 maven-jlink-plugin 的 maven 项目。我正在使用 Netbeans 和 Widows 10。当我创建图像时它看起来不错,但我没有看到 .bath 文件。

        <artifactId>maven-jlink-plugin</artifactId>
            <version>3.1.0</version>
            <extensions>true</extensions>
            <configuration>
                <strinpDebug>true</strinpDebug>
                <noHeaderFiles>true</noHeaderFiles>
               
                <jlinkImageName>hello</jlinkImageName>
                <mainClass>com.todlist.testingapp.HelloWorld</mainClass>
                <noManPages>true</noManPages>
            </configuration>

enter image description here

谁能知道是哪个错误或我需要做什么 fix/change?

将配置部分改成这样:

<configuration>
   <launcher>FILENAME=ARTIFACTID/PACKAGE.MAINCLASS</launcher> 
</configuration>

在哪里 FILENAME 是你想要的启动器文件的名称 ARTIFACTID 是您的 Maven 模块的 artifactId PACKAGE 是你的 main class 所在的包 MAINCLASS 是您的主 class

示例: 你有一个工件 ID 为 Prototype 的模块,一个名为 Program 的主要 class 在一个名为 [= 的包中26=],并且你想要一个 hello.bat 文件作为你的启动器,你会得到: 你好=Prototype/com.test.main.Program