首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
广告
V2EX
›
问与答
Java maven resources 目录的 jar 编译不到 target 目录
weishao666
·
2023-01-29 11:46:09 +08:00
· 558 次点击
这是一个创建于 768 天前的主题,其中的信息可能已经有所发展或是发生改变。
依赖一个 kotlin 编译出来的 jar 包,我想作为资源文件放在 resource 目录下,但 mvn compile 没有生效,target 目录下的 classes 目录不包含对应的文件
目录
jar
Target
编译
2 条回复
•
2023-01-29 14:29:46 +08:00
1
RedBeanIce
2023-01-29 12:45:55 +08:00 via iPhone
maven 可能没有把这个文件包含进去,,请百度一下 maven 编译包含 resource 下属文件
2
soundlife
2023-01-29 14:29:46 +08:00
<includeSystemScope>true</includeSystemScope>
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
3059 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms ·
UTC 10:49
·
PVG 18:49
·
LAX 02:49
·
JFK 05:49
Developed with
CodeLauncher
♥ Do have faith in what you're doing.