简体   繁体   English

如何在Eclipse中将github maven项目导入为jar文件?

[英]How to import github maven project as jar file in Eclipse?

I want to use the following github project as a compiled one to be referenced by my own eclipse project (java): 我想将以下github项目用作已编译的项目,以供我自己的eclipse项目(java)引用:

https://github.com/HaraldWalker/user-agent-utils

I don't use Maven. 我不使用Maven。 How do I reference this github project so I can use its libraries in my own project? 我如何引用这个github项目,以便可以在自己的项目中使用它的库? Does it have to be turned into a JAR or is there some other way. 是否必须将其转换为JAR还是有其他方法。

Thank you very much for any help. 非常感谢您的帮助。

If the project is already on Maven Central or Bintray then you can download the jar from there. 如果项目已经在Maven Central或Bintray上,则可以从那里下载jar。

Otherwise you can use jitpack.io to build the jar for you. 否则,您可以使用jitpack.io为您构建jar。

If you don't use maven, you may want to download the sources (git checkout), compile them into a jar, and add the jar in your project's build path. 如果您不使用Maven,则可能要下载源代码(git签出),将其编译到jar中,然后将jar添加到项目的构建路径中。
Read: How to make a jar 阅读: 如何制作罐子

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

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