-
Notifications
You must be signed in to change notification settings - Fork 2k
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
What maven repository is version 3.2.0-beta.1 of azure-spring-boot-starter-active-directory hosted on? #19073
Comments
3.2.0-beta.1 has not been released. We will release it in late February. Once it's released you can find it here: |
Hi, @spencergibb
|
Thanks, I guess I just think it's odd not to have a snapshot as what mentioned in master. |
I think there is an important point here to discuss and understand: should a version like |
No. All versions written in changelog with a specific date have already released in Maven Central. Example: |
I guess bruno was pointing out it's very odd for maven projects to have a non snapshot version in docs and pom.xml in an active development branch. |
@spencergibb I agree that it's odd. |
@chenrujun to be more specific, it is a best and common practice that pom.xml files have a I checked about 4 projects in the Azure SDK repository, and all four have a |
In this repo, we use Refs: https://github.com/Azure/azure-sdk-for-java/blob/master/eng/versioning/version_client.txt But I don't know why. Hi, @mitchdenny , could you please explain this? |
From an EngSys perspective we've made the decision not support SNAPSHOTS. This goes both for consuming or releasing them. We prefer instead to use explicit version numbers so we can always reason over the dependency graph at any given point in time and know what version of a package we are using. Best practice is highly debatable. The problem with consuming a SNAPSHOT is that you don't actually know what you are ingesting into your build. At best it can lead to unreliable builds/tests, and at worst it can be a great supply chain attack vector. |
So you don't deploy development versions anywhere? To try it you have build it yourself? |
You can grab nightly builds here: https://dev.azure.com/azure-sdk/public/_packaging?_a=feed&feed=azure-sdk-for-java |
There is some more information about our versioning strategy https://azure.github.io/azure-sdk/policies_releases.html#java-1. |
@weshaggard I see the following in the document: So, if a project has a pom.xml with a given version in beta, shouldn't that version be in Central? |
Nightly builds but no snapshots is super strange. That thwarts maven resolution rules |
So back to my original query. How to use the version documented in the readme. At least document how to do that and how to find the latest release |
You can build by yourself:
It make sense. We'll add it. Thank you for your suggestion. |
The beta versions will eventually get published to maven central. There is always the version under development that has not yet been published to maven but will eventually. If you need the latest dev version you should use the alpha versions from our dev feed see information at https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md#dev-feed. For your example you can see the alpha versions of azure-spring-boot-starter-active-directory at https://dev.azure.com/azure-sdk/public/_packaging?_a=package&feed=azure-sdk-for-java&package=com.azure.spring%3Aazure-spring-boot-starter-active-directory&protocolType=maven&version=3.2.0-alpha.20210217.0&view=versions.
We chose this option because of a number of reasons but in general based on our experience SNAPSHOT builds are super unreliable. While we understand that goes against some of the Java ecosystem support we felt it is better overall for our project. We already have enough reliability issues with Maven as it is but after we removed the use of SNAPSHOT versions our builds have been much more reliable. |
I've added some updates to our docs in #19330 to help capture some of this discussion. |
Query/Question
What maven repository is version 3.2.0-beta.1 of azure-spring-boot-starter-active-directory hosted on?
I tried the following but it didn't work.
https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-java/maven/v1
Why is this not a Bug or a feature Request?
Probably a small documentation issue.
Setup (please complete the following information if applicable):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: