Java Maven Eclipse examples for UNO
Posted: Thu Aug 29, 2019 10:10 pm
I wanted to try writing some Java code that would use LibreWriter to reformat documents for other purposes. Does anyone have any sample Java Maven Eclipse projects. I am especially interested in GitHub or similar projects for the examples on https://api.libreoffice.org/examples/examples.html . My problem is that Make files typically leave too much out on the sources of the jar files and other parts of the compilation process.
I am using LibreOffice 6 on MacOS Mojave
The following is what I have so far for the pom.xml. (I may have to change version numbers on some of the items.)
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>bradleyross</groupId>
<artifactId>libreoffice-tools</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>LibreOfficeTools</name>
<description>Example code for manipulating LibreOffice ODF files</description>
<repositories>
<repository>
<id>icm</id>
<name>LibreOffice</name>
<url>http://maven.icm.edu.pl/artifactory/repo/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.libreOffice</groupId>
<artifactId>juh</artifactId>
<version>4.2.4.2</version>
</dependency>
<dependency>
<groupId>org.libreOffice</groupId>
<artifactId>unoil</artifactId>
<version>4.2.4.2</version>
</dependency>
<dependency>
<groupId>org.libreOffice</groupId>
<artifactId>ridl</artifactId>
<version>4.2.4.2</version>
</dependency>
<dependency>
<groupId>org.libreOffice</groupId>
<artifactId>jurt</artifactId>
<version>4.2.4.2</version>
</dependency>
</dependencies>
</project>
*** ***
It appears that many of the files for handling the UNO connection are in LibreOffice.app/Contents/MacOS
I am using LibreOffice 6 on MacOS Mojave
The following is what I have so far for the pom.xml. (I may have to change version numbers on some of the items.)
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>bradleyross</groupId>
<artifactId>libreoffice-tools</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>LibreOfficeTools</name>
<description>Example code for manipulating LibreOffice ODF files</description>
<repositories>
<repository>
<id>icm</id>
<name>LibreOffice</name>
<url>http://maven.icm.edu.pl/artifactory/repo/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.libreOffice</groupId>
<artifactId>juh</artifactId>
<version>4.2.4.2</version>
</dependency>
<dependency>
<groupId>org.libreOffice</groupId>
<artifactId>unoil</artifactId>
<version>4.2.4.2</version>
</dependency>
<dependency>
<groupId>org.libreOffice</groupId>
<artifactId>ridl</artifactId>
<version>4.2.4.2</version>
</dependency>
<dependency>
<groupId>org.libreOffice</groupId>
<artifactId>jurt</artifactId>
<version>4.2.4.2</version>
</dependency>
</dependencies>
</project>
*** ***
It appears that many of the files for handling the UNO connection are in LibreOffice.app/Contents/MacOS