eclipse 为什么我会收到“不支持项目方面 Cloud Foundry 独立应用程序 1.0 版”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32571437/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why am I getting "Project facet Cloud Foundry Standalone Application version 1.0 is not supported"?
提问by M. A. Kishawy
I'm trying to deploy the following project from IBM developerWorksto Bluemix:
我正在尝试将以下项目从IBM developerWorks部署到Bluemix:
Building a Java EE app on IBM Bluemix Using Watson and Cloudant
使用 Watson 和 Cloudant 在 IBM Bluemix 上构建 Java EE 应用程序
through the Bluemix plugin in Eclipse(Called: IBM Eclipse Tools for Bluemix). However I keep getting the following error
通过Eclipse 中的 Bluemix 插件(称为:IBM Eclipse Tools for Bluemix)。但是我不断收到以下错误
Project facet Cloud Foundry Standalone Application version 1.0 is not supported
项目方面 Cloud Foundry Standalone Application 1.0 版不受支持
Used Versions:
二手版本:
- Eclipse Version: Mars Release (4.5.0) Build id: 20150621-1200
- IBM? Eclipse Tools for Bluemix Version: 1.0.4 Build id: 20150801_1001
- Eclipse 版本:Mars 版本 (4.5.0) 版本号:20150621-1200
- IBM?适用于 Bluemix 版本的 Eclipse 工具:1.0.4 构建 ID:20150801_1001
There is no issue when I do this through Cloud Foundry CLIcf push
当我通过Cloud Foundry CLI执行此操作时没有问题cf push
回答by Sasikanth Bharadwaj
Remove the Cloud Foundry Standalone Application
version 1.0 facet from the project via project -> properties -> project facets
.
取出Cloud Foundry Standalone Application
从通过项目1.0版本方面project -> properties -> project facets
。
Bluemix tools maps projects to bluemix runtimes via project facets
so that different runtimes would be associated with different projects.
Bluemix 工具通过 将项目映射到 bluemix 运行时,project facets
以便不同的运行时与不同的项目相关联。
It's probably just that the stand alone facet which is probably associated with cloudfoundry tools isn't supported by bluemix tools plugin
可能只是 bluemix 工具插件不支持可能与 cloudfoundry 工具相关的独立方面
回答by Jan Nielsen
As @Ghurdyl mentions in the comments, If you cannot deselect the CloudFoundry Standalone Applicaiton, then remove the facet from the project's settings file (.settings/org.eclipse.wst.common.project.facet.core.xml
):
正如@Ghurdyl 在评论中提到的,如果您无法取消选择 CloudFoundry Standalone Applicaiton,则从项目的设置文件 ( .settings/org.eclipse.wst.common.project.facet.core.xml
) 中删除构面:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="cloudfoundry.standalone.app" version="1.0"/>
<installed facet="java" version="10"/>
</faceted-project>
to:
到:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="java" version="10"/>
</faceted-project>