So I feel like there must be some easy way to do this. I built a filter into my web project to handle logins. I was thinking that it would be nice to break it out into a second project, so that I can reuse my login filter in several projects. What is the proper way to do that?
At this point I tried changing my web.xml to refer to the filter by its new package name (since I pulled it out of the working project) and made the actual web project depend on the filter web project. I even tried to add the LoginFilter class as a javae EE dependant Module. This all got me to the point where I can put a "new org.test.LoginFilter()" statement into a project and not get any complaints. However, when I deploy I get errors that my org.test.LoginFilter() class cannot be found.
Is there a way to accomplish this? Or do I need to figure out how to get the project to spit out a jar and update it like 3rd party jars?