本文介绍了构建HighCharts-Export Server 2.1失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我按照说明下载了最新的highcharts-exporter 这里。我在本地运行在Windows7 x64上,最终将在使用Jetty9的Windows生产环境中运行。 我在highcharts-export / src / main / resources / app.properties: #phantomjs可执行文件的位置,例如/ usr / local / bin / phantomjs exec = / Scripts / phantomjs 我安装并配置了maven(3.0.5)。我最后在HighCharts的3.x版之前建立了这个项目。该构建成功。 当我尝试构建时,我得到以下输出。这里的任何信息都会很棒。 编辑 是由于先前版本的highcharts-export中的文件遗留导致的。我已经彻底清理了整个目录以重新开始。 C:\ hc-exporter> mvn clean package [INFO]扫描项目... [警告] [警告]为构建有效模型时遇到了一些问题com.highcharts.export:highcharts-export:war: 2.0.1 [WARNING]'build.plugins.plugin.version'for org.apache.maven.plugins:maven-ecli pse-plugin缺失。 @ line 150,column 12 [警告] [警告]强烈建议您修复这些问题,因为它们会威胁构建的稳定性。 [警告] [警告]因此,将来的Maven版本可能不再支持buildin g这样格式不正确的项目。 [警告] [信息] [信息] ----------------------------- ------------------------------------------- [信息] Building highcharts-export 2.0.1 [INFO] ------------------------------------ ------------------------------------ [信息] [信息] --- maven-clean-plugin:2.4.1:clean(default-clean)@ highcharts-export - - [信息]删除C:\hc-exporter\target [INFO] [INFO] --- maven-resources-plugin:2.5:resources(default-resources)@ highcharts -export --- [debug] execute contextualize [INFO]使用'UTF-8'编码来复制过滤资源。 [INFO]复制2资源 [信息] [信息] --- maven-compiler-plugin:2.5.1:compile(default-compile)@ highcharts-ex port --- [INFO]将13个源文件编译到C:\hc-exporter\target\classes [INFO] ------------- ------------------------------------------------ [错误]编译错误: [信息] ----------------------------------- -------------------------- [错误] C:\hc-exporter\src\main\java\\ \\com\highcharts\export\pool\ServerObjectFact ory.java:[68,29]错误:无法找到符号 [信息] 1错误 [信息] - -------------------------------------------------- --------- [信息] ---------------------------------- -------------------------------------- [INFO] BUILD FAILURE [信息] ---------------------------------------------- -------------------------- [信息]总时间:1.652s [信息]完成时间:Thu May 16 13:53:36 EDT 2013 [INFO] Final Memory:11M / 154M [INFO] ------------------------------------------- ----------------------------- [错误]无法执行目标org.apache.maven.plugins:maven-编译器插件:2。 5.1:对项目的编译(默认编译)highcharts-export:编译失败 [错误] C:\hc-exporter\src\main\java\com\highcharts\\ \\export\pool\ServerObjectFact ory.java:[68,29]错误:无法找到符号 [错误] - > [帮助1] [错误] [错误]要查看错误的完整堆栈跟踪,请使用-e开关 ch重新运行Maven。 [错误]使用-X开关重新运行Maven以启用完整的调试日志记录。 [错误] [错误]有关错误和可能解决方案的更多信息,请阅读d以下文章: [错误] [帮助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:\程序文件\Java\jdk1.7.0_10\jre 默认语言环境:en_US,平台编码:Cp1252操作系统名称:windows 7,版本:6.1,arch:amd64,系列:windowsC:\hc-exporter> mvn clean package [INFO]扫描项目... [警告] [警告]在为构建有效模型时遇到了一些问题com.highcharts.export:highcharts-export:war :2.0.1 [警告] 'build.plugins.plugin.version'for org.apache.maven.plugins:maven-ecli pse-plugin丢失。 @第150行,第12栏[警告] [警告]强烈建议您解决这些问题,因为它们威胁到构建的稳定性。 [警告] [警告]因此,将来的 Maven版本可能不再支持构建此类格式不正确的项目。 [警告] [信息] [信息] ------------------------------------- ----------------------------------- [INFO] Building 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] execute contextualize [INFO]使用'UTF-8'编码来复制已过滤的资源。 [INFO]复制2资源[INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile(default-compile)@ highcharts-ex port --- [信息]将16个源文件编译为 C:\hc-exporter\target\classes [INFO] --------------------- ---------------------------------------- [错误]编译错误:[INFO] ----------------------------------------------- -------------- [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[8,34]错误:package org.apache.batik.transcoder不存在 [错误] C:\hc-exporter\src\main\ java \com\highcharts\export\util\SVGRasterizer.ja va:[9,34]错误:package org.apache.batik.transcoder不存在 [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[10,34] error:package org.a pache.batik.transcoder不存在 [错误] C:\ hc-exporter \ src\main\java\com\highcharts\export\util\SVGRasterizer .ja va:[11,34]错误:package org.apache.batik.transcoder不存在 [错误] C:\ hc-exporter \ src\main \java\com\highcharts\export\util\SVGRasterizer.ja va:[12,40] error:package org.apache.batik.transcoder.image does not exists [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[13,40 ]错误:包org.apache.batik.transcoder.image不存在存在[错误] C:\ hc-exporter \ src\main\java\com\highcharts\\ \\ export \util\SVGRasterizer.ja va:[14,25]错误:package org.apache.fop.svg不存在[错误] C:\ hc-exporter\ src\main\java\com\highcharts\e xport\util\SVGRasterizer.ja va:[32,34]错误:无法找到符号[错误]符号:类 TranscoderException位置:类SVGRasterizer C:\ hc- exporter \ src\main\java\com\highcharts\export\util\SVGRasterizer.java:[63,1 5]错误:找不到符号[错误]符号:class SVGAbstractTranscoder位置:class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFactory.java : [68,29]错误:找不到符号[ERROR] symbol:变量ACTIVE 位置:class ServerState C:\hc-exporter\src\main\java\com\ highcharts \export\util\SVGRasterizer.java:[34,2 ]错误:找不到符号[错误]符号:class TranscoderInput 位置:class SVGRasterizer C:\ HC-exporter\src\main\java\com\highcharts\\ \\ export \util\SVGRasterizer.java:[34,3 0]错误:无法找到符号[错误]符号:class TranscoderInput location:class SVGRasterizer C:\hc -exporter \src\main\java\com\highcharts\export\util\SVGRasterizer.java:[35,2 ]错误:找不到符号[错误]符号:class TranscoderOutput 位置:class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[35,3 7]错误:找不到符号[错误]符号:class TranscoderOutput位置:class SVGRasterizer C:\hc-exporter\src\main\java\com\\ \\ highcharts \export\util\SVGRasterizer.java:[37,2 ]错误:无法找到符号[错误]符号:class SVGAbstractTranscoder位置:class SVGRasterizer C:\\ \\hc-exporter\src\main\java\com\highcharts \\ export \util\SVGRasterizer.java:[45,3 3]错误:无法找到符号[错误]符号:变量 SVGAbstractTranscoder位置:类SVGRasterizer C:\ hc -exporter \src\main\java\com\highcharts\export\util\SVGRasterizer.java:[53,3 4]错误:无法找到符号[ERROR] symbol:variable SVGAbstractTranscoder位置:class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[66, 2 ]错误:找不到符号[错误]符号:class SVGAbstractTranscoder位置:class SVGRasterizer C:\hc-exporter\src\main\java\com\\ \\ highcharts \export\util\SVGRasterizer.java:[70,2 0]错误:无法找到符号[错误]符号:class PNGTranscoder location:class SVGRasterizer C:\hc-exporter\src\main\java\\ \\com\highcharts\export\util\SVGRasterizer.java:[73,2 0]错误:无法找到符号[错误]符号:类JPEGTranscoder 位置:类SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[74,3 3]错误:无法找到符号[错误]符号:变量 JPEGTranscoder位置:类SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer .java:[78,2 0]错误:无法找到符号[INFO] 22错误[INFO] -------------------- ----------------------------------------- [INFO] ------ -------------------------------------------------- ---------------- [INFO] BUILD FAILURE [INFO] ---------------------- -------------------------------------------------- [INFO]总时间:7.741s [INFO]完成时间:星期四5月16日12:54:29 EDT 2013 [INFO] Final Memory:11M / 1 22M [信息] ------------------------------------------ ------------------------------ [错误]未能执行目标 org.apache.maven.plugins:maven -compiler-插件:2。 5.1:对项目进行编译(默认编译)highcharts-export:编译失败:编译失败:[错误] C:\ hc-exporter \ src\main\java\com \highcharts\export\util\SVGRasterizer.ja va:[8,34]错误:package org.apache.batik.transcoder不存在 [错误] C :\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[9,34]错误:package org.apache。 batik.transcoder不存在 [错误] C:\ hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[10,34] error:package org.apache.batik.transcoder does not exist [错误] C:\hc-exporter\src\main\ java \com\highcharts\export\util\SVGRasterizer.ja va:[11,34]错误:package org.apache.batik.transcoder不存在 [错误] C:\ hc-ex porter \src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[12,40]错误:package org.apache.batik.transcoder.image不存在 [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[13,40]错误:package org.apache.batik.transcoder.image不存在 [错误] C:\hc-exporter\src\main\java \com\highcharts\export\util\SVGRasterizer.ja va:[14,25]错误:package org.apache.fop.svg不存在[错误] C: \hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[32,34]错误:无法找到符号[错误] symbol:class TranscoderException [ERROR] location:class SVGRasterizer [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util \SV GRasterizer.ja va:[63,15]错误:无法找到符号[错误]符号:class SVGAbstractTranscoder [错误] location:class SVGRasterizer [错误] C:\ hc- exporter \ src\main\java\com\highcharts\export\pool\ServerObjectFact ory.java:[68,29]错误:无法找到符号[ERROR] symbol:variable ACTIVE [错误]位置:class ServerState [错误] C:\ hc-exporter \ src\main\java\com\highcharts\export\util\SVGRasterizer。 ja va:[34,2]错误:无法找到符号[错误]符号:class TranscoderInput [错误]位置:类SVGRasterizer [错误] C:\ hc-exporter \\ \\ src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[34,30]错误:无法找到符号[错误]符号:class TranscoderInput [错误]位置:类SVGRasterizer [错误] C:\hc-exporter\src\main\java\\无法找到符号[错误]符号:class TranscoderOutput [错误]位置:类SVGRasterizer [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[35,37]错误:无法找到符号[错误]符号:class TranscoderOutput [错误]位置:类SVGRasterizer [错误] C:\ hc-exporter \ src\main\java\com\\ \\ highcharts \export\util\SVGRasterizer.ja va:[37,2]错误:无法找到符号[错误]符号:class SVGAbstractTranscoder [错误]位置:class SVGRasterizer [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[45,33]错误:无法找到符号[错误]符号:变量 SVGAbstractTranscoder [错误]位置:类SVGRasterizer [ERR OR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[53,34]错误:无法找到符号[错误]符号:变量 SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误] C:\ hc-exporter \ src\main\java\com\\ \\ highcharts \export\util\SVGRasterizer.ja va:[66,2]错误:找不到符号[错误]符号:class SVGAbstractTranscoder [错误]位置:class SVGRasterizer [错误] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[70,20]错误:无法找到符号[错误]符号:类 PNGTranscoder [错误]位置:类SVGRasterizer [错误] C:\ hc-exporter \ src\main\java\com\highcharts \export\util\SVGRasterizer.ja va:[73,20]错误:无法找到符号[错误]符号:class JPEGTranscoder [错误] location:class SVGRasterizer [错误] C:\ hc-exporter \ src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[74,33] error:can not find symbol [错误] symbol:变量 JPEGTranscoder [错误] location:class SVGRasterizer [错误] C:\ hc-exporter \ src \\ \\ main \java\com\highcharts\export\util\SVGRasterizer.ja va:[78,20]错误:无法找到符号[错误] - > [帮助1] [错误] [错误]要查看错误的完整堆栈跟踪,请使用 -e开关重新运行Maven。 [错误]使用-X开关重新运行Maven以启用完整调试日志记录。 [错误] [错误]有关错误和可能的解决方案的更多信息,请阅读以下文章: [错误] [帮助1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption C:\\ \\ hc-exporter> 解决方案我找到了解决这个问题的办法。 > zhiweihu 上传了补丁可以解决这个问题。问题是 ServerState 类没有 ACTIVE 状态。 一旦您应用了补丁,您就可以创建该包一个问题,并按预期工作。 I have downloaded the latest highcharts-exporter following the instructions here. I am running this on Windows7 x64 locally and it will eventually be in a Windows production environment using Jetty9.I have changed one line in highcharts-export/src/main/resources/app.properties:# location of the phantomjs executable, could be for example /usr/local/bin/phantomjsexec = /Scripts/phantomjsI have maven (3.0.5) installed and configured. I last built this project before the 3.x release of HighCharts. That build was successful.When I try to build now I get the following output. Any info here would be great.EDITIt appears that these errors are caused by left over files from previous version of highcharts-export. I have done a complete clean of the entire directory to start fresh. I am still getting one error that makes it not build:C:\hc-exporter>mvn clean package[INFO] Scanning for projects...[WARNING][WARNING] Some problems were encountered while building the effective model forcom.highcharts.export:highcharts-export:war:2.0.1[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-eclipse-plugin is missing. @ line 150, column 12[WARNING][WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.[WARNING][WARNING] For this reason, future Maven versions might no longer support building 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-export ---[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\ServerObjectFactory.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\ServerObjectFactory.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 switch.[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 read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptionC:\hc-exporter>Old errors - just here for reference. C:\hc-exporter>mvn -version Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51: 28-0500) Maven home: C:\apache-maven-3.0.5 Java version: 1.7.0_10, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_10\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" 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 16 source files to C:\hc-exporter\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[8,34] error: package org.apache.batik.transcoder does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[9,34] error: package org.apache.batik.transcoder does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[10,34] error: package org.apache.batik.transcoder does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[11,34] error: package org.apache.batik.transcoder does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[12,40] error: package org.apache.batik.transcoder.image does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[13,40] error: package org.apache.batik.transcoder.image does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[14,25] error: package org.apache.fop.svg does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[32,34] error: cannot find symbol [ERROR] symbol: class TranscoderException location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[63,1 5] error: cannot find symbol [ERROR] symbol: class SVGAbstractTranscoder location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFactory.java :[68,29] error: cannot find symbol [ERROR] symbol: variable ACTIVE location: class ServerState C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[34,2 ] error: cannot find symbol [ERROR] symbol: class TranscoderInput location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[34,3 0] error: cannot find symbol [ERROR] symbol: class TranscoderInput location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[35,2 ] error: cannot find symbol [ERROR] symbol: class TranscoderOutput location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[35,3 7] error: cannot find symbol [ERROR] symbol: class TranscoderOutput location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[37,2 ] error: cannot find symbol [ERROR] symbol: class SVGAbstractTranscoder location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[45,3 3] error: cannot find symbol [ERROR] symbol: variable SVGAbstractTranscoder location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[53,3 4] error: cannot find symbol [ERROR] symbol: variable SVGAbstractTranscoder location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[66,2 ] error: cannot find symbol [ERROR] symbol: class SVGAbstractTranscoder location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[70,2 0] error: cannot find symbol [ERROR] symbol: class PNGTranscoder location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[73,2 0] error: cannot find symbol [ERROR] symbol: class JPEGTranscoder location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[74,3 3] error: cannot find symbol [ERROR] symbol: variable JPEGTranscoder location: class SVGRasterizer C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.java:[78,2 0] error: cannot find symbol [INFO] 22 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.741s [INFO] Finished at: Thu May 16 12:54:29 EDT 2013 [INFO] Final Memory: 11M/122M [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: Compilation failure: [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[8,34] error: package org.apache.batik.transcoder does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[9,34] error: package org.apache.batik.transcoder does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[10,34] error: package org.apache.batik.transcoder does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[11,34] error: package org.apache.batik.transcoder does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[12,40] error: package org.apache.batik.transcoder.image does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[13,40] error: package org.apache.batik.transcoder.image does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[14,25] error: package org.apache.fop.svg does not exist [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[32,34] error: cannot find symbol [ERROR] symbol: class TranscoderException [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[63,15] error: cannot find symbol [ERROR] symbol: class SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\pool\ServerObjectFact ory.java:[68,29] error: cannot find symbol [ERROR] symbol: variable ACTIVE [ERROR] location: class ServerState [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[34,2] error: cannot find symbol [ERROR] symbol: class TranscoderInput [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[34,30] error: cannot find symbol [ERROR] symbol: class TranscoderInput [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[35,2] error: cannot find symbol [ERROR] symbol: class TranscoderOutput [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[35,37] error: cannot find symbol [ERROR] symbol: class TranscoderOutput [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[37,2] error: cannot find symbol [ERROR] symbol: class SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[45,33] error: cannot find symbol [ERROR] symbol: variable SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[53,34] error: cannot find symbol [ERROR] symbol: variable SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[66,2] error: cannot find symbol [ERROR] symbol: class SVGAbstractTranscoder [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[70,20] error: cannot find symbol [ERROR] symbol: class PNGTranscoder [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[73,20] error: cannot find symbol [ERROR] symbol: class JPEGTranscoder [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[74,33] error: cannot find symbol [ERROR] symbol: variable JPEGTranscoder [ERROR] location: class SVGRasterizer [ERROR] C:\hc-exporter\src\main\java\com\highcharts\export\util\SVGRasterizer.ja va:[78,20] 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> 解决方案 I have found a solution to this problem.zhiweihu has upload a patch that solves the issue. The problem is that ServerState class do not have the ACTIVE state.Once you have applied the patch, you can create the package without a problem and it works as expected. 这篇关于构建HighCharts-Export Server 2.1失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-31 10:39