在本机使用nexus搭建私有库打开页面时显示该网页无法访问
到安装目录 ../nexus-2.13.0-01-bundle-2\nexus-2.13.0-01\bin\jsw\windows-x86-64中执行start-nexus.bat,显示service was launched, but failed to start.
到\nexus-2.13.0-01-bundle-2\nexus-2.13.0-01\logs打开日志文件wrapper.log,显示
org.sonatype.configuration.upgrade.ConfigurationIsCorruptedException: Could not read or parse security configuration file on path F:\maven\nexus\nexus-2.13.0-01-bundle\sonatype-work\nexus\conf\nexus.xml! It may be corrupted.
打开nexus.xml,发现文件已损坏,内容为空
解决:重新获得nexus.xml,替换损坏的nexus.xml文件。替换前注意将原有的文件进行备份。
测试:替换新的nexus.xml后,原先上传的第三方jar包都还存在,有惊无险。nexus.xml文件内容被替换成空的原因还是未解之谜。