Building Java adapters

You build Java™ adapters with Maven or MobileFirst Platform CLI.

Building adapters with Maven

Before you begin

To work with Maven, ensure that you have it installed. For more information, see https://maven.apache.org/install.html.

Procedure

At the command prompt, run the mvn install command to build the Maven project. An .adapter archive file is generated in the target folder.

Building adapters with MobileFirst Platform CLI

Before you begin

Ensure that you have installed MobileFirst Platform CLI and Maven.

Procedure

  1. At the command prompt, cd to the root folder of the Maven project.
  2. Run mfpdev adapter build to build the Maven project. An .adapter archive file is generated in the target folder.
    Tip: You can also find and build all of the adapters that are in the current directory and its subdirectories by entering mfpdev adapter build all while you are in that directory.