发布我们的插件时,我们得到了这个
[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
我们使用
设置插件sbtPlugin := true
publishMavenStyle := true
答案 0 :(得分:8)
通过在nexus admin中将存储库Layout Policy
设置为permissive
来解决此问题。
http://nexus.mycompany.com/#admin/repository/repositories:maven-releases http://nexus.mycompany.com/#admin/repository/repositories:maven-snapshots