im-server服务git clone拉下来执行mvn clean package报错,这个如何解决呢,我在pom加了jdk位置,就编译成功了

wupengfei 24天前 101

[INFO] Wildfire Chat ...................................... SUCCESS [ 0.230 s] [INFO] common ............................................. FAILURE [ 0.554 s] [INFO] Moquette - broker .................................. SKIPPED [INFO] sdk ................................................ SKIPPED [INFO] Moquette - distribution ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.911 s [INFO] Finished at: 2022-06-08T11:32:51+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project common: 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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :common

            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
            &lt;configuration&gt;
                &lt;verbose&gt;true&lt;/verbose&gt;
                &lt;fork&gt;true&lt;/fork&gt;
                &lt;source&gt;${source.version}&lt;/source&gt;
                &lt;target&gt;${target.version}&lt;/target&gt;
                &lt;executable&gt;/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin/javac&lt;/executable&gt;
            &lt;/configuration&gt;
上传的附件:
最新回复 (8)
返回