gpt4 book ai didi

java - JENKINS : Can not set org. eclipse.aether.spi.log.Logger 字段 org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider.logger

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

运行我的作业时出现此错误:

Parsing POMs
12:04:09 ERROR: Failed to parse POMs
12:04:09 hudson.maven.MavenEmbedderException: com.google.inject.ProvisionException: Unable to provision, see the following errors:
12:04:09
12:04:09 1) Error injecting: private org.eclipse.aether.spi.log.Logger org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider.logger
12:04:09 while locating org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 while locating org.eclipse.aether.impl.LocalRepositoryProvider
12:04:09 for parameter 8 at org.eclipse.aether.internal.impl.DefaultRepositorySystem.<init>(DefaultRepositorySystem.java:121)
12:04:09 while locating org.eclipse.aether.internal.impl.DefaultRepositorySystem
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 while locating org.eclipse.aether.RepositorySystem
12:04:09 while locating org.apache.maven.artifact.resolver.DefaultArtifactResolver
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 while locating org.apache.maven.artifact.resolver.ArtifactResolver
12:04:09 while locating org.apache.maven.repository.legacy.LegacyRepositorySystem
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 while locating org.apache.maven.repository.RepositorySystem
12:04:09 while locating org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
12:04:09 while locating org.apache.maven.execution.MavenExecutionRequestPopulator
12:04:09 Caused by: java.lang.IllegalArgumentException: Can not set org.eclipse.aether.spi.log.Logger field org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider.logger to org.eclipse.aether.internal.impl.PlexusLoggerFactory
12:04:09 at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
12:04:09 at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
12:04:09 at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
12:04:09 at java.lang.reflect.Field.set(Field.java:764)
12:04:09 at org.eclipse.sisu.bean.BeanPropertyField.set(BeanPropertyField.java:74)
12:04:09 at org.eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:48)
12:04:09 at org.eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.java:52)
12:04:09 at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:140)

同一份工作在另一个 Jenkins 下完美运行

使用已经相同版本的 Maven 此解决方案不会有帮助:Can not set org.eclipse.aether.spi.log.Logger” with custom maven plugin

感谢您的建议..

最佳答案

我猜问题是您有许多版本的plugins/jar,其中包含类org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider.logger。如果是,请删除一个以解决冲突。

可以获得更多帮助。

关于java - JENKINS : Can not set org. eclipse.aether.spi.log.Logger 字段 org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider.logger,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50507460/

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