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
Java Maven Eclipse examples for UNO
Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
-
- Posts: 3
- Joined: Thu Aug 29, 2019 7:55 pm
Java Maven Eclipse examples for UNO
Post by bradleyross »
I am using version 6.0.4.2 of LibreOffice on MacOS Mojave (version 10.14.6)
Return to “Macros and UNO API”
Jump to
- Getting started
- ↳ Survival guide
- ↳ Beginners
- ↳ Getting Started Guide for 4.x
- ↳ Getting Started Guide for 3.x
- ↳ Install, Setup and Troubleshooting
- ↳ Admin Guide
- ↳ MS Windows
- ↳ Linux
- ↳ Mac OSX
- ↳ LibreOffice
- ↳ Tablets
- ↳ Tutorials
- ↳ Writer
- ↳ Calc
- ↳ Base
- Applications
- ↳ Writer
- ↳ Writer Guide for 4.x
- ↳ Writer Guide for 3.x
- ↳ Writer Tutorials
- ↳ Templates
- ↳ Advanced Uses
- ↳ Calc
- ↳ Calc Guide for 4.x
- ↳ Calc Guide for 3.x
- ↳ Calc Functions
- ↳ Calc Tutorials
- ↳ Impress
- ↳ Impress Guide for 4.x
- ↳ Impress Guide for 3.x
- ↳ Draw
- ↳ Draw Guide for 4.x
- ↳ Draw Guide for 3.x
- ↳ Math
- ↳ Math Guide for 4.x
- ↳ Math Guide for 3.x
- ↳ Math Guide for 3.x
- ↳ Base
- ↳ Base Guide for 4.x
- ↳ Wiki
- ↳ Base Tutorials
- ↳ Tables & Queries
- ↳ Forms
- ↳ External Data Sources
- ↳ Reporting
- ↳ Database Examples
- Customizing and Extending
- ↳ Macros and UNO API
- ↳ Basic Guide
- ↳ Code Snippets
- ↳ Extension Repository
- ↳ Macro Repository
- ↳ External Programs
- ↳ Extensions
- ↳ Extensions page
- Community
- ↳ General Discussion
- ↳ Site Feedback
- ↳ Forum Governance
- ↳ User Experience (UX)
- ↳ Announcements
- Business
- ↳ Institutions & Educational
- ↳ Paid support
- ↳ Consultants Directory