简体   繁体   English

Java中的依赖管理

[英]Dependency management in java

I implemented a tool and I want to make it open source. 我实现了一个工具,并且希望使其开源。

The problem is that my tool has some dependencies (binaries/. jar files). 问题是我的工具具有某些依赖项(二进制文件/.jar文件)。

How can solve this problem, so that the person who downloads my source code, for example to extend it to a new feature, doesn't have to care of the dependencies? 如何解决该问题,以便下载我的源代码的人(例如将其扩展到新功能的人)不必关心依赖项?

Should i write the dependencies in the MANIFEST as relative path, relative to my source code or something like that? 我应该将依赖项作为相对于我的源代码或类似内容的相对路径写在清单中吗?

You can convert your project into a maven project and then put your source code to githup or something similar. 您可以将项目转换为Maven项目,然后将源代码放入githup或类似的文件中。 If your dependencies are not available on the web but instead your other projects, you should also place them on the web so maven can download them for anyone who wants to use. 如果依赖项在网络上不可用,而在其他项目上可用,则还应将其放在网络上,以便maven可以将其下载给任何想要使用的人。

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

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