-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publish maven dependency #365
Comments
Good idea, but I have a few questions to better understand what this entails: Would this mean that, if I do Regarding the immutability that you speak of, does it mean doing |
No, doing
Exactly, so when creating releases we should adhere to, e.g., semantic versioning. |
Thanks for answering my questions. Sounds like a good idea then! |
After a lot of experimentation I have a few things to add to this issue:
I was thinking that we could set up a common Maven Central account for the group LiUSemWeb, which we can manage as a group. That way the publishing steps will persist even if the group members change in future and we don't have to share any personal tokens etc. Also, an email can only be used to register a single Sonatype account. If this sounds like a good idea, do we have some email address that could be used for this or should we create a new one? What domain? |
Okay, we can do that. In this case, would it make sense to change the
Okay
We wouldn't publish SNAPSHOT versions anyways, would we?
Can you please create a PR with an initial version of these changes. Then, I can take a look and expand/adjust as I see fit. (The PR may also contain the change as per point 1 above)
What do you mean by personal tokens?
Is such an account then only for Maven packages for one project or can it be for multiple?
If we don't use my email address, then it should be one for the group, preferably with @liu.se. But as we don't have such an email address, I am afraid trying to get one may be more effort than simply using my LiU email address. |
Jena uses Apache Jena uses <name>Apache Jena</name>
<groupId>org.apache.jena</groupId>
<artifactId>jena</artifactId>
<packaging>pom</packaging>
...
I agree.
Will do.
Okay. So maybe it's just overkill to automate the maven publishing step? We could instead just make sure that the process is properly documented and then you can authenticate by modifying
Managing multiple projects with a single project is fine, but we can't create a dedicated LiUSemWeb account using our own email addresses.
Let's use yours then. I'll get back with details. |
Sounds all good. I will wait for you to get back with details then. (And we keep the the |
I've now finally managed to publish an example project using Maven Central! I was a bit taken aback by how complicated it actually was, but I've taken note of all the steps so next time should be much easier, and updated the Release-Logistics. The key takeaways are the following:
According to the Maven Central docs, multiple users should be able to share a namespace but there seems to be no way of adding users manually, so I think it's best that @hartig claims the namespace. @hartig, perhaps we can schedule a time for setting it up on your computer once we now how to manage deal with namespace/subdomain question? |
For testing purposes, I've published HeFQUIN in my own github namespace. The libs work as expected and the modules can be imported separately. E.g.: <dependency>
<groupId>io.github.keski.hefquin</groupId>
<artifactId>hefquin-cli</artifactId>
<version>0.0.1</version>
</dependency> I've update the |
Thanks for your efforts. Let's wait for IT to respond to your ticket. In the meantime, I'm repeating my thoughts from our brief discussion yesterday about some of the other points, just for the record:
|
@keski any update on this one? |
@hartig I got an update regarding this! If we want to use a subdomain directly under |
Thanks for investigating! I assume that, instead of If so, I would prefer that (but keep our Java packages named as they are). Can you please ask IT what we need to do have them help us set this up. In particular, as far as I understand the related part of the Sonatype documentation, they need to add a "DNS TXT record" for us where the value of this record is the verification key that we get from Sonatype in the process of verifying the namespace. Can you please confirm with IT that they would do that for us (feel free to include me in CC). |
This matches my understanding as well. I've forwarded our request to IT. |
This issue is about publishing HeFQUIN releases using GitHub Packages as a Maven repository. To use HefQUIN as dependency would then require something like:
I'd suggest adding an action that is triggered automatically whenever a new release is published.
Note: Maven releases are immutable also when using GitHub Packages.
@hartig
The text was updated successfully, but these errors were encountered: