Issue
I do not want to install a few jars into a Maven repository (both local/remote). In particular I have a few jar files located in
c:\work\projects\myapp\src\main\webapp\WEB-INF\lib\test.jar
c:\work\projects\myapp\src\main\webapp\WEB-INF\lib\test2.jar
How to include them into my project when open/edit with NetBeans?
Solution
Have you considered adding those two JARs as system
dependencies? e.g.,
<project>
...
<dependencies>
<dependency>
<groupId>sun.jdk</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
...
</project>
Just a word of note, this is NOT recommended and should be used very sparingly, if ever.
Answered By - The Alchemist