简体   繁体   English

如何在项目中指定/组织/清理jar库

[英]How to specify/organize/clean up jar libraries in projects well

When we develop a project, if we want to use struts or tiles or spring or anything else, we have to import some jaf files (into project build path or lib folder) 当我们开发项目时,如果我们想要使用strutstilesspring或其他任何东西,我们必须导入一些jaf文件(进入项目构建路径或lib文件夹)

So I want to ask, is there any website/tool that specify which .jar files we need for each purpose so that I don't have to add a lot of jar files into my project 所以我想问一下,是否有任何网站/工具指定我们为每个目的需要哪些.jar文件,这样我就不必在项目中添加大量的jar文件

I'm sorry if this question is irrelevant. 如果这个问题无关紧要,我很抱歉。 I just don't know where to ask :( 我只是不知道在哪里问:(

Nice day ^^ 美好的一天^^

Use Maven . 使用Maven It is a build/dependency management tool which enables you not to download any dependencies manually, you just have to define it in a configuration file that you need a specific version of a library and it takes care of it all. 它是一个构建/依赖管理工具,它使您不必手动下载任何依赖项,您只需在配置文件中定义它,您需要一个特定版本的库,它会处理所有这些。 Also you can use a number of so called archetypes which are basically skeleton applications for a specific set of technologies. 您还可以使用许多所谓的原型 ,这些原型基本上是特定技术集的骨架应用程序。

I do agree with abalogh 我同意abalogh

Use Maven or Ant & Ivy for your needs 使用Maven或AntIvy满足您的需求

When you turn into serious development, you can go without these tools. 当你转向认真的开发时,你可以不使用这些工具。 Test both and choose whichever is good for you. 测试两者并选择对您有利的任何一种。 Don't listen to trolls about this or this technology (Mine is better ! No, it's Mine), go to websites, learn to use and make your choice. 不要听巨魔关于这个或这个技术(我的更好!不,这是我的),去网站,学习使用并做出你的选择。 Then stick to it to get the best out the tool you choose 然后坚持下去,以充分利用您选择的工具

Cheers 干杯

Grooveek Grooveek

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM