Skip to content

Home

Development

IDEs

JAR services

API Explorer

Quick start tutorial: Creating a Martini package

Estimated time to complete: 1 minute

Martini groups related components together using Martini packages. Packages let you easily export, import, enable, and disable groups of application functionality with a few simple clicks. Martini packages are a collection of services, endpoints, web pages, Solr cores, APIs, and other resources that can be used by your applications. They keep things organised by grouping related logical units together.

Ideally, each application has its own package1. But when Martini is first installed, it only has the examples package installed. So in order to get started, you should create a new Martini package for your application.

For this tutorial, a new package called hello will be created using the steps below:

Creating a package

Creating a package

  1. Right-click on your Martini instance in the Navigator.
  2. Hover over New, and then select Martini Package.
  3. Enter hello as the name of the package and any Marketplace ID to your liking.
  4. Click Finish.

After a few seconds, Martini will create your package, and you'll be able to see it in the Navigator.

Launch the wizard using keyboard shortcuts only

A way to quickly open the package wizard is through the wizard launcher. To open the wizard this way:

  1. Press if you're using Martini Desktop; if Martini Online.
  2. Enter mp2 in the search field.
  3. Select Martini Package from the list of suggestions.

Wizard launcher showing Martini package-related wizards

Wizard launcher showing Martini package-related wizards


  1. For bigger applications, you can also distribute your files across multiple packages. The criteria for modularizing your application will entirely depend on your organization's preference (e.g. one package per application functionality). 

  2. Which are the initials of 'Martini package'.