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

fix: maven - error parsing artifact with classifier #78

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

zvigrinberg
Copy link
Collaborator

Description

When there is in dependency tree an artifact with classifier, the components are in different positions( the version) in the string, and there are 6 parts instead of 5 parts, so need to identify it , and parse it correctly.

For example:

5 parts ( no classifier):

com.google.guava:guava:jar:10.0.1:compile

6 parts ( with classifier):

org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0:compile

Fixes: https://issues.redhat.com/browse/TC-766

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

unable to parse an artifact that contains classifier ( version suffix)
Jira Ticket: https://issues.redhat.com/browse/TC-766

Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
@zvigrinberg zvigrinberg force-pushed the hotfix/fix-maven-parse-with-classifier branch from fdf9072 to bb173f5 Compare December 5, 2023 08:15
Copy link

github-actions bot commented Dec 5, 2023

Test Results

90 tests   90 ✔️  47s ⏱️
10 suites    0 💤
10 files      0

Results for commit bb173f5.

@zvigrinberg zvigrinberg merged commit 34e5776 into main Dec 5, 2023
6 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.

1 participant