JAR文件已损坏 [英] JAR file is corrupted

查看:177
本文介绍了JAR文件已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图通过JFrog界面将我的版本包含在JCenter中时,为什么会出现此错误:

Why do i get this error when i'm trying to include my version inside JCenter from the JFrog interface:

JAR file is corrupted.A binary file (jar, aar, wat, apk) should be part of the package.Could not validate jar file.Package should include sources as part of the package.

这是我的包裹: https://bintray.com/dakarinternational/dakar/dakar#files/com/dakar/dakar

已经生成了源代码和javadoc并将其推送到JFrog上. 本地化,一切工作正常(java -jar ...)

Sources and javadoc is already genereated and pushed on JFrog. Localy, everything is working fine (java -jar ...)

推荐答案

我需要将主JAR中的源代码包括在内,而不是...

I needed to include the sources inside the main JAR not aside...

我是通过更改pom.xml中的构建配置来做到这一点的,如此处所述: 在主jar中包含源

I did that by changing my build config in my pom.xml like explained in here: include source inside the main jar

这篇关于JAR文件已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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