Insert license as dependency in a Maven project

0

EDIT: The problem still persists, I posted below in my answer new information about the problem. Thank you.

Hello! I made some tests using the JxBrowser library and I intend to use it in my academic project.

However, my project is in Maven, which I'm developing using Netbeans, and even though I put the Jxbrowser repository and its dependencies in the POM.xml file, it can not recognize my license file.

I manually entered my file as a dependency, but even then when I run it it says it is not licensed, apparently the files downloaded by the repository can not find my license; Has anyone ever had a similar problem that might help me? Thanks in advance.

Below is an image showing how dependencies are in Netbeans.

    
asked by anonymous 05.06.2016 / 20:56

1 answer

0

EDIT: I discovered that I was not referencing the correct jar file, but rather what was in the com.teamdev.jxbrowser repository (standard trial version), not what file it is on my machine, in this case after 30 days, it has expired. So the problem still persists, in the picture image the messages that netbeans displays in the compilation and execution of the project, and the parts of pom.xml relevant to the .jar file that I want to insert. Note: I already installed manually by netbeans and it still does not find the jar.

<repository>
   <id>mylibid</id>
   <url>file:${basedir}</url>
</repository>
<dependency>
  <groupId>mylibid</groupId>
  <artifactId>licence</artifactId>
  <version>1.0</version>
  <type>jar</type>
  <scope>provided</scope>
</dependency>

I was able to solve my problem! I re-inserted a new dependency, and manually the file license.jar; however, this time I put the group ID (groupID) of this dependency the same as that of Jxbrowser in the POM.xml file (com.teamdev.jxbrowser) and automatically it was associated with the library. I hope someone with a similar problem can solve it too.

    
06.06.2016 / 20:57