Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.xwiki:jodconverter:jodconverter-core-3.1-xwiki'
}
dependencies {
implementation("com.github.xwiki:jodconverter:jodconverter-core-3.1-xwiki")
}
<dependency>
<groupId>com.github.xwiki</groupId>
<artifactId>jodconverter</artifactId>
<version>jodconverter-core-3.1-xwiki</version>
</dependency>
libraryDependencies += "com.github.xwiki" % "jodconverter" % "jodconverter-core-3.1-xwiki"
:dependencies [[com.github.xwiki/jodconverter "jodconverter-core-3.1-xwiki"]]
The XWiki project has forked the JODConverter project because it seems dead and we need to bring some fixes to it. We hope that someone from the JODConverter project will be able to apply our fixes at some point.
JODConverter (Java OpenDocument Converter) automates document conversions using LibreOffice or OpenOffice.org.
See the Google Code project for more info.
In order to build the project you need to execute:
mvn clean install -DskipTests
If you want to run the unit tests you need to:
libsigar-amd64-linux.so
)jodconverter-core/lib
folder and put the libsigar binary theremvn clean install -Djava.library.path=lib
Note that currently the conversion to/from sxw
format is failing
Caused by: com.sun.star.task.ErrorCodeIOException: SfxBaseModel::impl_store <file:///tmp/test311448721067585328.sxw> failed: 0x81a