Artifactory例外:应该有10个默认存储库布局

我正在docker-compose中运行artifactory和mysql。 当我运行命令“ docker-compose up ”时,出现以下错误

 [art-init] [ERROR] (oawsArtifactoryContextConfigListener:94) - Application could not be initialized: There should be 10 default repository layouts. java.lang.reflect.InvocationTargetException: null 

这里是configuration文件https://gist.github.com/anonymous/6086e870c8763e36b59b

我错过了什么?

发生这种情况是因为您使用Artifactory OSS的configuration运行Artifactory Pro。

某些存储库types必须在Artifactoryconfiguration中具有默认布局。 Artifactory OSS的configuration只包含OSS版本支持的存储库types的默认值。

有许多方法可以解决这个问题,从默认的configuration文件从香草安装到添加缺less的布局手动添加到configuration文件(见下面的10个默认值)。

 <repoLayouts> <repoLayout> <name>maven-2-default</name> <artifactPathPattern>[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>true</distinctiveDescriptorPathPattern> <descriptorPathPattern>[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).pom</descriptorPathPattern> <folderIntegrationRevisionRegExp>SNAPSHOT</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>ivy-default</name> <artifactPathPattern>[org]/[module]/[baseRev](-[folderItegRev])/[type]s/[module](-[classifier])-[baseRev](-[fileItegRev]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>true</distinctiveDescriptorPathPattern> <descriptorPathPattern>[org]/[module]/[baseRev](-[folderItegRev])/[type]s/ivy-[baseRev](-[fileItegRev]).xml</descriptorPathPattern> <folderIntegrationRevisionRegExp>\d{14}</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>\d{14}</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>gradle-default</name> <artifactPathPattern>[org]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>true</distinctiveDescriptorPathPattern> <descriptorPathPattern>[org]/[module]/ivy-[baseRev](-[fileItegRev]).xml</descriptorPathPattern> <folderIntegrationRevisionRegExp>\d{14}</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>\d{14}</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>maven-1-default</name> <artifactPathPattern>[org]/[type]s/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>true</distinctiveDescriptorPathPattern> <descriptorPathPattern>[org]/[type]s/[module]-[baseRev](-[fileItegRev]).pom</descriptorPathPattern> <folderIntegrationRevisionRegExp>.+</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>.+</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>nuget-default</name> <artifactPathPattern>[orgPath]/[module]/[module].[baseRev](-[fileItegRev]).nupkg</artifactPathPattern> <distinctiveDescriptorPathPattern>false</distinctiveDescriptorPathPattern> <folderIntegrationRevisionRegExp>.*</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>.*</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>npm-default</name> <artifactPathPattern>[orgPath]/[module]/[module]-[baseRev](-[fileItegRev]).tgz</artifactPathPattern> <distinctiveDescriptorPathPattern>false</distinctiveDescriptorPathPattern> <folderIntegrationRevisionRegExp>.*</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>.*</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>bower-default</name> <artifactPathPattern>[orgPath]/[module]/[module]-[baseRev](-[fileItegRev]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>false</distinctiveDescriptorPathPattern> <folderIntegrationRevisionRegExp>.*</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>.*</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>vcs-default</name> <artifactPathPattern>[orgPath]/[module]/[refs&lt;tags|branches&gt;]/[baseRev]/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>false</distinctiveDescriptorPathPattern> <folderIntegrationRevisionRegExp>.*</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>[a-zA-Z0-9]{40}</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>sbt-default</name> <artifactPathPattern>[org]/[module]/(scala_[scalaVersion&lt;.+&gt;])/(sbt_[sbtVersion&lt;.+&gt;])/[baseRev]/[type]s/[module](-[classifier]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>true</distinctiveDescriptorPathPattern> <descriptorPathPattern>[org]/[module]/(scala_[scalaVersion&lt;.+&gt;])/(sbt_[sbtVersion&lt;.+&gt;])/[baseRev]/[type]s/ivy.xml</descriptorPathPattern> <folderIntegrationRevisionRegExp>\d{14}</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>\d{14}</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>simple-default</name> <artifactPathPattern>[orgPath]/[module]/[module]-[baseRev](-[fileItegRev]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>false</distinctiveDescriptorPathPattern> <folderIntegrationRevisionRegExp>.*</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>.*</fileIntegrationRevisionRegExp> </repoLayout> </repoLayouts>