The SDK's Java classes, which are in the com.sun.star.lib.loader package, are not made available in the Maven Central repository. I use Maven, rather than the SDK tooling, to create my client application. Currently, I build and install an org.libreoffice:libreoffice-sdk:24.2.1 artifact into my local Maven repository so that I can build my client application. Expected Result: org.libreoffice:libreoffice-sdk artifacts are available in the Maven Central repository.
Thanks for the report. Regarding LO + Maven, there is some discussion in bug 134248. Hossein, can you comment on this?
I think the problem is the name, libreoffice-sdk which you use. Please see the artifacts listed here: https://mvnrepository.com/artifact/org.libreoffice If you look into program/classes folder of LibreOffice, you may find a lot of JAR files. These are not part of the SDK installation, they are part of LibreOffice installation itself. In case of com.sun.star.lib.loader package, I could download this Jar file, which contains that package. In a LibreOffice distribution (not SDK), it is shipped as libreoffice.jar in program/classes folder: https://mvnrepository.com/artifact/org.libreoffice/libreoffice This is the link to the Jar file: https://repo1.maven.org/maven2/org/libreoffice/libreoffice/24.2.3/libreoffice-24.2.3.jar
(In reply to Hossein from comment #2) Thank you for looking into this issue. Unfortunately, the classes in the com.sun.star.lib.loader package are not in the libreoffice.jar; the libreoffice.jar has classes that are in the com.sun.star.comp.loader package and in the com.sun.star.loader package. I also searched the other JARs at https://mvnrepository.com/artifact/org.libreoffice, but none of them have the classes in the com.sun.star.lib.loader package. On my system, the com.sun.star.lib.loader classes are installed under /usr/share/libreoffice/sdk/classes/com/sun/star/lib/loader directory. I think this bug should be reopened.
I set the (In reply to John Serock from comment #3) > I also searched the other JARs at > https://mvnrepository.com/artifact/org.libreoffice, but none of them have > the classes in the com.sun.star.lib.loader package. > > On my system, the com.sun.star.lib.loader classes are installed under > /usr/share/libreoffice/sdk/classes/com/sun/star/lib/loader directory. > > I think this bug should be reopened. You are correct. These two are different: com.sun.star.comp.loader -> Available in Maven repo, locally in "C:\Program Files\LibreOffice\program\classes\libreoffice.jar" com.sun.star.lib.loader -> Not available in Maven repo, locally in "C:\Program Files\sdk\classes" I am setting the issue status back to NEW.