我已經按照說明here下載了最新的highcharts-exporter。我在Windows7 x64上本地運行它,它最終將在使用Jetty9的Windows生產環境中運行。Building HighCharts-Export Server 2.1 Failed
我在highcharts出口/ SRC /主/資源/ app.properties改變一行:
# location of the phantomjs executable, could be for example /usr/local/bin/phantomjs
exec = /Scripts/phantomjs
我有行家(3.0.5)安裝和配置。我最後在HighCharts的3.x版之前建立了這個項目。這個構建是成功的。
當我嘗試構建現在我得到以下輸出。這裏的任何信息都會很棒。
編輯
看來,這些錯誤是由於遺留下來的文件從以前的版本highcharts出口造成的。我已經徹底清理了整個目錄以重新開始。我仍然得到一個錯誤,使它不能建立:
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 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>
@wergeId我有同樣的問題,你有沒有找到解決方案? – jvallver
@jvallver,還沒有。這對我們來說是一個巨大的延遲。 – wergeld
@jvallver,我在他們的github上打開了一個問題。問題#1854。 – wergeld