Skip to content
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

Maven SNAPSHOT artifact version without snapshotVersion #264

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

rashedkvm
Copy link
Member

Pull request

What this PR does / why we need it

Fixed bug for Maven SNAPSHOT artifact when metadata has no snapshotVersion data

<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>com.example</groupId>
  <artifactId>demo</artifactId>
  <versioning>
    <latest>0.0.3-features-update-SNAPSHOT</latest>
    <versions>
      <version>0.0.1-SNAPSHOT</version>
      <version>0.0.3-features-update-SNAPSHOT</version>
    </versions>
    <lastUpdated>20240304220330</lastUpdated>
  </versioning>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
  <groupId>com.example</groupId>
  <artifactId>demo</artifactId>
  <version>0.0.3-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <buildNumber>1</buildNumber>
    </snapshot>
    <lastUpdated>20240304220329</lastUpdated>
  </versioning>
</metadata>

Which issue(s) this PR fixes

Fixes #263

Describe testing done for PR

Additional information or special notes for your reviewer

Signed-off-by: Rashed Kamal <krashed@vmware.com>
@rashedkvm rashedkvm changed the title fix: Maven SNAPSHOT artifact version without snapshotVersion Maven SNAPSHOT artifact version without snapshotVersion Mar 5, 2024
@rashedkvm rashedkvm merged commit d6cd7aa into vmware-tanzu:main Mar 6, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maven artifact snapshot version error
3 participants