algoquant-maven-plugin – FAILURE
-
mlvtseParticipant 2015-09-21 at 7:17 am
I have a similar problem to Yu Dongqing’s. But still can’t resolve it after reading his treads. here is the screen shot of the error:
Scanning for projects… ———————————————————————— Reactor Build Order:
algoquant algoquant-maven-plugin algoquant-core
———————————————————————— Building algoquant 1.1.0 ————————————————————————
— build-helper-maven-plugin:1.9.1:add-resource (add-resource) @ algoquant —
———————————————————————— Building algoquant-maven-plugin 1.1.0 ————————————————————————
— maven-plugin-plugin:3.2:helpmojo (help-goal) @ algoquant-maven-plugin — Using ‘UTF-8’ encoding to read mojo metadata. Applying mojo extractor for language: java Mojo extractor for language: java found 0 mojo descriptors. Applying mojo extractor for language: bsh Mojo extractor for language: bsh found 0 mojo descriptors. Applying mojo extractor for language: java-annotations Mojo extractor for language: java-annotations found 0 mojo descriptors.
— maven-plugin-plugin:3.2:descriptor (default-descriptor) @ algoquant-maven-plugin — Using ‘UTF-8’ encoding to read mojo metadata. Applying mojo extractor for language: java Mojo extractor for language: java found 0 mojo descriptors. Applying mojo extractor for language: bsh Mojo extractor for language: bsh found 0 mojo descriptors. Applying mojo extractor for language: java-annotations Mojo extractor for language: java-annotations found 0 mojo descriptors.
— build-helper-maven-plugin:1.9.1:add-resource (add-resource) @ algoquant-maven-plugin —
— maven-resources-plugin:2.5:resources (default-resources) @ algoquant-maven-plugin — [debug] execute contextualize Using ‘UTF-8’ encoding to copy filtered resources. Copying 2 resources Copying 2 resources
— maven-compiler-plugin:3.2:compile (default-compile) @ algoquant-maven-plugin — Changes detected – recompiling the module! Compiling 8 source files to C:\Users\Vincent\Desktop\algoquant-1.1.0\maven\target\classes
— maven-plugin-plugin:3.2:descriptor (mojo-descriptor) @ algoquant-maven-plugin — Using ‘UTF-8’ encoding to read mojo metadata. Applying mojo extractor for language: java Mojo extractor for language: java found 0 mojo descriptors. Applying mojo extractor for language: bsh Mojo extractor for language: bsh found 0 mojo descriptors. Applying mojo extractor for language: java-annotations Mojo extractor for language: java-annotations found 3 mojo descriptors. ———————————————————————— Reactor Summary:
algoquant ………………………………….. SUCCESS [1.354s] algoquant-maven-plugin ………………………. FAILURE [17.060s] algoquant-core ……………………………… SKIPPED ———————————————————————— BUILD FAILURE ———————————————————————— Total time: 18.604s Finished at: Mon Sep 21 14:56:29 CST 2015 Final Memory: 37M/713M ———————————————————————— Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor (mojo-descriptor) on project algoquant-maven-plugin: Error extracting plugin descriptor: ‘Goal: help already exists in the plugin descriptor for prefix: algoquant Existing implementation is: HelpMojo Conflicting implementation is: com.numericalmethod.algoquant.maven.indices.sp500.HelpMojo’ -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
After correcting the problems, you can resume the build with the command mvn -rf :algoquant-maven-plugin
-
mlvtseParticipant 2015-09-21 at 7:33 am
-
mlvtseParticipant 2015-09-21 at 9:06 am
still not getting anywhere; dont understand what mojo mean?
cd C:\Users\Vincent\Desktop\algoquant-1.1.0\maven; “JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_60” cmd /c “\”\”C:\\Program Files\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\” -Dmaven.ext.class.path=\”C:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\” -Dfile.encoding=UTF-8 clean install\”” Scanning for projects…
———————————————————————— Building algoquant-maven-plugin 1.1.0 ————————————————————————
— maven-clean-plugin:2.4.1:clean (default-clean) @ algoquant-maven-plugin — Deleting C:\Users\Vincent\Desktop\algoquant-1.1.0\maven\target
— maven-plugin-plugin:3.2:helpmojo (help-goal) @ algoquant-maven-plugin — Using ‘UTF-8’ encoding to read mojo metadata. Applying mojo extractor for language: java Mojo extractor for language: java found 0 mojo descriptors. Applying mojo extractor for language: bsh Mojo extractor for language: bsh found 0 mojo descriptors. Applying mojo extractor for language: java-annotations Mojo extractor for language: java-annotations found 0 mojo descriptors.
— maven-plugin-plugin:3.2:descriptor (default-descriptor) @ algoquant-maven-plugin — Using ‘UTF-8’ encoding to read mojo metadata. Applying mojo extractor for language: java Mojo extractor for language: java found 0 mojo descriptors. Applying mojo extractor for language: bsh Mojo extractor for language: bsh found 0 mojo descriptors. Applying mojo extractor for language: java-annotations Mojo extractor for language: java-annotations found 0 mojo descriptors.
— build-helper-maven-plugin:1.9.1:add-resource (add-resource) @ algoquant-maven-plugin —
— maven-resources-plugin:2.5:resources (default-resources) @ algoquant-maven-plugin — [debug] execute contextualize Using ‘UTF-8’ encoding to copy filtered resources. Copying 2 resources Copying 2 resources
— maven-compiler-plugin:3.2:compile (default-compile) @ algoquant-maven-plugin — Changes detected – recompiling the module! Compiling 7 source files to C:\Users\Vincent\Desktop\algoquant-1.1.0\maven\target\classes
— maven-plugin-plugin:3.2:descriptor (mojo-descriptor) @ algoquant-maven-plugin — Using ‘UTF-8’ encoding to read mojo metadata. Applying mojo extractor for language: java Mojo extractor for language: java found 0 mojo descriptors. Applying mojo extractor for language: bsh Mojo extractor for language: bsh found 0 mojo descriptors. Applying mojo extractor for language: java-annotations Mojo extractor for language: java-annotations found 2 mojo descriptors.
— maven-resources-plugin:2.5:testResources (default-testResources) @ algoquant-maven-plugin — [debug] execute contextualize Using ‘UTF-8’ encoding to copy filtered resources. skip non existing resourceDirectory C:\Users\Vincent\Desktop\algoquant-1.1.0\maven\src\test\resources
— maven-compiler-plugin:3.2:testCompile (default-testCompile) @ algoquant-maven-plugin — Changes detected – recompiling the module! Compiling 3 source files to C:\Users\Vincent\Desktop\algoquant-1.1.0\maven\target\test-classes
— maven-surefire-plugin:2.18.1:test (default-test) @ algoquant-maven-plugin — Surefire report directory: C:\Users\Vincent\Desktop\algoquant-1.1.0\maven\target\surefire-reports file.encoding cannot be set as system property, use -Dfile.encoding=… instead
——————————————————- T E S T S ——————————————————- Running com.numericalmethod.algoquant.maven.indices.sp500.SP500StocksFromWikipediaTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.58 sec – in com.numericalmethod.algoquant.maven.indices.sp500.SP500StocksFromWikipediaTest Running com.numericalmethod.algoquant.maven.indices.sp500.SP500WriterTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.249 sec – in com.numericalmethod.algoquant.maven.indices.sp500.SP500WriterTest Running com.numericalmethod.algoquant.maven.indices.YahooPropertiesDecoratorTest 17:00:07.737 [main] ERROR c.n.n.yahoo.YahooPropertyDownloader – error openning a connection, URL: http://finance.yahoo.com/d/quotes.csv?s=SCG+SLB+SNI+STX+SEE+SRE+SHW+SIAL+SIG+SPG+SWKS+SLG+SJM+SNA+SO+LUV+SWN+SE+STJ+SWK+SPLS+SBUX+HOT+STT+SRCL+SYK+STI+SYMC+SYY+TROW+TGT+TEL+TE+TGNA+THC+TDC+TSO+TXN+TXT+HSY+TRV+TMO+TIF+TWX+TWC+TJX+TMK+TSS+TSCO+RIG+TRIP+FOXA+TSN+TYC+USB+UA+UNP+UAL+UNH+UPS+URI+UTX+UHS+UNM+URBN+VFC+VLO+VAR+VTR+VRSN+VZ+VRTX+VIAB+V+VNO+VMC+WMT+WBA+DIS+WM+WAT+ANTM+WFC+WDC+WU+WY+WHR+WFM+WMB+WEC+WYN+WYNN+XEL+XRX+XLNX+XL+XYL+YHOO+YUM+ZBH&f=nx Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 30.715 sec < << FAILURE! - in com.numericalmethod.algoquant.maven.indices.YahooPropertiesDecoratorTest test(com.numericalmethod.algoquant.maven.indices.YahooPropertiesDecoratorTest) Time elapsed: 30.715 sec << [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
-
mlvtseParticipant 2015-09-21 at 9:25 am
and this is from Eclipse:
[INFO] Scanning for projects… [INFO] ———————————————————————— [INFO] Reactor Build Order: [INFO] [INFO] algoquant [INFO] algoquant-maven-plugin [INFO] algoquant-core [INFO] [INFO] ———————————————————————— [INFO] Building algoquant 1.1.0 [INFO] ———————————————————————— [INFO] [INFO] — build-helper-maven-plugin:1.9.1:add-resource (add-resource) @ algoquant — [INFO] [INFO] — maven-source-plugin:2.4:jar-no-fork (attach-sources) @ algoquant — [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ algoquant — [INFO] Installing C:\Users\Vincent\Desktop\algoquant-1.1.0\pom.xml to C:\Users\Vincent\.m2\repository\com\numericalmethod\algoquant\1.1.0\algoquant-1.1.0.pom [INFO] [INFO] ———————————————————————— [INFO] Building algoquant-maven-plugin 1.1.0 [INFO] ———————————————————————— [INFO] [INFO] — maven-plugin-plugin:3.2:helpmojo (help-goal) @ algoquant-maven-plugin — [INFO] Using ‘UTF-8’ encoding to read mojo metadata. [INFO] Applying mojo extractor for language: java [INFO] Mojo extractor for language: java found 0 mojo descriptors. [INFO] Applying mojo extractor for language: bsh [INFO] Mojo extractor for language: bsh found 0 mojo descriptors. [INFO] Applying mojo extractor for language: java-annotations [INFO] Mojo extractor for language: java-annotations found 1 mojo descriptors. [INFO] [INFO] — build-helper-maven-plugin:1.9.1:add-resource (add-resource) @ algoquant-maven-plugin — [INFO] [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ algoquant-maven-plugin — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] Copying 2 resources [INFO] [INFO] — maven-compiler-plugin:3.2:compile (default-compile) @ algoquant-maven-plugin — [INFO] Changes detected – recompiling the module! [INFO] Compiling 7 source files to C:\Users\Vincent\Desktop\algoquant-1.1.0\maven\target\classes [INFO] ————————————————————- [ERROR] COMPILATION ERROR : [INFO] ————————————————————- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ————————————————————- [INFO] ———————————————————————— [INFO] Reactor Summary: [INFO] [INFO] algoquant …………………………………… SUCCESS [ 1.975 s] [INFO] algoquant-maven-plugin ……………………….. FAILURE [ 5.809 s] [INFO] algoquant-core ………………………………. SKIPPED [INFO] ———————————————————————— [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 8.044 s [INFO] Finished at: 2015-09-21T17:23:07+08:00 [INFO] Final Memory: 26M/650M [INFO] ———————————————————————— [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project algoquant-maven-plugin: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :algoquant-maven-plugin
-
Ken YiuParticipant 2015-09-21 at 10:21 am
It seems that your computer may not be able to connect to Yahoo! Finance. Could you please test this link?
Or, you can just build the project without running the test. To do this, go to algoquant/pom.xml, and uncomment line 31.
- This reply was modified 1 year, 3 months ago by Ken Yiu.
- This reply was modified 1 year, 3 months ago by Ken Yiu.
- This reply was modified 1 year, 3 months ago by Ken Yiu.
- This reply was modified 1 year, 3 months ago by Ken Yiu.
- This reply was modified 1 year, 3 months ago by Ken Yiu.
- This reply was modified 1 year, 3 months ago by Ken Yiu.