我已按照说明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 home:C:\ apache-maven-3.0.5 Java版本:1.7.0_10,供应商: Oracle Corporation Java home:C:\ Program Files \ Java \ jdk1.7.0_10 \ jre 默认语言环境:en_US,平台编码:Cp1252操作系统名称:" windows 7", 版本:" 6.1",arch:" amd64",family:" windows" C:\ HC-出口和GT; MVN 清洁包[INFO]扫描项目... [警告] [警告]一些 在构建有效模型时遇到了问题 com.highcharts.export:highcharts-export:war:2.0.1 [警告] ' build.plugins.plugin.version'对于org.apache.maven.plugins:maven-ecli pse-plugin丢失了。 @第150行,第12栏[警告] [警告]确实如此 强烈建议解决这些问题,因为他们威胁到他 你的构建的稳定性。 [警告] [警告]因此,未来 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] execute contextualize [INFO]使用' UTF-8'编码以复制过滤的资源。 [INFO]复制2个资源[INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile(default-compile)@ highcharts-ex port --- [INFO]编译16个源文件 C:\ hc-exporter \ target \ classes [INFO] -------------------------------------------------- ----------- [ERROR]编译错误:[INFO] -------------------------------------------------- ----------- [ERROR] C:\ hc-exporter \ src \ main \ java \ com \ highcharts \ export \ util \ SVGRasterizer.ja va:[8,34]错误:包org.apache.batik.transcoder不存在 [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[9,34]错误:包org.apache.batik.transcoder不存在 [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[10,34]错误:包org.apache.batik.transcoder不存在 [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[11,34]错误:包org.apache.batik.transcoder不存在 [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[12,40]错误:包org.apache.batik.transcoder.image没有 存在[错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[13,40]错误:包org.apache.batik.transcoder.image没有 存在[错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[14,25]错误:包org.apache.fop.svg不存在[错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[32,34]错误:找不到符号[ERROR]符号:class TranscoderException location:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:63,1 5]错误:找不到符号[ERROR]符号:class SVGAbstractTranscoder位置:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\池\ ServerObjectFactory.java :[68,29]错误:找不到符号[ERROR]符号:变量ACTIVE location:类ServerState C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:34,2 ]错误:找不到符号[ERROR]符号:类TranscoderInput location:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:34,3 0]错误:找不到符号[ERROR]符号:类TranscoderInput location:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:35,2 ]错误:找不到符号[ERROR]符号:类TranscoderOutput location:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:35,3 7]错误:找不到符号[ERROR]符号:class TranscoderOutput位置:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:37,2 ]错误:找不到符号[ERROR]符号:class SVGAbstractTranscoder位置:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:45,3 3]错误:找不到符号[ERROR]符号:变量 SVGAbstractTranscoder位置:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:53,3 4]错误:找不到符号[ERROR]符号:变量 SVGAbstractTranscoder位置:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:66,2 ]错误:找不到符号[ERROR]符号:class SVGAbstractTranscoder位置:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:70.2 0]错误:找不到符号[ERROR]符号:类PNGTranscoder
location:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:73,2 0]错误:找不到符号[ERROR]符号:类JPEGTranscoder location:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:74.3 3]错误:找不到符号[ERROR]符号:变量 JPEGTranscoder位置:类SVGRasterizer C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.java:78,2 0]错误:找不到符号[INFO] 22错误[INFO] -------------------------------------------------- ----------- [INFO] ------------------------------------ ------------------------------------ [INFO] BUILD FAILURE [INFO] -------------------------------------------------- ---------------------- [INFO]总时间:7.741s [INFO]完成于:5月16日星期四12:54:29 2013 [INFO]最终记忆:11M / 122M [INFO] -------------------------------------------------- ---------------------- [错误]无法执行目标 org.apache.maven.plugins:行家编译-插件:2。 5.1:项目的编译(default-compile)highcharts-export:编译失败:编译失败:[ERROR] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[8,34]错误:包org.apache.batik.transcoder不存在 [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[9,34]错误:包org.apache.batik.transcoder不存在 [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[10,34]错误:包org.apache.batik.transcoder不存在 [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[11,34]错误:包org.apache.batik.transcoder不存在 [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[12,40]错误:包org.apache.batik.transcoder.image没有 存在[错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[13,40]错误:包org.apache.batik.transcoder.image没有 存在[错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[14,25]错误:包org.apache.fop.svg不存在[错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[32,34]错误:找不到符号[ERROR]符号:class TranscoderException [ERROR] location:类SVGRasterizer [ERROR] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[63,15]错误:找不到符号[ERROR]符号:class SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\池\ ServerObjectFact ory.java:[68,29]错误:找不到符号[ERROR]符号:变量 ACTIVE [ERROR]位置:类ServerState [ERROR] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[34,2]错误:找不到符号[ERROR]符号:class TranscoderInput [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[34,30]错误:找不到符号[ERROR]符号:class TranscoderInput [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[35,2]错误:找不到符号[ERROR]符号:class TranscoderOutput [ERROR]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[35,37]错误:找不到符号[ERROR]符号:class TranscoderOutput [ERROR]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[37,2]错误:找不到符号[ERROR]符号:class SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[45,33]错误:找不到符号[ERROR]符号:变量 SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[53,34]错误:找不到符号[ERROR]符号:变量 SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[66,2]错误:找不到符号[ERROR]符号:class SVGAbstractTranscoder [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[70,20]错误:找不到符号[ERROR]符号:class PNGTranscoder [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[73,20]错误:找不到符号[ERROR]符号:class JPEGTranscoder [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[74,33]错误:找不到符号[ERROR]符号:变量 JPEGTranscoder [错误]位置:类SVGRasterizer [错误] C:\ HC-出口的\ src \主\ java中的\ com \ highcharts \出口\ UTIL \ SVGRasterizer.ja va:[78,20]错误:找不到符号[ERROR] - > [帮助1] [错误] [错误]要查看错误的完整堆栈跟踪,请重新运行Maven -e swit ch。 [ERROR]使用-X开关重新运行Maven以启用 完整的调试日志。 [错误] [错误]有关的更多信息 错误和可能的解决方案,请阅读以下文章: [错误] [帮助1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption C:\ HC-出口和GT;