Skip to main content
Jump to: navigation, search

Kura/Use of jdeb in Kura

The jdeb library is a Maven plugin and Ant task that assists in creating Debian packages from Java builds. This wiki only focuses on the Maven plugin as it applies to the Kura project. For more detailed information visit the jdeb page.

Pom Plugin

To add jdeb to your project, add the below to your pom. An example of this plugin in Kura can be found in kura/distrib/pom.xml.



Control Directory

A control file must be present to create a Debian package. By default, jdeb will look in src/deb/control for this file. Use the 'controlDir' element to override this default. In Kura, these files are located in kura/distrib/src/main/deb. Below is the main control file for the Raspberry Pi. More information on Debian control file can be found here.

Package: KURA
Version: [[project.version]]
Section: misc
Priority: low
Depends: [[project.raspbian.dependencies]]
Architecture: all
Description: Kura is an inclusive software framework that puts a layer
  between the operating system and the customer application, with industry
  standard interfaces that shorten custom development time, simplified coding
  and software that can be easily ported from one hardware platform
  to another.

The entries within the brackets are properties defined in Maven. Pre and post scripts may also be included in the Debian package. These scripts are named preinst, postinst, prerm, postrm and must be located within the control directory.

Data Set

The dataSet element is used to define files to include in the Debian package. In Kura, we include a single zip file that the postinst script unpackages. Within this zip file is the main installer shell script. In Kura, the mapper element is used to prepend "/tmp" to to any files in the data set. This mapper will place the zip file in a tmp directory to be cleaned up after the install.

Back to the top