为什么我的使用Sonatype的java.net快照没有出现

时间:2013-01-23 10:01:15

标签: maven sonatype

我的JAUDIOTAGGER项目托管在java.net上,可以部署新版本的快照,如下所示

mvn deploy -Dgpg.passphrase = password

这一切似乎都有效,这是我得到的输出:

Uploading: https://maven.java.net/service/local/staging/deploy/maven2//net/jthink/jaudiotagger/2.0.4/jaudiotagger-2.0.4.jar
892K uploaded (jaudiotagger-2.0.4.jar)
[INFO] Retrieving previous metadata from jvnet-nexus-staging
[INFO] Uploading repository metadata for: 'artifact net.jthink:jaudiotagger'
[INFO] Uploading project information for jaudiotagger 2.0.4
Uploading: https://maven.java.net/service/local/staging/deploy/maven2//net/jthink/jaudiotagger/2.0.4/jaudiotagger-2.0.4-sources.jar
875K uploaded (jaudiotagger-2.0.4-sources.jar)
Uploading: https://maven.java.net/service/local/staging/deploy/maven2//net/jthink/jaudiotagger/2.0.4/jaudiotagger-2.0.4-javadoc.jar
2317K uploaded (jaudiotagger-2.0.4-javadoc.jar)
Uploading: https://maven.java.net/service/local/staging/deploy/maven2//net/jthink/jaudiotagger/2.0.4/jaudiotagger-2.0.4.jar.asc
499b uploaded (jaudiotagger-2.0.4.jar.asc)
Uploading: https://maven.java.net/service/local/staging/deploy/maven2//net/jthink/jaudiotagger/2.0.4/jaudiotagger-2.0.4.pom.asc
499b uploaded (jaudiotagger-2.0.4.pom.asc)
Uploading: https://maven.java.net/service/local/staging/deploy/maven2//net/jthink/jaudiotagger/2.0.4/jaudiotagger-2.0.4-sources.jar.asc
499b uploaded (jaudiotagger-2.0.4-sources.jar.asc)
Uploading: https://maven.java.net/service/local/staging/deploy/maven2//net/jthink/jaudiotagger/2.0.4/jaudiotagger-2.0.4-javadoc.jar.asc
499b uploaded (jaudiotagger-2.0.4-javadoc.jar.asc)

然而,当我去:

https://maven.java.net/content/repositories/snapshots/net/jthink/jaudiotagger/2.0.4-SNAPSHOT/

没有变化

如果我去

https://maven.java.net/content/groups/public/net/jthink/jaudiotagger/2.0.4-SNAPSHOT/

然后这两个文件都被更新

  • 行家-metadata.xml.md5

  • 行家-metadata.xml.sha

但没有别的

我不清楚它应该在哪一个,但不应该至少在其中一个

2 个答案:

答案 0 :(得分:0)

您没有部署正在部署版本的SNAPSHOT,这意味着您的工件将上载到临时存储库中。这由上传网址表示:

https://maven.java.net/service/local/staging/deploy/maven2/ne ...

此外,我假设您必须确认暂存存储库中的工件,然后工件将同步到发布存储库中。

答案 1 :(得分:0)

搞定了。

我登录https://maven.java.net/index.html#welcome并删除了各种暂存存储库。 然后我编辑了我的pom,以便版本说

 <version>2.0.4-SNAPSHOT</version>

而不是

 <version>2.0.4</version>

并重申

mvn deploy -Dgpg.passphrase=xxxx

现在可以在

找到

https://maven.java.net/content/repositories/snapshots/net/jthink/jaudiotagger/2.0.4-SNAPSHOT/

所以现在我要尝试做一个正确的发布,我假设我将版本设置回

<version>2.0.4</version>

但我在文档中找不到任何告诉我应该这样做的内容。