jacob-project icon indicating copy to clipboard operation
jacob-project copied to clipboard

Is it possible to publish this as a package

Open gajendravaradhan opened this issue 4 years ago • 8 comments

I am trying to use this project and just wanted to check if it is possible for you to publish this package and have a dependency that can be used in pom.xml. So far we have been carrying around the jar file from sourceforge.net and it has not been ideal

gajendravaradhan avatar Oct 28 '20 15:10 gajendravaradhan

This has been brought up before. I don't know

  • where this can be published
  • the technical process for making it happen
  • how we would package the jar and the DLL

People have proposed to bundle the DLL differently but we lost those suggestions when I cleaned up the Sourceforge site :-(

freemansoft avatar Oct 29 '20 10:10 freemansoft

Github now lets you publish your packages

Since you already have this setup as a Github project you just need to add a workflow yaml to package and deploy the jar to its package registry and provide us with a dependency to use.

gajendravaradhan avatar Oct 29 '20 17:10 gajendravaradhan

Hi, I am working on a project that I need Jacob for. I am also wondering about integrating Jacob with Maven. Looking on the Maven repository, it looks like there is a dependency that is up there, but it is out of date. The version in the maven repository is 1.14.3. Here is the link to the existing dependency on the maven repository:

https://mvnrepository.com/artifact/net.sf.jacob-project/jacob

Can you update the maven repository with the latest version of Jacob, 1.20?

Also, I was having difficulties with getting the 1.14.3 version to work. Do you still have to have the DLLs installed in your path manually? How are people handling this? Can I just put the DLLs in my src/main/resources folder? Just trying to figure out a sensable way of handling this dependency for my own library that I am working on.

Thanks,

Timothy Breitenfeldt

tbreitenfeldt avatar Nov 19 '20 01:11 tbreitenfeldt

Maybe to answer the question on how to publish JACOB including Java JAR and DLLs:

What we do is, using the release package provided by this repository:

  1. extract the jacob.jar and include it
  2. create a new JAR containing only the DLLs and saved as jacob-dll.jar and include it

The structure of the jacob-dll.jar looks similar to this:

  • jacob.dll (32-bit version)
  • META-INF\MANIFEST.MF
  • windows-x86-64\native\jacob.dll (64-bit version)

I don't know if any other magic is happening in the background when everything is compiling but I suppose that's not the case. So anyway this is how it works on our end as a "workaround"!

So maybe package JACOB in a similar fashion and upload it to Maven Repository. We publish it internal to our local Maven Repository while no official site for download is available.

thahnen avatar Jun 14 '21 11:06 thahnen

Just want to add that I would also like to see past versions published (I have a transitive dependency on JACOB 1.19 which I cannot update).

GordonJess avatar Jul 09 '21 08:07 GordonJess

someone can host the repo on jitpack

pell-je avatar Jan 04 '22 17:01 pell-je

This has been brought up before. I don't know

  • where this can be published
  • the technical process for making it happen
  • how we would package the jar and the DLL

People have proposed to bundle the DLL differently but we lost those suggestions when I cleaned up the Sourceforge site :-(

where this can be published

Sonatype Nexus

the technical process for making it happen / how we would package the jar and the DLL

It's possible by using ANT or even Gradle, I'm considering to use this library, if I do when will generate a jar with a blundled dll and can contribute with open a pull request to this project.

mageddo avatar Mar 06 '23 15:03 mageddo

Built a simple project that helps publish jars of the native code and extracts it at runtime. https://github.com/fizzed/jacob

jjlauer avatar Sep 05 '23 19:09 jjlauer