- 论坛徽章:
- 84
|
20可用积分
本帖最后由 yjh777 于 2016-03-29 16:06 编辑
想下载pysonar2试用一下,可是发现编译出错:
git clone https://github.com/yinwang0/pysonar2- $ mvn package
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building pysonar2 2.0-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ pysonar ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] Copying 5 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ pysonar ---
- [INFO] Changes detected - recompiling the module!
- [INFO] Compiling 102 source files to /home/yjh/ws/tools.repo/pysonar2/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: 0.936 s
- [INFO] Finished at: 2016-03-24T15:15:14+08:00
- [INFO] Final Memory: 14M/95M
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project pysonar: 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
复制代码 环境:- $ lsb_release -sir
- Fedora 23
- $ rpm -q maven
- maven-3.3.3-3.fc23.noarch
- $ rpm -qa|grep ^java
- java-1.8.0-openjdk-1.8.0.65-3.b17.fc23.x86_64
- javapackages-tools-4.6.0-7.fc23.noarch
- java-1.8.0-openjdk-headless-1.8.0.65-3.b17.fc23.x86_64
- $ rpm -qa|grep jre
- jre-1.7.0_80-fcs.x86_64
- jre1.8.0_66-1.8.0_66-fcs.x86_64
复制代码 |
|