Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create a jar file from github project

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.

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.

like image 515
nothing Avatar asked Nov 24 '13 07:11

nothing


2 Answers

There's a Getting Started section in the project's README that shows the steps to follow to do just that. I just tried them and they work just fine:

$ git clone http://github.com/klout/brickhouse
$ cd brickhouse
$ mvn package
$ cd target
$ dir

That's it! You have to have Maven installed of course.

like image 55
juan.facorro Avatar answered Oct 16 '22 01:10

juan.facorro


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

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

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/

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>
like image 36
Jerome Banks Avatar answered Oct 15 '22 23:10

Jerome Banks