如何从github树创建单个jar文件? [英] How to create single jar file from github tree?

查看:148
本文介绍了如何从github树创建单个jar文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,pubnub的Java API位于 https:// github。 com / pubnub / pubnub-api / tree / master / java



我想从子文件夹中的所有java文件创建一个jar文件。 / p>

最简单的方法是做什么?

解决方案

由于Pubnub没有提供构建文件,因此您需要在您最喜欢的IDE中创建一个新的Java项目,然后导入下载的Java代码。接下来,您可以使用IDE编译并将项目打包到jar文件中。



注意:也可以自己创建构建脚本,但它更复杂。 / p>

For example, the Java API for pubnub is at https://github.com/pubnub/pubnub-api/tree/master/java

I want to create a single jar file from all the java files in the subfolders.

What is the most straight-forward way to do that?

解决方案

Since Pubnub provided no build file, you need to create a new java project in your favourite IDE and then import the downloaded java code. Next, you can compile and package the project into jar file using the IDE.

Note: it is also possible to create a build script yourself but it is more complicated.

这篇关于如何从github树创建单个jar文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆