Repository: opencv
Issue: Package a maven version of Java bindings
Labels: auto-transferred,feature,priority: low,category: java bindings

Transferred from http://code.opencv.org/issues/3097

```
|| Abhishek Kumar on 2013-06-17 16:00
|| Priority: Normal
|| Affected: None
|| Category: java bindings
|| Tracker: Feature
|| Difficulty: 
|| PR: 
|| Platform: None / None
```
## Package a maven version of Java bindings

```
We need to get OpenCV bundled with native code as a maven dependency.

Ant build systems have long been moving into oblivion. Though not getting deprecated anytime soon, all non-trivial have been moving towards Maven. 
As such, availability of OpenCV as a maven dependency would satisfy many users while adding many new hobbyists to OpenCV user list.
```
## History
##### Daniel  Baggio on 2014-01-09 21:00

```
Hi,

I have a sample pom.xml file that shows how to create a Java OpenCV project with Maven at:

https://github.com/JavaOpenCVBook/code/tree/master/chapter1/maven-sample

I would be glad to help in providing an official way to do it. Basic need is to generate a native JNI dynamic link library for each of the main platforms (windows, linux, osx, 32 and 64 bit). If that is created, a maven project is straightfoward. 

Kind regards,
Daniel
```
##### Maurice Betzel on 2014-01-10 20:04

```
I have succesfully used the https://code.google.com/p/cmake-maven-project CMake-Maven plugin for cross platform deployments. Even have it running as a lib bundle under OSGi.
```
##### Thomas Weißschuh on 2014-03-12 21:21

```
+1
```
##### Daniil Osokin on 2014-03-17 07:41

```
Hi, guys! Please contribute this feature to OpenCV (code.opencv.org/projects/opencv/wiki/How_to_contribute). It will help a lot (and speed up the process in many times: OpenCV Jedis can efficiently communicate with you)!
```
##### Daniel  Baggio on 2014-05-27 01:36

```
Actually, it doesn't have to do with the code, but it should address people who create the build itself.
With buildbot, I believe we should be able to get it working easily, but I don't know how to get in contact with people who has got to do with it.
```
##### Sergey Lisovoy on 2014-08-06 10:46

```
I create project on GitHub that build maven artifact that contains https://github.com/lis0x90/opencv-maven-bundle:
* opencv native (currently for linux64, win64 and win32)
* opencv java binding 
* loader (use hawtjni to unpack and load native library in runtime)

Feel free to clone, build and test!
```
##### Daniel  Baggio on 2014-10-21 03:38

```
Seriously, this should really be seen as a top priority task for Java developers.
Others also required it here:
http://answers.opencv.org/question/30945/why-isnt-the-opencv-java-libraries-available-via/

Any updates on this feature?
```
##### Steven Puttemans on 2014-10-21 07:53

```
Hi Daniel,

As long as noone will actually take up the task and do it, then I am afraid it could take quite a long time since OpenCV developers are doing this in their spare time.
Are you up to supplying a PR for this yourself? Or contact the right people for it?

Steven
```
##### Daniel  Baggio on 2014-11-12 23:04

```
Sorry, Steven, but what do you mean by PR?

Kind regards,
Daniel
```
##### Steven Puttemans on 2014-11-13 13:32

```
With a pull request I mean an adaptation done by you to the code base through the github interface.
More information can be found here: http://code.opencv.org/projects/opencv/wiki/How_to_contribute
```
##### Daniel  Baggio on 2014-11-19 01:53

```
Thanks Steven.

Unfortunately, this can't be done with a pull request since this is part of the build process. If only could I get in touch with people who make OpenCV releases, this could be addressed more easily. It is just a matter of uploading jar files to maven repositories, that would make a huge difference for Java developers, since it could take away the part of generating binaries.
```
##### Stojan Pesov on 2015-03-04 08:42

```
I agree with Daniel, we are eager to see the jar put in maven from you guys officially. 
That will be great advantage for all Java developers.
```
##### Daniel  Baggio on 2015-06-25 05:56

```
Please, has anyone seen this feature?
```