我正在尝试使用"mvn gradle -DSkipTests“命令构建项目-P。但是,在完成大多数模块之后,plugin-maven模块的编译就会陷入困境。下面是控制台输出,在这里编译被卡住(以及我的笔记本电脑的风扇速度噪音增加):
[INFO] ------------< com.sap.research.security.vulas:plugin-maven >------------
[INFO] Building Plugin for Maven 3.1.7-SNAPSHOT [14/19]
[INFO] ----------------------------[ maven-plugin ]----------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ plugin-maven ---
[INFO] Deleting /Users/nasifimtiaz/git/vulnerability-assessment-tool/plugin-maven/target
[INFO]
[INFO] --- versions-maven-plugin:2.7:display-dependency-updates (check-version) @ plugin-maven ---
[INFO] The following dependencies in Dependencies have newer versions:
[INFO] junit:junit ........................................ 4.12 -> 4.13-rc-2
[INFO] org.apache.maven:maven-compat ......................... 3.6.1 -> 3.6.3
[INFO] org.apache.maven:maven-core ........................... 3.6.1 -> 3.6.3
[INFO] org.apache.maven:maven-plugin-api ..................... 3.6.1 -> 3.6.3
[INFO] org.codehaus.plexus:plexus-utils ...................... 3.2.1 -> 3.3.0
[INFO]
[INFO] The following dependencies in pluginManagement of plugins have newer versions:
[INFO] org.apache.maven.wagon:wagon-file ..................... 3.3.3 -> 3.3.4
[INFO]
[INFO] The following dependencies in Plugin Dependencies have newer versions:
[INFO] org.apache.maven.wagon:wagon-file ..................... 3.3.3 -> 3.3.4
[INFO]
[INFO]
[INFO] --- versions-maven-plugin:2.7:display-property-updates (check-version) @ plugin-maven ---
[INFO]
[INFO] This project does not have any properties associated with versions.
[INFO]
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ plugin-maven ---
[INFO] Executing: /bin/sh -c cd '/Users/nasifimtiaz/git/vulnerability-assessment-tool/plugin-maven' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /Users/nasifimtiaz/git/vulnerability-assessment-tool/plugin-maven
[INFO] Storing buildNumber: 5d4ee4bedd228f67bd800dc41e7709507646e9d9 at timestamp: 1575849991620
[INFO] Storing buildScmBranch: master
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.4:prepare-agent (default-prepare-agent) @ plugin-maven ---
[INFO] argLine set to -javaagent:/Users/nasifimtiaz/.m2/repository/org/jacoco/org.jacoco.agent/0.8.4/org.jacoco.agent-0.8.4-runtime.jar=destfile=/Users/nasifimtiaz/git/vulnerability-assessment-tool/plugin-maven/target/jacoco.exec,excludes=**/antlr/Java*.*
[INFO]
[INFO] --- maven-plugin-plugin:3.5.2:helpmojo (help-goal) @ plugin-maven ---
[WARNING]
Goal prefix is specified as: 'vulas'. Maven currently expects it to be ''.
[INFO] Using 'UTF-8' encoding to read mojo source files.
[INFO] java-javadoc mojo extractor found 0 mojo descriptor.
[INFO] java-annotations mojo extractor found 0 mojo descriptor.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ plugin-maven ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ plugin-maven ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 12 source files to /Users/nasifimtiaz/git/vulnerability-assessment-tool/plugin-maven/target/classes我的机器是MacOSX10.14.6。我的机器上有8个CPU核和16 GB内存。在eclipse中,我将堆空间设置为8GB (我试图从终端安装mvn,但结果相同)。
这背后的可能原因是什么,以及我如何排除故障?
发布于 2019-12-09 19:54:29
我使用的是JDK11,而当前版本的Vuilas (3.1.6)只适用于JDK8。与JDK8的建设是成功的。
https://stackoverflow.com/questions/59241172
复制相似问题