+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Create Java adapters

You create adapters either with Maven or with the MobileFirst Platform CLI.

Parent topic: Work with Java adapters


Create 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

In the command line, cd to the location for the new Maven project, then type in the following command:

mvn archetype:generate -DarchetypeGroupId=com.ibm.mfp -DarchetypeArtifactId=adapter-maven-archetype-java -DarchetypeVersion=<latest_version> -DgroupId=<created_project_groupId> -DartifactId=<created_project_artifactId> -Dpackage=<created_project_java_package> -Dversion=<created_project_version> The following is an explanation of the parameters for the archetype:generate command:


Create adapters with MobileFirst Platform CLI


Before you begin

Ensure that you have installed MobileFirst Platform CLI and Maven.


Procedure

In the command prompt, run the following command:

mfpdev adapter create <adapter_name> -t <adapter_type> -p <adapter_package_name> -g <maven_project_groupid> The following is an explanation of the parameters for the mfpdev adapter create command:


Create adapters with the MobileFirst Operations Console


Procedure

We can also create an adapter in the MobileFirst Operations Console by clicking New in the Adapters area and following the instructions.