Code Monkey home page Code Monkey logo

Comments (18)

mielvds avatar mielvds commented on June 9, 2024 2

@D063520 Seems to have worked: https://mvnrepository.com/artifact/org.rdfhdt/hdt-java-core

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024 1

It is now in maven central:

https://repo1.maven.org/maven2/org/rdfhdt/hdt-java-core/

but not available in the search yet ....

not sure why it is taking so long

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

Hi,

we are done for now with the changes we needed:

  • hdtCat
  • hdtDiff
  • new dictionary

we would need a dependency now for the new branch ... maybe a pre-release? How can we proceed on that?

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

@mielvds do you have the credentials? We can try to take care of this ....

from hdt-java.

mielvds avatar mielvds commented on June 9, 2024

I have, but they are personal. I'll see if i can create some for you or have some neutral ones.

FYI, this that need to be done for every manual MVM release

Set the ~/.m2/settings.xml

<settings>
  ...
  <servers>
    ...
    <server>
      <id>sonatype-nexus-snapshots</id>
      <username>your-sonatype-id</username>
      <password>your-sonatype-pwd</password>
    </server>
    <server>
      <id>sonatype-nexus-staging</id>
      <username>your-sonatype-id</username>
      <password>your-sonatyp-pwd</password>
    </server>
    <server>
      <id>github</id>
      <username>your-github-id</username>
      <password>your-github-pwd</password>
    </server>
  </servers>
  ...
</settings>

export RC_VERSION=X.X.X

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

Maybe one option is to add your credentials in the github action secrets
https://github.com/rdfhdt/hdt-java/settings/secrets/actions
I'm not sure but no one else might be able to see them, but we can still use them ....
https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-maven#publishing-packages-to-the-maven-central-repository

from hdt-java.

mielvds avatar mielvds commented on June 9, 2024

sounds good! credentials are added

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

Mhmm ... was not that successfull ..... I created a new workflow for this:

https://github.com/rdfhdt/hdt-java/blob/master/.github/workflows/main.yml

This will be triggered on release and it is fine but it fails

https://github.com/rdfhdt/hdt-java/runs/5392029498?check_suite_focus=true

with a 401 Unauthorized

from hdt-java.

mielvds avatar mielvds commented on June 9, 2024

I'll see if I can figure out what the issue is

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

I have a theory .... this ID might be wrong

server-id: ossrh

if what you pasted above is right ....

from hdt-java.

mielvds avatar mielvds commented on June 9, 2024

yep, that's definitely an issue!

from hdt-java.

mielvds avatar mielvds commented on June 9, 2024

@D063520 I believe Nexus staging rejects everything not -SNAPSHOT... but in any case: there are very cumbersome rules to deploy maven packages and I think you better check how this is handled first. Last time, @awoods helped me out, but it didn't stick with me.

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

It worked in fact .... we need just to check it appears on mvn central .....

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

@mielvds I think something went wrong .... which is strange since the CI did not complain
could you try to do it locally and note down the steps? It would be easier to configure the CI than properly ....

Other thing, could it be that you need to do a manual step by logging in:

To release your components, you can either release them directly from the command line, if you are using the Nexus Staging Maven Plugin or Ant Tasks or open your favorite browser and go to https://s01.oss.sonatype.org/ or follow our [detailed instructions](https://central.sonatype.org/publish/release/).
from https://central.sonatype.org/publish/release/#locate-and-examine-your-staging-repository

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

@mielvds I checked again the documentation. If I'm not wrong all went fine, but there is currently still a manual action required described here:

https://central.sonatype.org/publish/release/
https://oss.sonatype.org/service/local/staging/deploy/maven2/org/rdfhdt/hdt-java-parent/2.2/hdt-java-parent-2.2.pom

can you check?

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

Ok, I advanced a bit ... so I added and configured a plugin that automatically passes from the staging step to the release step. So this is fine. Also I'm signing now the artifcat. I think all should be fine this time. Let's see if it appears in mvn central tomorrow morning ...

from hdt-java.

D063520 avatar D063520 commented on June 9, 2024

yes i think it is ..
Screenshot 2022-03-10 at 22 58 01

from hdt-java.

mielvds avatar mielvds commented on June 9, 2024

Hi @D063520 , awesome, you made it work! The delay is normal. IIRC the sonatype repo is not maven central, but syncs everything to maven central with a delay.

from hdt-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.