0
votes

this tutorial to deploy adapter with jar file

  • File → Import... → Maven → Existing Maven Projects.(java adapter create by cli use this comment "mfpdev adapter create")
  • add two jar file from the lib folder
  • Select Run → Run Configurations..., right-click on Maven Build and select New.
    • Provide a Name: "Maven deploy".
    • Set as a Goal: "adapter:deploy".

but run not enable . what am i missing? enter image description here

project structure :

enter image description here

Run As → Maven install not found for build an adapter

enter image description here

and used flowing command to FileUploadAdapter java adapter by CLI

mfpdev adapter create
cd FileUploadAdapter/
mfpdev adapter build
mfpdev adapter deploy

2

2 Answers

0
votes

You're missing the step that you need to build the adapter.
There is nothing to deploy if you did not build it yet.

Building an adapter
To build an adapter, right-click on the adapter folder and select Run As → Maven install.

0
votes

Going by the screenshots you have posted, you need to do 2 things to get this working:

1) When creating a Maven run configuration, you need to specify the base directory. Choose your maven project here . ie, "FileUploadAdapter".

2) Once this is done, you need to right click the maven project - ie, the FileUploadAdapter to perform Run As -> Maven deploy. As per the screenshot you are trying to perform Run As on the "target" folder of the maven project. This will not give you any options.