如何配置sonatype nexus以允许sbt插件? [英] How to configure sonatype nexus to allow sbt plugins?

查看:479
本文介绍了如何配置sonatype nexus以允许sbt插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发布插件时,我们得到了

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

我们使用

sbtPlugin := true
publishMavenStyle := true

推荐答案

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

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

http://nexus.mycompany.com/#admin/repository/仓库:Maven版本 http://nexus.mycompany.com/#admin/repository/repositories:maven -快照

这篇关于如何配置sonatype nexus以允许sbt插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆