Skip to content

1.4. Generated Artifacts

Hilario Fernandes edited this page Nov 6, 2017 · 29 revisions

Here we seek to provide some information on the accepted formats for pentaho generated artifacts and how to properly configure them.

Jar

Common JAR (Java ARchive) is a package file format typically used to aggregate many Java class files and associated metadata and resources (text, images, etc.) into one file for distribution. The maven-jar-plugin should be used to generate this type of artifact and no configuration other than declaring jar should be necessary in most scenarios.

OSGI Bundle

OSGI Feature

Features should have their own maven module: When creating new features do not add them manually to any of the existing feature descriptors of the karaf-assembly.

In the respective project, create an assembly module that produces the feature with the karaf-maven-plugin and publishes it as an artifact. When doing so please make sure that you are handling dependency scopes properly in order to avoid bloat. If you are depending on bundles that belong to an existing feature, depend on that feature instead of the concrete bundles.

Finally, include the reference to the published feature artifact in the karaf assembly.

Clone this wiki locally