gpt4 book ai didi

java - mvn clean 警告和 mvn install 错误

转载 作者:太空宇宙 更新时间:2023-11-04 13:39:11 25 4
gpt4 key购买 nike

大家好,我有这两个问题

mvn clean

我收到此警告消息

Some problems were encountered while building the effective model for com.souq.marketplace:selling-center-services:war:0.0.1-SNAPSHOT [WARNING] 'dependencies.dependency.systemPath' for com.souq:servicemanager:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/servicemanager-1.1.1.1.jar will be unresolvable by dependent projects @ line 138, column 16 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-deploy-plugin @ line 453, column 12

第二个是我安装时

mvn install

Unable to locate the Javac Compiler in: [ERROR] /opt/jre1.7.0_71/../lib/tools.jar [ERROR] Please ensure you are using JDK 1.4 or above and [ERROR] not a JRE (the com.sun.tools.javac.Main class is required). [ERROR] In most cases you can change the location of your Java [ERROR] installation by setting the JAVA_HOME environment variable. [ERROR] -> [Help 1]

echo $JAVA_HOME 

/opt/jre1.7.0_71

最佳答案

您已经安装了 JRE,但需要 JDK(例如适用于 Linux 的 OpenJDK)。 JRE不包含编译器。

关于java - mvn clean 警告和 mvn install 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31382770/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com