javafxmaven Plugin:com.zenjava-jfx:jar是否包含所有依赖项?

javafxmaven Plugin:com.zenjava-jfx:jar是否包含所有依赖项?,java,eclipse,maven,javafx,jar,Java,Eclipse,Maven,Javafx,Jar,有没有一种方法可以通过运行javafxmaven插件的jfx:jar目标来包含生成的jar中的所有依赖项 目前,所有项目依赖项都存储在名为“lib”的文件夹中。 我正在寻找一种生成javafx可执行jar的方法,就像eclipse Project>Export>Runnable jar设置有以下选项一样: 其他一些信息: 目前,如果我使用jfx:jar,生成的jar大约为150kb,除非存在依赖项lib,否则不会运行 但是,如果我使用上面显示的eclipse runnable jar导出选项

有没有一种方法可以通过运行javafxmaven插件的jfx:jar目标来包含生成的jar中的所有依赖项

目前,所有项目依赖项都存储在名为“lib”的文件夹中。

我正在寻找一种生成javafx可执行jar的方法,就像eclipse Project>Export>Runnable jar设置有以下选项一样:

其他一些信息: 目前,如果我使用jfx:jar,生成的jar大约为150kb,除非存在依赖项lib,否则不会运行

但是,如果我使用上面显示的eclipse runnable jar导出选项,则生成的jar大约为40000kB,可以自己运行

我的pom:

    <properties>
        <jfx.output.dir>${project.build.directory}/application/</jfx.output.dir>
    </properties>
    .
    .
    .
            <plugins>
                <plugin>
                    <groupId>com.zenjava</groupId>
                    <artifactId>javafx-maven-plugin</artifactId>
                    <version>8.7.0</version>
                    <configuration>
                        <mainClass>my.main.class.Main</mainClass>
                        <jfxAppOutputDir>${jfx.output.dir}</jfxAppOutputDir>
                        <allPermissions>true</allPermissions>
                    </configuration>
                </plugin>
            </plugins>

${project.build.directory}/application/
.
.
.
com.zenjava
javafxmaven插件
8.7.0
我的主课
${jfx.output.dir}
真的

com.zenjava
javafxmaven插件
8.7.0
我的主课
${jfx.output.dir}
真的

这个插件无助于捆绑ubuntu中的本机打包。ie.deb文件不起作用。Java社区应该致力于本机绑定。

已经有一段时间了,但我决定回答这个问题。
我通过使用另一个插件解决了我的问题,这个插件在问题发布时我并不熟悉

希望这能帮助别人

     <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
            <execution>
                <id>create-executable</id>
                <phase>package</phase>
                <goals>
                    <goal>single</goal>
                </goals>
            </execution>
        </executions>
        <configuration>
            <outputDirectory>${test.pack.dir}</outputDirectory>
            <appendAssemblyId>false</appendAssemblyId>
            <descriptorRefs>
                <descriptorRef>jar-with-dependencies</descriptorRef>
            </descriptorRefs>
            <archive>
                <manifest>
                    <mainClass>my.main.class.Main</mainClass>
                </manifest>
            </archive>
        </configuration>
    </plugin>

maven汇编插件
创建可执行文件
包裹
单一的
${test.pack.dir}
假的
带有依赖项的jar
我的主课
     <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
            <execution>
                <id>create-executable</id>
                <phase>package</phase>
                <goals>
                    <goal>single</goal>
                </goals>
            </execution>
        </executions>
        <configuration>
            <outputDirectory>${test.pack.dir}</outputDirectory>
            <appendAssemblyId>false</appendAssemblyId>
            <descriptorRefs>
                <descriptorRef>jar-with-dependencies</descriptorRef>
            </descriptorRefs>
            <archive>
                <manifest>
                    <mainClass>my.main.class.Main</mainClass>
                </manifest>
            </archive>
        </configuration>
    </plugin>