使用maven将jar部署到bintray快照存储库

umuewwlo  于 2021-07-06  发布在  Java
关注(0)|答案(0)|浏览(202)

我创造了 maven-snapshots 我想把快照工件推到那里。
一包 jkit 已创建。
我在pom.xml中创建了下一个设置:

<properties>
    <bintray.package>jkit</bintray.package>
</properties>

 <distributionManagement>
     <snapshotRepository>
         <id>bintray-kondaurovdev-maven-snapshots</id>
         <name>kondaurovdev-maven-snapshots</name>
         <url>https://api.bintray.com/maven/kondaurovdev/maven-snapshots/${bintray.package}/;publish=0</url>
     </snapshotRepository>
 </distributionManagement>

当我跑步的时候 maven -pl core deploy 我收到错误的请求错误
[信息]——maven部署-plugin:2.7:deploy(默认部署)@core---从bintray kondaurovdevdev maven快照下载:https://api.bintray.com/maven/kondaurovdev/maven-snapshots/jkit-core/;publish=0/jkit/core/1.1-snapshot/maven-metadata.xml上传到bintray kondaurovdevdev maven snapshots:https://api.bintray.com/maven/kondaurovdev/maven-snapshots/jkit-core/;publish=0/jkit/core/1.1-snapshot/core-1.1-20201124.164723-1.jar[ij]-1-artifact\u deployed-[ij]-path=/home/alex/projects/jkit/core/target/core-1.1-snapshot.jar-[ij]-artifactcoord=jkit:core:jar:1.1-20201124.164723-1-[ij]-错误=无法传输工件jkit:core:jar:1.1-20201124.164723-1 from/to bintray kondaurovdev maven快照(https://api.bintray.com/maven/kondaurovdev/maven-snapshots/jkit-core/;发布=0):传输失败https://api.bintray.com/maven/kondaurovdev/maven-snapshots/jkit-core/;publish=0/jkit/core/1.1-snapshot/core-1.1-20201124.164723-1.jar 400错误请求上传到bintray kondaurovdevdev maven snapshots:https://api.bintray.com/maven/kondaurovdev/maven-snapshots/jkit-core/;publish=0/jkit/core/1.1-snapshot/core-1.1-20201124.164723-1.pom[ij]-1-artifact\u deployed-[ij]-path=/home/alex/projects/jkit/core/pom.xml-[ij]-artifactcoord=jkit:core:pom:1.1-20201124.164723-1-[ij]-错误=无法传输工件jkit:core:pom:1.1-20201124.164723-1 from/to bintray kondaurovdev maven快照(https://api.bintray.com/maven/kondaurovdev/maven-snapshots/jkit-core/;发布=0):传输失败https://api.bintray.com/maven/kondaurovdev/maven-snapshots/jkit-core/;publish=0/jkit/core/1.1-snapshot/core-1.1-20201124.164723-1.pom 400错误请求
但我可以部署非快照工件。我该怎么办?不使用快照工件?:)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题