Bug 161750 - SDK Java classes are not available in Maven Central repository
Summary: SDK Java classes are not available in Maven Central repository
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-23 18:01 UTC by John Serock
Modified: 2024-07-10 07:06 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Serock 2024-06-23 18:01:46 UTC
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.
Comment 1 Stéphane Guillou (stragu) 2024-07-09 03:38:52 UTC
Thanks for the report.

Regarding LO + Maven, there is some discussion in bug 134248.

Hossein, can you comment on this?
Comment 2 Hossein 2024-07-09 08:38:07 UTC
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
Comment 3 John Serock 2024-07-09 16:44:21 UTC
(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.
Comment 4 Hossein 2024-07-10 07:05:37 UTC
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.