我已经按照here的说明下载了最新的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”,拱门:“ amd64”,家庭:“ windows” C:\ hc-exporter> mvn
清洁程序包[信息]正在扫描项目... [警告] [警告]一些
建立有效的模型时遇到问题
com.highcharts.export:highcharts-export:war:2.0.1 [警告]
org.apache.maven.plugins的'build.plugins.plugin.version':maven-ecli
pse插件丢失。 @第150行第12列[警告] [警告]
强烈建议解决这些问题,因为它们可能威胁到
构建的稳定性。 [警告] [警告]因此,未来
Maven版本可能不再支持这种格式错误的内置文件
项目。 [警告] [信息] [信息]
-------------------------------------------------- ---------------------- [INFO]建立highcharts-export 2.0.1 [INFO]
-------------------------------------------------- ---------------------- [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean(default-clean)@
高图表出口-
-[INFO]删除C:\ hc-exporter \ target [INFO] [INFO] --- maven-resources-plugin:2.5:resources(默认资源)@ highcharts
-export --- [debug]执行上下文化[INFO],使用'UTF-8'编码复制过滤的资源。 [INFO]复制2个资源[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile(default-compile)@
highcharts-ex端口--- [信息]将16个源文件编译为
C:\ hc-exporter \ target \ classes [信息]
-------------------------------------------------- ----------- [错误]编译错误:[信息]
-------------------------------------------------- ----------- [错误] 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:[11,34]错误:软件包org.apache.batik.transcoder不存在
[错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[12,40]错误:包org.apache.batik.transcoder.image没有
存在[错误]
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]错误:软件包org.apache.fop.svg不存在[错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[32,34]错误:找不到符号[ERROR]符号:类
TranscoderException位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[63,1
5]错误:找不到符号[ERROR]符号:类
SVGAbstractTranscoder位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ pool \ ServerObjectFactory.java
:[68,29]错误:找不到符号[ERROR]符号:变量ACTIVE
位置:类ServerState
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[34,2
]错误:找不到符号[ERROR]符号:类TranscoderInput
位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[34,3
0]错误:找不到符号[ERROR]符号:类TranscoderInput
位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[35,2
]错误:找不到符号[ERROR]符号:类TranscoderOutput
位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[35,3
7]错误:找不到符号[ERROR]符号:类
代码转换器输出位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[37,2
]错误:找不到符号[ERROR]符号:类
SVGAbstractTranscoder位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[45,3
3]错误:找不到符号[ERROR]符号:变量
SVGAbstractTranscoder位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[53,3
4]错误:找不到符号[ERROR]符号:变量
SVGAbstractTranscoder位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[66,2
]错误:找不到符号[ERROR]符号:类
SVGAbstractTranscoder位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[70,2
0]错误:找不到符号[ERROR]符号:类PNGTranscoder
位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[73,2
0]错误:找不到符号[ERROR]符号:类JPEGTranscoder
位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[74,3
3]错误:找不到符号[ERROR]符号:变量
JPEGTranscoder位置:SVGRasterizer类
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.java:[78,2
0]错误:找不到符号[INFO] 22错误[INFO]
-------------------------------------------------- ----------- [INFO] ------------------------------------ ------------------------------------ [INFO]内置失败[INFO]
-------------------------------------------------- ---------------------- [INFO]总时间:7.741秒[INFO]完成时间:美国东部时间5月16日星期四12:54:29
2013 [INFO]最终记忆:11M / 122M [INFO]
-------------------------------------------------- ---------------------- [ERROR]无法执行目标
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:[11,34]错误:软件包org.apache.batik.transcoder不存在
[错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[12,40]错误:包org.apache.batik.transcoder.image没有
存在[错误]
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]错误:软件包org.apache.fop.svg不存在[错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[32,34]错误:找不到符号[ERROR]符号:类
TranscoderException [ERROR]位置:类SVGRasterizer [ERROR]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[63,15]错误:找不到符号[ERROR]符号:类
SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ pool \ ServerObjectFact
ory.java:[68,29]错误:找不到符号[ERROR]符号:变量
活动的[错误]位置:类ServerState [错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[34,2]错误:找不到符号[ERROR]符号:类
TranscoderInput [ERROR]位置:类SVGRasterizer [ERROR]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[34,30]错误:找不到符号[ERROR]符号:类
TranscoderInput [ERROR]位置:类SVGRasterizer [ERROR]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[35,2]错误:找不到符号[ERROR]符号:类
TranscoderOutput [ERROR]位置:类SVGRasterizer [ERROR]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[35,37]错误:找不到符号[ERROR]符号:类
TranscoderOutput [ERROR]位置:类SVGRasterizer [ERROR]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[37,2]错误:找不到符号[ERROR]符号:类
SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[45,33]错误:找不到符号[ERROR]符号:变量
SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[53,34]错误:找不到符号[ERROR]符号:变量
SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[66,2]错误:找不到符号[ERROR]符号:类
SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[70,20]错误:找不到符号[ERROR]符号:类
PNGTranscoder [错误]位置:类SVGRasterizer [错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[73,20]错误:找不到符号[ERROR]符号:类
JPEGTranscoder [错误]位置:类SVGRasterizer [错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[74,33]错误:找不到符号[ERROR]符号:变量
JPEGTranscoder [错误]位置:类SVGRasterizer [错误]
C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja
va:[78,20]错误:找不到符号[错误]-> [帮助1] [错误]
[错误]要查看错误的完整堆栈跟踪,请使用
-e开关[错误]使用-X开关重新运行Maven以启用
完整的调试日志记录。 [ERROR] [ERROR]有关以下内容的更多信息
错误和可能的解决方案,请阅读以下文章:
[错误] [帮助1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc肽
C:\ hc-exporter>
最佳答案
我找到了解决此问题的方法。
zhiweihu已上载了解决该问题的patch。问题是ServerState
类没有ACTIVE
状态。
一旦应用了patch,就可以毫无问题地创建包,并且可以按预期运行。