I get it now because we don't use a -SNAPSHOT suffix so the logic changes..
Let me workaround for the SNAPSHOT now and see if the formal release cause a 403. Best, tison. tison <[email protected]> 于2023年6月25日周日 18:47写道: > Or the question can be - I have a Maven project having multiple > classifier variants to deploy. I can build them separately on different > machine. How can I finish the last mile to deploy it to Apache Nexus > server. (for snapshots now). > > Best, > tison. > > > tison <[email protected]> 于2023年6月25日周日 16:41写道: > >> Aha..Unfortunately not. I use sonatype plugin and follow Netty's >> practice. It seems for snapshot, previously (the same version of plugin) it >> can auto set nexusUrl and serverId. But now it cannot: >> >> $ cat .index >> >> org/apache/opendal/opendal-java/0.2.0-SNAPSHOT/opendal-java-0.2.0-SNAPSHOT.jar=org.apache.opendal:opendal-java:0.2.0-SNAPSHOT:n/a:jar:jar:opendal-java-0.2.0-SNAPSHOT.pom:n/a:apache.snapshots.https: >> https://repository.apache.org/content/repositories/snapshots >> ... >> >> Best, >> tison. >> >> >> Tamás Cservenák <[email protected]> 于2023年6月25日周日 16:34写道: >> >>> Hm, >>> >>> I remember your use case as we discussed it here: >>> https://lists.apache.org/thread/vqgbdp61y5jg5fgdhmgx4zycl4ps39s8 >>> >>> I had a feeling you sorted it out, and did it without the aforementioned >>> plugin... >>> >>> >>> T >>> >>> On Sun, Jun 25, 2023 at 10:20 AM tison <[email protected]> wrote: >>> >>> > And I remember that when I add the nexusUrl just as suggested above, >>> the >>> > action run failed with 403: >>> > >>> > Failed to execute goal >>> > org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy >>> (default-cli) >>> > on project opendal-java: Execution default-cli of goal >>> > org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy failed: >>> 403 - >>> > Forbidden >>> > >>> > tison <[email protected]>于2023年6月25日 周日16:16写道: >>> > >>> > > Thanks for your information! >>> > > >>> > > Then I can I achieve the similar target? I need to build staging >>> > artifacts >>> > > in different platforms and then merge it and deploy. >>> > > >>> > > Best, >>> > > tison. >>> > > >>> > > >>> > > Tamás Cservenák <[email protected]> 于2023年6月25日周日 16:13写道: >>> > > >>> > >> For RAO it is https://repository.apache.org/ >>> > >> >>> > >> But using this plugin is really not recommended, even Sonatype >>> abandoned >>> > >> it. >>> > >> >>> > >> Hth >>> > >> T >>> > >> >>> > >> On Sun, Jun 25, 2023, 10:11 tison <[email protected]> wrote: >>> > >> >>> > >> > After restore the action, it fails now. May I ask what is the >>> proper >>> > >> > nexusUrl for apache snapshot? >>> > >> > >>> > >> > Best, >>> > >> > tison. >>> > >> > >>> > >> > >>> > >> > tison <[email protected]> 于2023年6月25日周日 15:51写道: >>> > >> > >>> > >> > > Suspected related code[1]. >>> > >> > > >>> > >> > > and cc [email protected] >>> > >> > > >>> > >> > > Best, >>> > >> > > tison. >>> > >> > > >>> > >> > > [1] >>> > >> > > >>> > >> > >>> > >> >>> > >>> https://github.com/sonatype/nexus-maven-plugins/blame/d36fd861662d566071390ff75dae79846f46901c/staging/maven-plugin/src/main/java/org/sonatype/nexus/maven/staging/remote/Parameters.java#L95 >>> > >> > > >>> > >> > > >>> > >> > > tison <[email protected]> 于2023年6月25日周日 15:50写道: >>> > >> > > >>> > >> > >> Hi, >>> > >> > >> >>> > >> > >> I don't know if it's a Maven issue or INFRA issue or plugin >>> issue >>> > >> (as I >>> > >> > >> saw the related part is written by the current Maven PMC >>> chair, I >>> > >> > posted it >>> > >> > >> here). >>> > >> > >> >>> > >> > >> The question is, when I stage a package for multiple >>> platforms, I >>> > >> use a >>> > >> > >> local staging flavor that specifies -DskipRemoteStaging=true. >>> It >>> > >> works >>> > >> > >> well in my personal repo[1], but failed when I try it on the >>> > >> > >> apache/incubator-opendal repo[2]. >>> > >> > >> >>> > >> > >> The log complains strangely that "Mandatory plugin parameter >>> > >> 'nexusUrl' >>> > >> > >> is missing" while I do skip the remote staging phase. >>> > >> > >> >>> > >> > >> I'll appreciate if you can take a look. >>> > >> > >> >>> > >> > >> Best, >>> > >> > >> tison. >>> > >> > >> >>> > >> > >> [1] >>> > >> > >> >>> > >> >>> https://github.com/tisonkun/ci-opendal/actions/runs/5107624733/workflow >>> > >> > >> [2] >>> > >> > >> >>> > >> > >>> > >> >>> > >>> https://github.com/apache/incubator-opendal/actions/runs/5368618052/jobs/9739424356?pr=2525 >>> > >> > >> >>> > >> > >> >>> > >> > >>> > >> >>> > > -- >>> > Best, >>> > tison. >>> > >>> >>
