最明显的变化是 Jakarta EE 中的 javax.* 包已移至 jakarta。
。此更改需要更改任何源代码和依赖项及其依赖于 javax. 包的传递依赖项。
运行迁移到版本 3.0.4.Final 后,出现以下异常:org.apache.maven.lifecycle.LifecycleExecutionException:无法在项目上执行目标io.quarkus.platform:quarkus-maven-plugin:3.0.4.Final:build(默认):目标io.quarkus.platform的执行默认值:夸尔 kus-maven-plugin:3.0.4.Final:build failed: 执行 io.quarkus.platform:quarkus-maven-plugin:3.0.4.Final:build: javax/enterprise/inject/spi/ 时缺少必需的类部署异常
我尝试删除 .m2/repository 并尝试再次安装所有内容,但这没有帮助。我还尝试排除 javax.* 作为传递依赖,但这也没有帮助。
这是一些堆栈跟踪:
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.9.4:build (default) on project <redacted>: Execution default of goal io.quarkus.platform:quarkus-maven-plugin:3.9.4:build failed: A required class
was missing while executing io.quarkus.platform:quarkus-maven-plugin:3.9.4:build: javax/enterprise/inject/spi/DeploymentException
[ERROR] -----------------------------------------------------
[ERROR] realm = extension>io.quarkus.platform:quarkus-maven-plugin:3.9.4
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
quarkus-amazon-s3
依赖项:
<dependency>
<groupId>io.quarkiverse.amazonservices</groupId>
<artifactId>quarkus-amazon-s3</artifactId>
<version>1.4.0</version>
</dependency>
我更新了它的版本,解决了我的问题:
<dependency>
<groupId>io.quarkiverse.amazonservices</groupId>
<artifactId>quarkus-amazon-s3</artifactId>
<version>2.14.0</version>
</dependency>