-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Maven Support #202
Comments
These are actual contributed and we did not do it. Thanks Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 2016-06-30 0:20 GMT+02:00 Daniel Khashabi notifications@github.com:
|
I would definitely appreciate being able to integrate or-tools using Maven |
Hello Punkeel, On Aug 26, 2016 03:36, "PunKeel" notifications@github.com wrote: I would definitely appreciate being able to integrate or-tools using Maven — |
Any news ? |
Maven support would be interesting... |
hi all, Yes I would like to provide a maven (gradle ? ivy ?) package for or-tools ASAP and ideas are welcome ! How I see it currently: |
Hello, I was wondering whether this feature is still planned to be included in v6.8 and also whether the due date of v6.8 (April 1st) is still valid. |
Hi, Not sure it will be included in v6.8 and not sure when v6.8 will be out (more mid-april I think). So for Maven, I would say, hope to do it ASAP (so I put it in my kaban/ToDo list) but I can't really give you a strong/mandatory date... |
I have prepared a Maven project to release Google OR-Tools for Java (meaning, the SWIG classes) in Maven central. Please see here. The goal is to be able to depend on it in my projects that use Google OR-Tools. Please give me any comment you like, preferably soon if possible because I have other projects that depend on this for easy consumption. I am ready to change the groupId if you prefer that I use Google’s (or artifactId if you prefer another one). Currently I put mine simply because there might be a question of trust (I am the one who release the code, after all, not Google, and users could want to know it for security reasons). OTOH, I certainly do not want to appear as trying to get credit for Google’s code. I am also ready to hand it over to you if you prefer to release it yourself. That would be best, but only if you intend to release it soon… (Otherwise, I’d suggest I release under my groupId now and then hand it to you for the future releases.) I still have to check for how to release to Maven central without javadoc, I believe it is required by default. As the Maven release will include only the Java classes and not the native library (it’s there in my project just for the test but is not transmitted by Maven to consumers), users will still have to manually download the library (on linux, |
The project is now published to Maven Central |
Hi, Any official release in Maven ? |
@Mizux will the maven packages for release 8.0 be made available on Maven Central? |
This is the next step, but we need to test few things:
I'll should work on it next week |
@Mizux any update on this or from someone else? I believe quite a few people would be very happy to have this added on maven central for Java since quite a few teams would be using this for optimization problems :) |
@dillonmabry our team has been using this: https://github.com/panavis/google-or-tools-maven. We hope that there will be an official release soon. @Mizux. |
@amucunguzi thank you for working on this! I saw that https://github.com/panavis/google-or-tools-maven doesn't have a dependency for mac -- is that on it's way at all? |
@suming My version #202 (comment) has all OS distributions available 👀 |
Yes, I've been using @magneticflux-'s version on OSX and it works fine. |
@magneticflux- & @lalithsuresh thank you for the heads-up, I just tested it out and it's great. I can develop locally on OSX and deploy on Linux easily. Appreciate it! |
Using this version currently with no issues, thanks for your support! Works as expected. |
For those that had trouble running Makefile in order to install the jars follows a detailed set-up guide based on @magneticflux- 's solution:
|
I'm not sure why you're installing both my distribution and the official one. You don't need both; mine has everything included and has extra extraction functionality. |
Is there a ticket for maven central publishing? |
With the sunsetting of JCenter, this is more urgent for me in particular. I'm not keen on shouldering the cost of hosting large binaries myself going forward, so I'd like my solution to just depend on official binaries on Maven Central. |
FYI, first 8.2 RC (8.2.9004) note: I failed the linux artifact which is currently depending on GLIBC 2.33 (archlinux ^^;) example usage: https://github.com/or-tools/java_or-tools/blob/6df2f03abe2b869f197eafe4c0846a376dbe04a0/pom.xml#L51-L59 |
@Mizux thanks! I just tested the Darwin version and it works.
Could you elaborate more on this? If it helps, I'm getting an error about needing GLIBC 2.29 when running on Ubuntu 18.04.
|
see #2520 |
This is great news, and we appreciate your hard work! Question: Is there a solution to have this work with Docker? For example, it works fine for me locally but whenever I run my docker build it cannot find the JNI/Library resource files like it can when I run locally, it extracts and discovers them automatically with my Spring/Java build. I am using JDK 11 and Maven if that helps. Thank you! |
@dillonmabry let's open a new issue with your docker issue. |
Original post
I can see some maven releases here:
https://bintray.com/nikola-ilo/maven/or-tools/view
Q: Why the releases are not continued? Are you guys planning to release a new version on maven?
A: Not done by Google LLC
For v8.0 we are migrating to use maven to create java package
Todo List:
ortools/*/samples
)examples/contrib examples/java
)examples/tests
)The text was updated successfully, but these errors were encountered: