简体   繁体   中英

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.

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.

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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