【问题标题】:How to configure sonatype nexus to allow sbt plugins?如何配置 sonatype nexus 以允许 sbt 插件?
【发布时间】:2017-06-18 21:04:35
【问题描述】:

在发布我们的插件时,我们得到了这个

[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

【问题讨论】:

    标签: sbt nexus sbt-plugin


    【解决方案1】:

    已通过在 nexus 管理员中将存储库 Layout Policy 设置为 permissive 来解决此问题。

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

    【讨论】:

    • 我花了六个小时试图找到这个问题。感谢您记录它!
    猜你喜欢
    • 1970-01-01
    • 2016-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-10
    • 2018-02-11
    • 2013-08-26
    • 2014-05-20
    相关资源
    最近更新 更多