Maven Bundles for Java Uno JARs

From Apache OpenOffice Wiki
Jump to: navigation, search


Java Uno JARs 用 Maven バンドル

is a popular Java build tool that provides many useful features for building Java projects, including dependency management.

The Java Uno JAR files are available from the Maven Central Repository, so that projects that use Java Uno can fully benefit from Maven dependency management features.

Bundle Contents

The Maven repository requires a bundle jar that includes a compiled jar. source jar, javadoc jar, and a pom xml file. Each bundle ex. juh-4.1.2-bundle.jar will contain the following files

  • juh-4.1.2.jar - contains compiles classes
  • juh-4.1.2-sources.jar - contains java source files
  • juh-4.1.2-javadoc.jar - contains javadoc html files
  • juh-4.1.2.pom - contains the XML descriptor

In addition each file will have an accompanying external signature file ex. juh-4.1.2.jar.asc signature file created during the PGP signing process.


Bundle Creation Procedure

This procedure documents a manual process until a more automated one can be implemented.

Copy Source Files

Copy source files from the subversion release tag to a local temp directory <source-temp-dir>

Create Source Jars

Change to target directory and create source jars in target dir

Add META-INF Directory and Files

Create a META-INF directory and place three text files within.

Create Empty Unoil Source and Javadoc Jars

The Maven Repository requires a sources and javadoc jar even if they are empty. We need to include a README file to explain this.

Update Jars With License and Notice Files

Replace text in README file for Ridl:
Not all Java source files or Javadocs exist for the Runtime Interface Definition Library.

Create POM Files

Each artifact (JAR file) needs to be packaged into a bundle that also includes an XML file (juh-4.1.2.pom) containing information about the artifact, including name, description, version, license, and dependencies.

PGP Sign Files

Sign all the files in <target> directory. For each file:

Create Maven Bundles

Create each bundle:

Upload Procedure

The following information describes how to upload new versions of the JARs to the Maven repository; if you just want to use the JARs you don't need to read it.

Personal tools