- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在我们的服务器上配置 Nexus。我遵循了所有必需的步骤,但似乎遗漏了一些东西。
Java 版本“1.8.0_121”
联系版本“3.2.1”
我的完整日志跟踪如下:
jvm 1 | Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Guice provision errors:
jvm 1 |
jvm 1 | 1) Error injecting: org.sonatype.nexus.DefaultNexus
jvm 1 | at ClassRealm[plexus.core, parent: null]
jvm 1 | at ClassRealm[plexus.core, parent: null]
jvm 1 | while locating org.sonatype.nexus.Nexus
jvm 1 |
jvm 1 | 1 error
jvm 1 | role: org.sonatype.nexus.Nexus
jvm 1 | roleHint:
jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:238)
jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:226)
jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:220)
jvm 1 | at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:43)
jvm 1 | ... 41 more
jvm 1 | Caused by: com.google.inject.ProvisionException: Guice provision errors:
jvm 1 |
jvm 1 | 1) Error injecting: org.sonatype.nexus.DefaultNexus
jvm 1 | at ClassRealm[plexus.core, parent: null]
jvm 1 | at ClassRealm[plexus.core, parent: null]
jvm 1 | while locating org.sonatype.nexus.Nexus
jvm 1 |
jvm 1 | 1 error
jvm 1 | at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:952)
jvm 1 | at org.sonatype.guice.bean.locators.QualifiedBean.getValue(QualifiedBean.java:85)
jvm 1 | at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:55)
jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:234)
jvm 1 | ... 44 more
jvm 1 | Caused by: com.google.inject.ProvisionException: Guice provision errors:
jvm 1 |
jvm 1 | 1) Error starting: class org.sonatype.nexus.DefaultNexus
jvm 1 | while locating org.sonatype.nexus.DefaultNexus
jvm 1 |
jvm 1 | 1 error
jvm 1 | at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:952)
jvm 1 | at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:978)
jvm 1 | at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
jvm 1 | at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
jvm 1 | at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
jvm 1 | at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996)
jvm 1 | at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
jvm 1 | at com.google.inject.Scopes$1$1.get(Scopes.java:63)
jvm 1 | at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
jvm 1 | at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:943)
jvm 1 | at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996)
jvm 1 | at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:939)
jvm 1 | ... 47 more
jvm 1 | Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException: Could not start Nexus!
jvm 1 | at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:651)
jvm 1 | at org.codehaus.plexus.PlexusLifecycleManager.start(PlexusLifecycleManager.java:229)
jvm 1 | at org.codehaus.plexus.PlexusLifecycleManager.manage(PlexusLifecycleManager.java:145)
jvm 1 | at org.sonatype.guice.plexus.binders.PlexusBeanBinder.afterInjection(PlexusBeanBinder.java:79)
jvm 1 | at com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:97)
jvm 1 | at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:95)
jvm 1 | at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:253)
jvm 1 | at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:943)
jvm 1 | at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996)
jvm 1 | at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:939)
jvm 1 | ... 58 more
jvm 1 | Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor : Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor
jvm 1 | ---- Debugging information ----
jvm 1 | message : Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor
jvm 1 | cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
jvm 1 | cause-message : Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor
jvm 1 | class : org.sonatype.nexus.configuration.model.CRepository
jvm 1 | required-type : org.codehaus.plexus.util.xml.Xpp3Dom
jvm 1 | path : /org.sonatype.nexus.configuration.model.CRepository/externalConfiguration
jvm 1 | line number : 29
jvm 1 | -------------------------------
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
jvm 1 | at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:246)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:218)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
jvm 1 | at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
jvm 1 | at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
jvm 1 | at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
jvm 1 | at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
jvm 1 | at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
jvm 1 | at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
jvm 1 | at org.sonatype.nexus.configuration.model.AbstractRevertableConfiguration.copyObject(AbstractRevertableConfiguration.java:85)
jvm 1 | at org.sonatype.nexus.configuration.model.AbstractRevertableConfiguration.getConfiguration(AbstractRevertableConfiguration.java:28)
jvm 1 | at org.sonatype.nexus.configuration.model.CRepositoryCoreConfiguration.getConfiguration(CRepositoryCoreConfiguration.java:39)
jvm 1 | at org.sonatype.nexus.proxy.repository.ConfigurableRepository.getCurrentConfiguration(ConfigurableRepository.java:25)
jvm 1 | at org.sonatype.nexus.proxy.repository.ConfigurableRepository.getCurrentConfiguration(ConfigurableRepository.java:17)
jvm 1 | at org.sonatype.nexus.configuration.AbstractConfigurable.configure(AbstractConfigurable.java:153)
jvm 1 | at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:46)
jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.instantiateRepository(DefaultNexusConfiguration.java:506)
jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositories(DefaultNexusConfiguration.java:472)
jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createInternals(DefaultNexusConfiguration.java:454)
jvm 1 | at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:685)
jvm 1 | at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:647)
jvm 1 | ... 67 more
jvm 1 | Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor
jvm 1 | at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
jvm 1 | ... 94 more
jvm 1 | 2017-07-06 13:29:19 INFO [er_start_runner] - org.mortbay.log - Started SelectChannelConnector@0.0.0.0:8081
最佳答案
该堆栈跟踪不是来自 Nexus 3.x,堆栈中的所有类都不存在于该版本中。
它来自 Nexus 1.x 或 2.x,看起来你开始使用的是一个很旧的版本,因为你似乎在点击这个:
关于java - 无法启动 nexus : Cannot construct org. codehaus.plexus.util.xml.Xpp3Dom,因为它没有无参数构造函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44951202/
eclipse 中这个被上帝遗忘的错误不会消失。我已经尝试了这里和其他地方提到的所有东西来摆脱它,但它不会消失,现在我不能在 eclipse 中使用 Web 服务实用程序,因为它提示这个“问题”,这显
本文整理了Java中org.codehaus.plexus.archiver.war.WarArchiver类的一些代码示例,展示了WarArchiver类的具体用法。这些代码示例主要来源于Githu
本文整理了Java中org.codehaus.plexus.archiver.zip.ZipArchiver类的一些代码示例,展示了ZipArchiver类的具体用法。这些代码示例主要来源于Githu
关闭。这个问题需要更多 focused .它目前不接受答案。 想改进这个问题?更新问题,使其仅关注一个问题 editing this post . 8年前关闭。 Improve this questi
我目前正在尝试让 PlexusContainer 给我一个初始化的 Maven - 在 maven 或 eclipse 执行上下文之外的实例。 为此,我有以下代码(简化): PlexusContain
我知道我是 Java 新手,但我需要在启动板上构建几个 Ubuntu 软件包。我修复了很多依赖问题,但现在遇到以下错误: [INFO] --------------------------------
我需要用我自己的实现替换一些 Maven 默认功能,我正在寻找一种干净的方法来做到这一点。 我已延长 org.apache.maven.repository.internal.DefaultVersi
我创建了一个 Plexus 组件来容纳我想要创建的几个 Mojo 的通用逻辑。我已经能够从 Mojo(和测试用例)传递 localRepository 和项目等信息。 我想知道是否有一种方法可以从组件
当我尝试在我的项目上运行 mvn sonar:sonar 命令时,我经常遇到以下错误: [ERROR] Failed to execute goal org.sonarsource.scanner.m
本文整理了Java中org.codehaus.plexus.archiver.war.WarArchiver.setExpectWebXml()方法的一些代码示例,展示了WarArchiver.set
本文整理了Java中org.codehaus.plexus.archiver.war.WarArchiver.setIgnoreWebxml()方法的一些代码示例,展示了WarArchiver.set
本文整理了Java中org.codehaus.plexus.archiver.war.WarArchiver.addDirectory()方法的一些代码示例,展示了WarArchiver.addDir
本文整理了Java中org.codehaus.plexus.archiver.zip.ZipArchiver.()方法的一些代码示例,展示了ZipArchiver.()的具体用法。这些代码示例主要来源
本文整理了Java中org.codehaus.plexus.archiver.zip.ZipArchiver.addFileSet()方法的一些代码示例,展示了ZipArchiver.addFileS
本文整理了Java中org.codehaus.plexus.archiver.zip.ZipArchiver.addDirectory()方法的一些代码示例,展示了ZipArchiver.addDir
本文整理了Java中org.codehaus.plexus.archiver.zip.ZipArchiver.addFile()方法的一些代码示例,展示了ZipArchiver.addFile()的具
本文整理了Java中org.codehaus.plexus.archiver.zip.ZipArchiver.createArchive()方法的一些代码示例,展示了ZipArchiver.creat
本文整理了Java中org.codehaus.plexus.archiver.zip.ZipArchiver.setDestFile()方法的一些代码示例,展示了ZipArchiver.setDest
本文整理了Java中org.codehaus.plexus.archiver.zip.ZipUnArchiver.enableLogging()方法的一些代码示例,展示了ZipUnArchiver.e
本文整理了Java中org.codehaus.plexus.archiver.zip.ZipUnArchiver.setDestDirectory()方法的一些代码示例,展示了ZipUnArchive
我是一名优秀的程序员,十分优秀!