I have recently become curious about open source licenses. I have a question about the LGPL. I created a Java web project and built it as a WAR package. Can I add LGPL jars to this WAR file?
Warning: I am not a lawyer. If you need legally sound advice, always ask a lawyer. In this case, ask a lawyer who understands open source licensing.
The following is a summary:
If you don't distribute the WAR file to anyone else, then LGPL places no restrictions on what you do with the library.
If you do distribute the WAR file to someone else, you have two options:
Release your source code under a license that is compatible with the GPL or LGPL, OR ...
Use the LGPL'ed libraries in your code without modifying the libraries, AND without linking or incorporating the libraries into your code in a way that prevents the recipient from replacing them with a modified copy of the libraries.
(Assuming that the library in question is Java, option 2 means that you have to use the library JAR file as-is. Don't add your own customizations / fixes, don't change class or package names (etc), don't add classes, and don't merge it with your own JAR files.)
For more information, please refer to the GNU Lesser Public License page.