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

wupengfei 2022-6-8 594

[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 -rf :common

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