Question for Initial Setup
-
jinyunyiParticipant 2015-09-20 at 11:47 am
I try to build the project but I ran into some trouble.The detail is in the attachment. Can you tell me what went wrong? thank you very much!
Attachments:
You must be logged in to view attached files.
-
jinyunyiParticipant 2015-09-20 at 12:04 pm
This is the help from wiki, but I still didn’t know how to solve this problem.
PluginResolutionException Skip to end of metadata Created by Benjamin Bentmann, last modified on Jan 18, 2010 Go to start of metadata This error occurs when you employ a plugin that Maven could not download. Possible causes for this error are: You are referring to a non-existing plugin, e.g. by means of a typo in its group id, artifact id or version. You are using a third-party Maven plugin that is not deployed to the central Maven repository and your POM/settings is missing the required to download the plugin. Note that declarations are not considered when looking for the plugin and its dependencies, only are searched for plugins. The plugin repository you have configured requires authentication and Maven failed to provide the correct credentials to the server. In this case, make sure your ${user.home}/.m2/settings.xml contains a declaration whose matches the of the plugin repository to use. See the Maven Settings Reference for more details. There is a general network problem that prevents Maven from accessing any remote repository, e.g. a missing proxy configuration. Maven failed to save the files to your local repository, see LocalRepositoryNotAccessibleException for more details. The plugin repository you have configured is disabled for the specific version of the plugin you requested. For instance, if you want to use a SNAPSHOT version of a plugin, make sure you don’t have false configured. Likewise, in order to resolve a released version of the plugin, the plugin repository should not be configured with false. See the POM Reference for more information on repository configuration. In those cases, check your POM and/or settings for the proper contents. If you configured the plugin repository in a profile of your settings.xml, also verify that this profile gets actually activated, e.g. via invoking mvn help:active-profiles. In case of a general network-related problem, you could also consult the following articles: Configuring a Proxy Security and Deployment Settings Guide to Remote Repository Access through Authenticated HTTPS Note: For performance reasons, Maven caches the information that the plugin could not be downloaded. Depending on your setup, you might need to clear this cache by adding the flag -U to the command line for your corrections to take effect.
-
jinyunyiParticipant 2015-09-20 at 2:39 pm
By the way,I tried eclipse later but the same thing happened in it.
Could anyone help me to solve this? Thank you.
[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\jin\Desktop\HKUST\4.Algorithmic Trading Strategy—MAFS_6010D\eclipse\algoquant-1.1.0\algoquant-1.1.0\pom.xml to C:\Users\jin\.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 0 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\jin\Desktop\HKUST\4.Algorithmic Trading Strategy—MAFS_6010D\eclipse\algoquant-1.1.0\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 [ 3.186 s] [INFO] algoquant-maven-plugin ……………………….. FAILURE [ 12.810 s] [INFO] algoquant-core ………………………………. SKIPPED [INFO] ———————————————————————— [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 16.450 s [INFO] Finished at: 2015-09-20T22:36:33+08:00 [INFO] Final Memory: 30M/554M [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
-
RyuParticipant 2015-09-20 at 2:44 pm
Well, if you read the log message, it says: [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
Did you install a JDK (NOT just JRE)? http://www.oracle.com/technetwork/java/javase/downloads/index.html
-
jinyunyiParticipant 2015-09-20 at 2:50 pm
I did install JDK. What I choose is the icon from the right: NetBeans with JDK 8
-
jinyunyiParticipant 2015-09-20 at 2:56 pm
-
RyuParticipant 2015-09-20 at 3:00 pm
When you right click on project “algoquant”, then go to Build->Compile. What do you see as the platform? Mine looks like what in the attachment.
Attachments:
You must be logged in to view attached files.
-
jinyunyiParticipant 2015-09-20 at 3:11 pm
-
RyuParticipant 2015-09-20 at 3:37 pm
hmm… it is difficult to know your specific problem. Maybe you can google it and try the suggested solutions.
-
Ken YiuParticipant 2015-09-21 at 5:53 am
hi jinyunyi,
What do you see if you just compile ‘algoquant-maven-plugin’? (right-click the project > Clean and Build) And what is your compiler for ‘algoquant-maven-plugin’ project? (right-click ‘algoquant-maven-plugin’ > Properties > Compile)
If nothing unusual is found, can you please create and build a simple hello world project in your NetBeans to test whether your JDK is properly setup with NetBeans?