pom.xml手动添加jar包

        <dependency>
            <groupId>com.oracle</groupId> //自定义
            <artifactId>javafx</artifactId> //自定义
            <version>2.0</version> //自定义
            <scope>system</scope> //注意这个必须是system
            <systemPath>${project.basedir}/lib/jfxrt.jar</systemPath> //注意pom.xml文件在哪个目录下,${project.basedir}即为pom.xml文件所在的当前目录
        </dependency>

 

打包时把手动添加的jar包也打包进去

            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <includeSystemScope>true</includeSystemScope> //加上这个配置
                </configuration>
            </plugin>

 

查看jar包的内容

jar tf xxx.jar

 

posted @ 2022-08-01 19:47  wdgde  阅读(239)  评论(0)    收藏  举报