我有一个Java项目,我使用Maven2和汇编插件来帮助编译和打包,有很多依赖项,因此管理起来真是个噩梦,特别是因为我对Maven很新。
I have a Java project which I've used Maven2 and the assembly plugin to help with compiling and packaging, there's quite a few dependencies so its quite a nightmare to manage especially since I'm quite new to Maven.
无论如何,我正在使用一个Java库,它有一个附带的本机Windows库(DLL),我试图找出如何将本机库指定为依赖项或其他东西,以便它存在于路径上,我的应用程序可以在运行时使用该库。
Anyway, I'm using a Java library which has an accompanying native Windows library (DLL) and im trying to work out how to specify the native library as a dependency or something so that it exists on the path and my application can use the library at runtime.
推荐答案查看如何处理Maven和本地库和有改进的更新 - 该博客的作者展示了如何他在一个使用JDIC(Java桌面集成组件)的项目上完成了这个 - whi ch具有本机绑定。
Check out these blog posts on how to handle Maven and Native Libraries and an update with improvements - the blog's author shows how he accomplished this on a project using JDIC (Java Desktop Integration Components) - which has native bindings.
更多推荐
Maven2依赖关系和本机库
发布评论