maven使用systemPath方式加载本地jar(代码库)
比如,jar包直接放到根目录
pom.xml 里这么配置
<dependency>
<groupId>njcanc</groupId>
<artifactId>njcanc</artifactId>
<version>2.12</version>
<scope>system</scope>
<systemPath>
${project.basedir}/jar/njcanc-2.12.jar
</systemPath>
</dependency>
打包的时候也要包含一下
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<includeEmptyDirectories>
true
</includeEmptyDirectories>
<webResources>
<resource>
<directory>
${project.basedir}/jar
</directory>
<targetPath>WEB-INF/lib</targetPath>
<filtering>false</filtering>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
把每一件简单的事情做好,就是不简单;把每一件平凡的事情做好,就是不平凡!相信自己,创造奇迹~~
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端
2018-02-26 IOS端 margin-top 和 margin-bottom 使用负数时的区别