我试着按照这些说明https://github.com/vaadin/charts/blob/7a55e8dab5b9941a05603c2624a576866e86045d/DevInstructions.md,但我不能做下载依赖项的步骤,即使它昨天工作。窗口小部件编译也不起作用。
在'vaadin-charts-directorypackage‘中,导入后显示4个错误
Failed to run task (com.github.eirslett:frontend-maven-plugin:0.0.23:bower:bower install:generate-resources)
Failed to run task (com.github.eirslett:frontend-maven-plugin:0.0.23:gulp:gulp deploy:deploy)
Failed to run task (com.github.eirslett:frontend-maven-plugin:0.0.23:gulp:gulp stage:generate-resources)
Failed to run task (com.github.eirslett:frontend-maven-plugin:0.0.23:npm:npm install:generate-resources)
Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install --color=false' failed. (error code 34)然后在添加Facets之后:
Cannot change version of project facet Dynamic Web Module to 2.4. vaadin-charts-demo line 1 Maven Java EE Configuration Problem
Java compiler level does not match the version of the installed Java project facet. vaadin-charts-demo Unknown Faceted Project Problem (Java Version Mismatch)
One or more constraints have not been satisfied. vaadin-charts-demo line 1 Maven Java EE Configuration Problem如何修复这些错误?只是想能够运行图表演示,看起来不应该很难,但无法克服这些错误。尝试一个接一个地搜索错误,但不确定如何将更改应用于导入/与'vaadin-charts-demo‘相关的不同文件/项目
发布于 2015-07-17 14:57:36
看起来DevInstructions.md已经过时了一段时间了,谢谢你的注意,我会为此创建一个罚单。
关于运行演示,如果你只使用maven,你需要在父项目中运行install,然后在demo项目中运行jetty:run。
git clone --recursive https://github.com/vaadin/charts.git
cd charts/
mvn clean install -DskipTests
cd demo/
mvn jetty:run请注意,如果不执行递归克隆,某些模块的安装可能会失败,因为子模块将丢失,但相关模块将被构建,并且jetty:run应该适用于demo。
如果您使用的是Eclipse,并且有工作空间分辨率导入演示,那么示例和附加模块应该足以在演示中使用jetty:run。
https://stackoverflow.com/questions/31303743
复制相似问题