With intelliJ IDEA, how do I manually add a .jar to my web-inf/lib folder?
It is a maven project and I have been adding .jar’s via pom.xml thus far.
I manually dropped the .jar, but it didn’t seem to pick up the .jar since it doesn’t pick up the namespace when I add a import statement etc.
Add the WEB-INF/lib directory to your project libraries.
Ctrl-Shift-Alt-S, then choose “Libraries” and attach your WEB-INF/lib as a JAR directory. Every JAR in that directory will be added to CLASSPATH for compilation.
Obviously, WEB-INF/lib JARs are automatically in CLASSPATH when you run a WAR file, so you’re fine at runtime.