coderazzi / aws_codeartifact_maven

Support to update AWS CodeArtifact credentials on maven IDEA projects.
MIT License
6 stars 7 forks source link

Option to select multiple Maven Server IDs at once #16

Open jessewebb opened 2 months ago

jessewebb commented 2 months ago

Thank you for this very useful plugin!

My team uses this plugin with our AWS Code Artifact repositories. The only problem is that we have 3 different repositories in CodeArtifact that our projects use, so we have to run the tool 3 times for 3 different servers in our settings.xml file. They could all use the same token though, since they are in the same AWS environment.

Could you add a multi-select option to the "Maven server id" selector, so that we could run the tool once and it would use 1 generated token in multiple different <server> sections in the settings.xml file? Or even add an option <all> to the drop down that would allow you to update all servers which use the aws username?

Thanks!

jessewebb commented 2 months ago

I was looking for other work-arounds for this issue. It turns out that AWS lets you create an Aggregate repository that uses all of your other repos as upstream repos.

https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html

I'm going to create an aggregate repo so that we only need to use 1 repo in our settings.xml file.

This change might still be useful in some scenarios, but it is certainly not needed. Feel free to close if you don't want to implement this option.

coderazzi commented 2 months ago

Hi, Jesse, I was thinking about what would be the best UX for this solution, I will try implementing it in the best possible way asap. Best regards, Lu.

On Thu, Aug 22, 2024 at 7:17 PM Jesse Webb @.***> wrote:

I was looking for other work-arounds for this issue. It turns out that AWS lets you create an Aggregate repository that uses all of your other repos as upstream repos. I'm going to create an aggregate repo so that we only need to use 1 repo in our settings.xml file.

This change might still be useful in some scenarios, but it is certainly not needed. Feel free to close if you don't want to implement this option.

— Reply to this email directly, view it on GitHub https://github.com/coderazzi/aws_codeartifact_maven/issues/16#issuecomment-2305264467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH54IJ7SAUQ3VFOO35DR3DZSYMLFAVCNFSM6AAAAABM6QXKCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGI3DINBWG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>