Maven2依赖关系和本机库 [英] Maven2 Dependencies and Native Libraries

查看:122
本文介绍了Maven2依赖关系和本机库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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依赖关系和本机库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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