Java – jar folder for eclipse project

I'm trying to create a centralized folder (some kind of "meta project" in my eclipse workspace) for common jar files that reference projects in this workspace It should be similar to the WEB-INF / lib folder of web projects, but it also applies to non web projects, and automatically scans and adds all jar files in this folder

I try to create a user library with these jar files and reference them in the project, but I still need to manually add each new jar to the user library (and I don't know if it is referenced by absolute) and Tomcat (WTP) doesn't seem to put these files (run as – > run on the server) in their classpath (I don't want to copy jars and put them in WEB-INF / LIB) Any ideas?

Solution

1 is ivy

If you prefer to do this in a separate project in Eclipse:

You added "public projects" for other projects (Java build path - > projects, and then add) But do you have a jar for exporting 'common projects'? (in general project: Java build path - > order and export, and then check all jars)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>