如何从github项目创建jar文件 [英] How to Create a jar file from github project

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

问题描述

我想要项目https://github.com/klout/brickhouse的jar文件,但是在站点上看不到任何链接给我jar文件.右键菜单上有一个链接,可以将项目下载为zip文件.

I want a jar file for the project https://github.com/klout/brickhouse but I don't see any link on the site which gives me jar file. There is a link on right menu to download the project as zip file.

我发现了类似的问题如何从中创建单个jar文件github树吗?,但是我在pom.xml中有依赖项.我正在使用eclipse和win-7.我能想到的一种方法是在eclipse中创建一个新项目,添加所有Java包和文件,从pom.xml中获取所有依赖项jar文件,下载它们并添加到类路径.但这将是一个漫长的过程.任何帮助深表感谢.谢谢.

I found similar question How to create single jar file from github tree?, but I have dependencies in the pom.xml. I'm using eclipse and win-7. One way I can think of is create a new project in eclipse, add all java packages and files, get all dependency jar files from pom.xml, download them and add to class path. But this will be a lengthy process. Any help is much appreciated. Thanks.

推荐答案

响应稍晚,但是Brickhouse在Wiki中有一个单独的下载"页面

A little late in responding, but Brickhouse has a separate Downloads page in the wiki

https://github.com/klout/brickhouse/wiki/Downloads

此外,如果您使用的是maven或ivy,则应在sonatype公共仓库中使用它. http://central.maven.org/maven2/com/klout/brickhouse/

Also, if you are using maven or ivy, it should be available in the sonatype public repo. http://central.maven.org/maven2/com/klout/brickhouse/

如果您正在使用maven来构建jar程序集,请在pom.xml中添加以下几行

If you are using maven to build a jar assembly, add the following lines in your pom.xml

    <dependency>
        <groupId>com.klout</groupId>
        <artifactId>brickhouse</artifactId>
        <version>0.5.5</version>
    </dependency>

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

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