1

我已经按照此处的说明下载了最新的 highcharts-exporter 。我在本地的 Windows7 x64 上运行它,它最终将在使用 Jetty9 的 Windows 生产环境中运行。

我在 highcharts-export/src/main/resources/app.properties 中更改了一行:

# location of the phantomjs executable, could be for example /usr/local/bin/phantomjs
exec = /Scripts/phantomjs

我已经安装并配置了 maven (3.0.5)。我最后一次构建这个项目是在 HighCharts 3.x 版本之前。那个构建是成功的。

当我现在尝试构建时,我得到以下输出。这里的任何信息都会很棒。

编辑

这些错误似乎是由以前版本的 highcharts-export 中遗留的文件引起的。我已经彻底清理了整个目录以重新开始。我仍然收到一个错误,导致它无法构建:

C:\hc-exporter>mvn clean package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.highcharts.export:highcharts-export:war:2.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-ecli
pse-plugin is missing. @ line 150, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building highcharts-export 2.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ highcharts-export --
-
[INFO] Deleting C:\hc-exporter\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ highcharts
-export ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ highcharts-ex
port ---
[INFO] Compiling 13 source files to C:\hc-exporter\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFact
ory.java:[68,29] error: cannot find symbol
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.652s
[INFO] Finished at: Thu May 16 13:53:36 EDT 2013
[INFO] Final Memory: 11M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:compile (default-compile) on project highcharts-export: Compilation failure
[ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFact
ory.java:[68,29] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
C:\hc-exporter>

旧错误 - 仅供参考。

C:\hc-exporter>mvn -version Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51: 28-0500) Maven 主页:C:\apache-maven-3.0.5 Java 版本:1.7.0_10 ,供应商:Oracle Corporation Java 主页:C:\Program Files\Java\jdk1.7.0_10\jre 默认语言环境:en_US,平台编码:Cp1252 操作系统名称:“windows 7”,版本:“6.1”,arch:“amd64” , family: "windows" C:\hc-exporter>mvn clean package [INFO] 正在扫描项目... [WARNING] [WARNING] 在构建 com.highcharts.export:highcharts-export 的有效模型时遇到了一些问题:war:2.0.1 [警告] org.apache.maven.plugins:maven-ecli pse-plugin 的“build.plugins.plugin.version”缺失。@ 第 150 行,column 12 [WARNING] [WARNING] 强烈建议修复这些问题,因为它们威胁到您构建的稳定性。[警告] [警告] 出于这个原因,未来的 Maven 版本可能不再支持构建此类格式错误的项目。[警告] [信息] [信息] ----------------------------------------- ------------------------------- [INFO] 构建 highcharts-export 2.0.1 [INFO] ------ -------------------------------------------------- ---------------- [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ highcharts-export -- - [INFO ] 删除 C:\hc-exporter\target [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ highcharts -export --- [debug] 执行 contextualize [INFO] Using '用于复制过滤资源的 UTF-8' 编码。
54:29 EDT 2013 [INFO] 最终内存:11M/122M [INFO] --------------------------------- --------------------------------------- [错误] 未能执行目标 org.apache。 maven.plugins:maven-compiler-plugin:2。5.1:在项目 highcharts-export 上编译(默认编译):编译失败:编译失败:[ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[ 8,34] 错误:包 org.apache.batik.transcoder 不存在 [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[9,34 ] 错误:包 org.apache.batik.transcoder 不存在 [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[10,34] 错误:包 org.apache.batik.transcoder 不存在 [错误] C: \hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[74,33] 错误:找不到符号 [错误] 符号:变量 JPEGTranscoder [错误] 位置:SVGRasterizer 类 [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[78,20] 错误:找不到符号 [错误] -> [帮助 1] [错误] [错误] 要查看错误的完整堆栈跟踪,请使用 -e 开关重新运行 Maven。[错误] 使用 -X 开关重新运行 Maven 以启用完整的调试日志记录。[ERROR] [ERROR] 有关错误和可能的解决方案的更多信息,请阅读以下文章: [ERROR] [Help 1] \hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[78,20] 错误:找不到符号 [ERROR] -> [Help 1] [ERROR] [ERROR] To查看错误的完整堆栈跟踪,使用 -e 开关重新运行 Maven。[错误] 使用 -X 开关重新运行 Maven 以启用完整的调试日志记录。[ERROR] [ERROR] 有关错误和可能的解决方案的更多信息,请阅读以下文章: [ERROR] [Help 1] \hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[78,20] 错误:找不到符号 [ERROR] -> [Help 1] [ERROR] [ERROR] To查看错误的完整堆栈跟踪,使用 -e 开关重新运行 Maven。[错误] 使用 -X 开关重新运行 Maven 以启用完整的调试日志记录。[ERROR] [ERROR] 有关错误和可能的解决方案的更多信息,请阅读以下文章: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption C:\hc-exporter>

4

2 回答 2

2

这已在Github上的 Highcharts 存储库中修复。所以你不再需要补丁,只需拉入更改

于 2013-05-21T08:30:05.277 回答
1

我找到了解决这个问题的方法。

zhiweihu已经上传了一个补丁来解决这个问题。问题是ServerState类没有ACTIVE状态。

应用补丁后,您可以毫无问题地创建包,并且它可以按预期工作。

于 2013-05-20T19:22:21.420 回答