在Maven依赖项中插入许可证 [英] Insert licence in Maven dependency

查看:167
本文介绍了在Maven依赖项中插入许可证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用JxBrowser进行了一些测试,并打算将其添加到我的学术项目中.

I've made some tests using JxBrowser and intend to add it to my academic project.

但是,这是一个我使用Netbeans IDE开发的Maven项目,尽管我添加了TeamDev JxBrowser存储库,但在pom.xml文件中添加了JxBrowser依赖项,并尝试手动插入所获取的licence.jar,它无法正确执行.

However, it is a Maven project, which I develop using the Netbeans IDE, and although I added the TeamDev JxBrowser repository, the JxBrowser dependency in the pom.xml file and tried to manually insert the licence.jar that I acquire, it is failing to execute properly.

可能的问题是我正在按其存储库下载该库,并且许可证是一个单独的文件.

Maybe the issue is the fact that I am downloading the library by its repository and the license is a separated file.

我还上传了一个附件,该附件说明了我的问题以及执行使用JxBrowser的方法时显示的消息;它说我没有有效的许可证,尽管我手动插入了licence.jar作为本地依赖项.

I also upload an attachment that illustrates my problem and the message displayed when I execute the method that uses JxBrowser; it says that I don't have a valid license, although I manually inserted my licence.jar as a local dependency.

您能帮我解决这个问题吗?我该怎么办?我真的对在项目中使用JxBrowser寄予厚望.

Could you please help me through this? What should I do? I really have high hopes about using JxBrowser in my project.

推荐答案

解压缩licence.jar(只是一个zip文件),您将获得META-INF/teamdev.licenses文件 放入

Extract the licence.jar (it's just a zip file), you will get META-INF/teamdev.licenses file Put it in

src/main/java/resources/META-INF/teamdev.licenses

src/main/java/resources/META-INF/teamdev.licenses

这篇关于在Maven依赖项中插入许可证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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