我正在尝试在Bamboo中构建Quarkus应用,但由于出现许多配置错误而失败:
[WARNING] Error injecting: io.quarkus.maven.BuildMojo
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting: private org.eclipse.aether.spi.log.Logger
org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger
while locating org.apache.maven.repository.internal.DefaultVersionRangeResolver
while locating java.lang.Object annotated with *
at org.eclipse.sisu.wire.LocatorWiring
while locating org.eclipse.aether.impl.VersionRangeResolver
for parameter 1 at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.<init>(Unknown Source)
while locating org.eclipse.aether.internal.impl.DefaultRepositorySystem
while locating java.lang.Object annotated with *
while locating io.quarkus.maven.BuildMojo
Caused by: java.lang.IllegalArgumentException: Can not set
org.eclipse.aether.spi.log.Logger field
org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger to
org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory
使用以clean package
为目标的Maven 3.2.5。该项目在本地构建良好。
可能是什么原因造成的?
答案 0 :(得分:2)
这是由于Maven版本太旧造成的。根据{{3}},需要Maven 3.5.3或更高版本。