简体   繁体   中英

IBM MFP How can I use mfpdev-cli upload (deploy) the .adapter?

How can I use mfpdev-cli upload (deploy) the .adapter?

I need upload the .zip and .adapter in my MFP project

when I call (in root folder)

 mfpdev app webupdate --build

and I will get projecet.zip in MobileFirst folder

then, I call (not in root folder)

 mfpdev app webupdate --file project.zip

it's success update.

then It the same in adapter

I call (in root folder)

 mfpdev adapter build

and get projectAdapte.adapter in target folder

then, how can I upload this projectAdapte.adapter (not in root folder and not use mfpdev adapter deploy )?

If you want deploy an Adapter to the server first build the adapter with command

mfpdev adapter build

-which will generate .adapter file in target folder

To deploy there are two ways

  1. From MFP server console click on Actions->Deploy Adapter-->Brows .adapter file in target folder -->Click on deploy
  2. mfpdev adapter deploy (For this you need to add mfpdev server using mfpdev server add command )

If there are more than adapter to be build and deploy then add all in front of command for ex:

mfpdev adapter deploy all
mfpdev adapter build all

mfpdev app webupdate is used for direct update feature.

For more details about mfpdev cli commands see here: MobileFirst CLI to Manage MobileFirst Artifacts .

And for more details about Adapters see here: Developing Adapters

An Adapter is a separate Maven project. If you are creating multiple adapter in a project then you can put all adapter in a one file.

在此处输入图片说明

how can I upload this projectAdapte.adapter (not in root folder)?

You can build & deploy all adapter from project root folder using these command:

mfpdev adapter build all
mfpdev adapter deploy all

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM