Maven console error on install command.

Discussion in 'Spigot Plugin Development' started by HakanGaming, May 2, 2017.

  1. Hi, I have error in maven. I'm sure I use correct JDK folder. What's problem? Please help me.

    I writing "mvn clean install" command and it gives this error.

    Error:
    Code (Text):
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building TRGLobi 1.0.0
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for com.nametagedit:nametagedit:jar:4.1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    [INFO]
    [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ TRGLobi ---
    [INFO]
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ TRGLobi ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 1 resource to .
    [INFO]
    [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ TRGLobi ---
    [INFO] Changes detected - recompiling the module!
    [INFO] Compiling 20 source files to C:\Users\Hakan\IdeaProjects\TRGLobi\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] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3.537 s
    [INFO] Finished at: 2017-05-02T20:58:58+03:00
    [INFO] Final Memory: 10M/153M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project TRGLobi: Compilation failure
    [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
    [ERROR]
    [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
     
     
  2. I don't use maven but I went to the provided help link and it said that there is a problem with the 'sources' which I'm assuming is the Bukkit/Spigot API. Maybe you are using different versions of the API?