0

我的 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/

然后这两个文件都会更新

  • maven-metadata.xml.md5

  • maven-metadata.xml.sha

但没有别的

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

4

2 回答 2

0

您不是在部署 SNAPSHOT,而是在部署版本,这意味着您的工件将被上传到暂存存储库中。这由上传 url 指示:

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

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

于 2013-01-23T10:57:44.423 回答
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>

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

于 2013-01-31T17:24:48.037 回答