主题:创建 Quarkus 项目时出现问题

问题描述 投票:0回答:1

我正在使用 Quarkus 框架,在尝试使用以下命令创建新项目时遇到问题:enter image description here:

mvn io.quarkus:quarkus-maven-plugin:3.9.2:create \ 
-DprojectGroupId=com.example \ 
-DprojectArtifactId=hello-quarkus \ 
-DprojectVersion=1.0-SNAPSHOT \ 
-DclassName="com.example.HelloResource" \ 
-Dpath="/hello"

错误:

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time:  22.443 s [INFO] Finished at: 2024-04-05T16:57:22+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.9.2:create (default-cli) on project standalone-pom: Execution default-cli of goal io.quarkus:quarkus-maven-plugin:3.9.2:create failed: Plugin io.quarkus:quarkus-maven-plugin:3.9.2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: io.smallrye.common:smallrye-common-function:jar:2.3.0 (absent), io.quarkus:quarkus-project-core-extension-codestarts:jar:3.9.2 (absent), io.quarkus.qute:qute-core:jar:3.9.2 (absent): Could not transfer artifact io.smallrye.common:smallrye-common-function:jar:2.3.0 from/to central (https://repo.maven.apache.org/maven2): C:\Users\USER\.m2\repository\io\smallrye\common\smallrye-common-function\2.3.0\smallrye-common-function-2.3.0.jar.8375725404913469981.tmp: Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus -> [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

我正在尝试创建一个 quarkus 项目

java spring maven backend quarkus
1个回答
0
投票

Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus

2 选择验证者:

  • que le jar ne soit pas déjà utilisé sur ta machine
  • 变量的格式,请参见窗口
© www.soinside.com 2019 - 2024. All rights reserved.