Maven.将.DLL放在JAR的根目录中 [英] Maven. Put .DLL in the root of JAR

查看:706
本文介绍了Maven.将.DLL放在JAR的根目录中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Maven在JAR的根目录中包含本机.dll文件?

How I can include native .dll file in root of JAR using Maven?

推荐答案

如果您已经拥有.dll文件,只需将其存储在项目的src/main/resources目录中,Maven会将其放置在目标jar的根目录中.

If you already have your .dll file just store it in your project's src/main/resources directory and Maven will put it in the target jar's root directory.

这篇关于Maven.将.DLL放在JAR的根目录中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆