A
A
Anton2010-09-24 05:53:08
Java
Anton, 2010-09-24 05:53:08

[maven] use of missing library in repositories

Good day ...
I want to make a Java application with a web interface based on JWT (http://www.webtoolkit.eu/jwt),
while using maven as a build system. But I came across the fact that there is no JWT in its repositories, so the question is how can I manually add the library to the maven project? If it matters, the IDE is NetBeans 6.9.1

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
hamMElion, 2010-09-24
@hamMElion

You should download the JWT library manually and add it to the maven repository on your computer.
Most likely this directory is here: C:\Documents and Settings\%user%\.m2

N
Nikelandjelo, 2010-09-24
@Nikelandjelo

Or is it better to let maven put this library into the local repository itself: maven.apache.org/general.html#importing-jars . And then register this library as a dependency in pom.xml.

G
Grage, 2010-09-25
@Grage

Another option is to add a dependency entry with arbitrary attributes, the artifact group and version, to the pomnik. After that, a library marked as missing will appear in Netbins, by right clicking you can manually download a local jar file for this library. At the same time, it will get into the local repository and will be picked up in the program.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question