coderazzi / aws_codeartifact_maven

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

Error using multiple server/repos #10

Closed philkohl closed 11 months ago

philkohl commented 11 months ago

Hi,

at first thanks for you plugin! It makes it easier to work with the AWS Codeartifact :) At the moment we face an issue, if we work with several servers/profiles

<server>
   <id>server1</id>
   <username>user1</username>
   <password></password>
</server>
<server>
   <id>server1-snapshots</id>
   <username>user1</username> <!-- Same user as the first one -->
   <password></password>
</server>
<profiles>
        <profile>
            <id>server1</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>server1</id>
                    <url>...</url>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                </repository>
                <repository>
                    <id>server1-snapshots</id>
                    <url>...</url>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                </repository>
            </repositories>
        </profile>
    </profiles>

I can generate the credentials for server1, but if I try this for server1-snapshots, I get the following error: image I also tried to separate the repositories to two different profiles, but that does not do the trick. Do I have to configure it differently?

Based on https://github.com/coderazzi/aws_codeartifact_maven/issues/3 I think your plugin should support it?

coderazzi commented 11 months ago

Hi, could you send me your settings.xml and .aws folder, removing any sensitive information?

On Mon, Sep 18, 2023 at 6:07 AM philkohl @.***> wrote:

Hi,

at first thanks for you plugin! It makes it easier to work with the AWS Codeartifact :) At the moment we face an issue, if we work with several servers/profiles

server1 user1 server1-snapshots user1 server1 true server1 ... false true server1-snapshots ... true false

I can generate the credentials for server1, but if I try this for server1-snapshots, I get the following error: [image: image] https://user-images.githubusercontent.com/65112414/268565035-cf4698a0-7e4b-433e-b696-65b74514d3ca.png I also tried to separate the repositories to two different profiles, but that does not do the trick. Do I have to configure it differently?

Based on #3 https://github.com/coderazzi/aws_codeartifact_maven/issues/3 I think your plugin should support it?

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

philkohl commented 11 months ago

aws_codeartifact_maven.zip

Sure, I attached the two .m2 settings that I tried. The aws config is very basic. Thanks for taking a look!

coderazzi commented 11 months ago

Hi, little, silly bug, ashamed to say. I will release tomorrow asap the solution ....

On Mon, Sep 18, 2023 at 12:29 PM philkohl @.***> wrote:

aws_codeartifact_maven.zip

Sure, I attached the two .m2 settings that I tried. The aws config is very basic. Thanks for taking a look!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

coderazzi commented 11 months ago

Hi, I have released version 3.2.3, covering the bug you found. You could download it from the beta channel and test it: https://plugins.jetbrains.com/plugin/16777-aws-codeartifact--maven/versions/beta Best, Lu

On Mon, Sep 18, 2023 at 9:37 PM coderazzi @.***> wrote:

Hi, little, silly bug, ashamed to say. I will release tomorrow asap the solution ....

On Mon, Sep 18, 2023 at 12:29 PM philkohl @.***> wrote:

aws_codeartifact_maven.zip

Sure, I attached the two .m2 settings that I tried. The aws config is very basic. Thanks for taking a look!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

philkohl commented 11 months ago

Hi, thank you very much for the fix! Now it's working :)