简体   繁体   English

无法发布Grails插件

[英]Cannot publish grails plugin

I am trying to publish a new version of the Spring Security OAuth2 Provider grails plugin (2.0-RC1), and it seems to upload the artifacts correctly (see here ), but the plugin page on grails.org is not updated. 我正在尝试发布新版本的Spring Security OAuth2 Provider grails插件(2.0-RC1),似乎可以正确上传工件(请参阅此处 ),但是grails.org上的插件页面没有更新。 Here is the output from publishing - I'm not sure what do about the error honestly: 这是发布的输出-老实说,我不确定该怎么办:

~>grailsw publish-plugin --grailsCentral --stacktrace
| Plugin packaged grails-spring-security-oauth2-provider-2.0-RC2.zip
| Plugin packaged grails-spring-security-oauth2-provider-2.0-RC2.zip
| POM generated: target/pom.xml
Publishing to Grails Central
Publishing to http://grails.org/api/v1.0/publish/spring-security-oauth2-provider/2.0-RC2
| Error Failed to publish plugin: Could not read JSON: Can not deserialize instance of java.lang.String out of START_OBJECT token
 at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@74f0437f; line: 1, column: 1]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
 at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@74f0437f; line: 1, column: 1]

I'm using the release plugin version 3.0.1 and grails 2.3.8. 我正在使用发布插件版本3.0.1和grails 2.3.8。 I'm also on Windows 7 x64 with Java 7 x64. 我也在Windows 7 x64和Java 7 x64上。

Found the solution after finally taking the time to dig into the publish plugin code. 在花了一些时间深入研究发布插件代码之后,找到了解决方案。 The problem was actually that I had a newer version of the rest-client-builder overriding the version bundled with the release plugin. 问题实际上是我有一个较新版本的rest-client-builder,它覆盖了与发行插件捆绑在一起的版本。 I was using version 2.0.1 instead of 1.0.3. 我使用的是2.0.1版本而不是1.0.3版本。

Changing the rest-client-builder plugin version to 1.0.3 fixed the issue (using release plugin 3.0.1). 将rest-client-builder插件版本更改为1.0.3可以解决此问题(使用发行插件3.0.1)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM