Search code examples
javamavennetbeansdependenciesjxbrowser

Insert licence in Maven dependency


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

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.

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.

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

Netbeans Display


Solution

  • 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