{"id":15350466,"url":"https://github.com/myui/build-xgboost-jvm","last_synced_at":"2025-04-15T04:20:27.444Z","repository":{"id":57734268,"uuid":"117649788","full_name":"myui/build-xgboost-jvm","owner":"myui","description":"Repository to build xgboost4j for Linux/MacOSX using TravisCI","archived":false,"fork":false,"pushed_at":"2019-11-20T17:19:23.000Z","size":5654,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T15:48:24.023Z","etag":null,"topics":["java","linux","mac-osx","maven","xgboost"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-16T07:35:48.000Z","updated_at":"2024-10-30T01:31:33.000Z","dependencies_parsed_at":"2022-09-26T22:11:01.140Z","dependency_job_id":null,"html_url":"https://github.com/myui/build-xgboost-jvm","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myui%2Fbuild-xgboost-jvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myui%2Fbuild-xgboost-jvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myui%2Fbuild-xgboost-jvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myui%2Fbuild-xgboost-jvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myui","download_url":"https://codeload.github.com/myui/build-xgboost-jvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249004324,"owners_count":21196856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","linux","mac-osx","maven","xgboost"],"created_at":"2024-10-01T11:58:29.565Z","updated_at":"2025-04-15T04:20:27.417Z","avatar_url":"https://github.com/myui.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# build-xgboost-jvm\n[![Build Status](https://travis-ci.org/myui/build-xgboost-jvm.svg?branch=master)](https://travis-ci.org/myui/build-xgboost-jvm) \n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.myui/xgboost4j/badge.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.github.myui%22%20a%3Axgboost4j) \n[![License](http://img.shields.io/:license-Apache_v2-blue.svg)](https://github.com/myui/build-xgboost-jvm/blob/master/LICENSE)\n\nRepository to build xgboost4j for Linux/MacOSX using TravisCI. \n\nWhen pushing a tag to git, TravisCI automatically creates a release.\n\n# Using xgboost4j\n\nThis project publishes xgboost4j to Maven central that contains portable binaries for MacOSX and Linux. \nDMLC's [xgboost](https://github.com/dmlc/xgboost/) is a great library but, as seen in [this issue](https://github.com/dmlc/xgboost/issues/1807), it is not published to maven central yet.\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.myui\u003c/groupId\u003e\n    \u003cartifactId\u003exgboost4j\u003c/artifactId\u003e\n    \u003cversion\u003e0.90-rc2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n# Portability\n\n# Update shared library in jar\n```sh\njar uf xgboost4j-0.90-rc2.jar lib/libxgboost4j.dylib\njar tf xgboost4j-0.90-rc2.jar | grep libxgboost4j\n```\n\nCompilied shared libraries (i.e., libxgboost4j.dylib|so) are a portable one without dependencies to openmp and libc++ (for linux) as follows:\nMinimum requirement for GLIBC is [2.15](https://abi-laboratory.pro/tracker/timeline/glibc/).\n\n```sh\nxgboost4j/src/main/resources/lib/libxgboost4j.dylib:\n    @rpath/libxgboost4j.dylib (compatibility version 0.0.0, current version 0.0.0)\n    @rpath/libjvm.dylib (compatibility version 1.0.0, current version 1.0.0)\n    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)\n    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)\n\nxgboost4j/src/main/resources/lib/libxgboost4j.so:\n\tlinux-vdso.so.1 =\u003e  (0x00007ffe475bc000)\n\tlibrt.so.1 =\u003e /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1ca5f8d000)\n\tlibm.so.6 =\u003e /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1ca5c91000)\n\tlibpthread.so.0 =\u003e /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1ca5a74000)\n\tlibc.so.6 =\u003e /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1ca56b3000)\n\t/lib64/ld-linux-x86-64.so.2 (0x00007f1ca681d000)\n\n$ strings xgboost4j/src/main/resources/lib/libxgboost4j.so | grep ^GLIBC | sort\nGLIBC_2.14\nGLIBC_2.2.5\nGLIBC_2.3\nGLIBC_2.3.2\nGLIBC_2.3.4\nGLIBC_2.4\n ```\n \nYou can find requirements in your environment by `strings /lib/x86_64-linux-gnu/libc.so.6 | grep ^GLIBC | sort`.\n\n# Release to Maven central\n\n## Release to Staging\n\n```sh\nexport NEXUS_PASSWD=xxxx\nexport XGBOOST_VERSION=0.90\nexport RC_NUMBER=1\n\nmvn gpg:sign-and-deploy-file \\\n  -s ./settings.xml \\\n  -DpomFile=./xgboost4j.pom \\\n  -DrepositoryId=sonatype-nexus-staging \\\n  -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \\\n  -Dfile=dist/xgboost4j-${XGBOOST_VERSION}-rc${RC_NUMBER}.jar \\\n  -Djavadoc=dist/xgboost4j-${XGBOOST_VERSION}-rc${RC_NUMBER}-javadoc.jar \\\n  -Dsources=dist/xgboost4j-${XGBOOST_VERSION}-rc${RC_NUMBER}-sources.jar\n```\n\n## Release from Staging\n\n1. Log in to [oss.sonatype.com](https://oss.sonatype.org/)\n2. Click on “Staging Repositories” under Build Promotion\n3. Verify the content of the repository (in the bottom pane), check it, click Close, confirm\n4. Check the repo again, click “Release”\n5. You shall now see your artifacts in the release repository created for you\n6. In some hours, it should also appear in Maven Central\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyui%2Fbuild-xgboost-jvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyui%2Fbuild-xgboost-jvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyui%2Fbuild-xgboost-jvm/lists"}