在IBM MobileFirst 8.0中對使用Java適配器的外部庫有沒有限制?帶有外部庫的IBM MobileFirst適配器
當我加入guava我的代碼沒有錯誤(mfpdev適配器建立成功),但部署到我的服務器時,它與錯誤迴應:
[ERROR] Failed to execute goal com.ibm.mfp:adapter-maven-plugin:8.0.2016082422:deploy (default-cli) on project X: The output of /mfpadmin/management-apis/2.0/runtimes/mfp/adapters is of type text/html, which is unsupported. Expected an output of type text/xml or application/xml or application/json. -> [Help 1]
當我刪除POM番石榴(MVN依賴)我可是我能夠部署適配器。我也可以看到其他一些圖書館也遇到問題。有沒有選擇使用這種庫?
mfpdev -v:8.0.0-2017012016
編輯:
<scope>provided</scope>
你是怎麼把它加入到pom.xml中的? –
由mvn依賴。 '<! - https://mvnrepository.com/artifact/com.google.guava/guava - > com.google.guava 番石榴 21.0 ' –
3squad