I'm using MobileFirst Platform v7.0 on OSX. I tend to switch back and forth between Studio and the CLI depending on what I am doing.
I found that a Java adapter created through the command line will not build using Studio without some manual configuration. I had this question 95% typed when I found a solution so I decided to post it anyway in hopes it might help others.
To duplicate:
- Create a workspace, MFP project and Hybrid app in Studio
- In Studio, create a Java adapter named Studio with package com.studio
- Deploy the Studio adapter. Adapter builds and deploys successfully.
- Open a terminal and navigate to the adapters directory of the project
- From CLI, create a Java adapter named CLI with the following
command:
mfp adapter add CLI -t java -p com.cli
- Back in Studio, refresh and Deploy the CLI adapter. Observe error
'com.cli.CLIApplication' was not found
.