gpt4 book ai didi

java - 在 Intellij 中创建 Maven 项目时出错(Linux - VM)

转载 作者:行者123 更新时间:2023-12-02 10:10:12 24 4
gpt4 key购买 nike

我试图在 Linux 16 中的 Intellij 中创建 Maven 项目。它一直向我抛出错误。尝试了网上提供的解决方案,但没有任何效果。

这是我收到的错误:

/usr/lib/jvm/java-7-oracle-cloudera/bin/java 
-Dmaven.multiModuleProjectDirectory=/tmp/archetypetmp
-Dmaven.multiModuleProjectDirectory -Dmaven.home=/usr/share/maven
-Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dfile.encoding=UTF-8
-classpath /usr/share/maven/boot/plexus-classworlds-2.x.jar
org.codehaus.classworlds.Launcher -Didea.version=2018.3.5
-DinteractiveMode=false -DgroupId=com.test.java "-DartifactId=Java Proj"
-Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-
plugin:RELEASE:generate
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins
/maven-archetype-plugin/maven-metadata.xml

[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-
archetype-plugin/maven-metadata.xml from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version
[INFO]

------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.460 s
[INFO] Finished at: 2019-03-08T01:41:55-05:00
[INFO] Final Memory: 7M/146M
[INFO]
------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or
one of its dependencies could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-archetype-
plugin:jar:RELEASE: Failed to resolve version for
org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not
find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-
metadata.xml in local (/home/vishnu/.m2/repository) -> [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
/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)

最佳答案

好的,我解决了。我没有更改 JRE,所以不要忘记 JRE。发布答案,以便将来对某人有用。附上图片供引用。

也可将其用于 VM 选项。

 -Dmaven.multiModuleProjectDirectory

Snapshot of the solution

关于java - 在 Intellij 中创建 Maven 项目时出错(Linux - VM),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55058392/

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