Insert license as dependency on a Maven project

Asked

Viewed 112 times

0

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

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

However, my project is in Maven, which I am developing using Netbeans, and even though I put the Jxbrowser repository and its dependencies in the POM.xml file, it fails to recognize my license file.jar

I manually inserted my file as a dependency but even when running it accuses of not being licensed, apparently the files downloaded by the repository can not find my license; has anyone ever experienced a similar problem that can help me? Thanks in advance.

Below is an image showing how the dependencies are doing in Netbeans.

dependencia do netbeans

1 answer

0


EDIT: I found that I was not referencing the correct jar file, but rather what was in the repository with.teamdev.jxbrowser (standard trial version), and not what file is on my machine, in this case, after 30 days, it expired. Then, the problem still persists, in the picture picture the messages that netbeans displays in the build and run of the project, and the parts of pom.xml relevant to the file. I want to insert. Note: I’ve manually installed it from netbeans and it still can’t 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>

inserir a descrição da imagem aqui

I’ve solved my problem! I re-inserted a new dependency, and manually the licenca.jar file; however, this time I put the group ID (groupid) of this dependency the same as Jxbrowser’s in the POM.xml file (with.teamdev.jxbrowser) and automatically it was associated with the library. I hope someone who has a similar problem can solve it too.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.