Skip to content

Conversation

@kwin
Copy link
Contributor

@kwin kwin commented Aug 20, 2025

extension "zip"

This closes #342

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Contributor

@rombert rombert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM but I am not that deep into Maven plugins. Maybe @cziegeler @karlpauls or @bosschaert know if this is the right fix?

@kwin kwin force-pushed the bugfix/ignore-nonzip-attached-artifacts branch from 129a1fc to d6ad312 Compare August 20, 2025 13:21
@cziegeler
Copy link
Contributor

this fix should be fine, obviously it would fail if for whatever reason the content package is using a different extension - which sometimes happens, but is very rare.
An alternative would be to ignore artifacts with an extension that has a dot - but that is also not 100% safe.
I think if the exclusion is logged (right classifier, wrong extension) then its easy to identify the problem

@kwin
Copy link
Contributor Author

kwin commented Aug 20, 2025

In which cases is the extension not zip?

@cziegeler
Copy link
Contributor

I have seen content packages with the extension "jar", with the extension "content-package" - very rare and maybe it does not apply.
Like I said, all good but still it should be clearly logged

@kwin kwin force-pushed the bugfix/ignore-nonzip-attached-artifacts branch from d6ad312 to 164fd64 Compare August 20, 2025 14:14
@kwin
Copy link
Contributor Author

kwin commented Aug 20, 2025

I improved logging in 164fd64#diff-7fdd24b8cb05fdf384e46a50c9a4125f5bf3e354b6487d163e5e7a05ac086753R206 now.

@kwin kwin force-pushed the bugfix/ignore-nonzip-attached-artifacts branch from 164fd64 to 43bc4a6 Compare August 20, 2025 15:24
@rombert rombert merged commit c6f7b45 into adobe:main Aug 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPE during release:perform when using "classifier" due to attached GPG signature artifact

3 participants