How to configure sonatype nexus to allow sbt plugins?

♀尐吖头ヾ 提交于 2019-12-07 16:28:51

问题


When publishing our plugin we got this

[info] Done packaging.
[trace] Stack trace suppressed: run last *:publish for the full output.
[error] (*:publish) java.io.IOException: PUT operation to URL https://nexus.mycompany.com/repository/maven-snapshots/com/foo/foo-sbt-plugin_2.10_0.13/1.0.0-SNAPSHOT/foo-sbt-plugin-1.0.0-SNAPSHOT.pom failed with status code 400: Invalid path for a Maven 2 repository

We set up the plugin using

sbtPlugin := true
publishMavenStyle := true

回答1:


This was fixed by setting the repository Layout Policy to permissive in the nexus admin.

http://nexus.mycompany.com/#admin/repository/repositories:maven-releases http://nexus.mycompany.com/#admin/repository/repositories:maven-snapshots



来源:https://stackoverflow.com/questions/41991268/how-to-configure-sonatype-nexus-to-allow-sbt-plugins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!