Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] Deploying and resolving compressed artifacts

Hi All,

I'm new to Aether and I'm trying to understand how to best support my use case. I have files (the artifacts) that are very large but compress to a relatively small size. I would like to deploy these files as "primary" artifacts with the standard Maven/Aether coordinates but deploy them in a compressed form. The artifact naming  would follow the standard Maven naming conversions but be suffixed with *.zip, *.gz, etc. if they they are deployed as compressed files. Secondary artifacts (e.i. with custom classifiers) might also be deployed in compressed forms.

In my client, I would like Aether to automatically consider the compressed versions if the uncompressed version does not exist. Also, when stored in the local repository, they should be uncompressed. Can Aether support this?  I will also want to enable this behavior during a Maven build of a project that depends on such artifacts. I will provide the custom project build type as an extension and I think I can enable this behavior in Maven as long as I know how to do it in Aether.

Any pointers would be very appreciated.

Best,
Shahim

Back to the top