coderazzi / aws_codeartifact_maven

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

Maven settings file does not define any server whit username 'aws' #5

Closed MTurraPpa closed 2 years ago

MTurraPpa commented 2 years ago

I get this message but my ~/.m2/settings.xml have the server with username aws

<servers>
  <server>
    <id>myserverid</id>
    <username>aws</username>
    <password>${env.CODEARTIFACT_AUTH_TOKEN}</password>
  </server>
</servers>

On MacOs 12.0.1 and IntellyJ 2021.3 (Community Edition)

coderazzi commented 2 years ago

Hi, could you send me your settings.xml file? (overwrite any sensitive information, of course)

Best regards,

L.

On Thu, Dec 16, 2021 at 12:54 PM MTurraPpa @.***> wrote:

I get this message but my ~/.m2/settings.xml have the server with username aws

myserverid aws ${env.CODEARTIFACT_AUTH_TOKEN}

On MacOs 12.0.1 and IntellyJ 2021.3 (Community Edition)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/coderazzi/aws_codeartifact_maven/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH54ILBRLKV32QOFCZCCNDURHHOBANCNFSM5KGDMWDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

MTurraPpa commented 2 years ago

Is the one you see in the issue

Il gio 16 dic 2021, 13:03 coderazzi @.***> ha scritto:

Hi, could you send me your settings.xml file? (overwrite any sensitive information, of course)

Best regards,

L.

On Thu, Dec 16, 2021 at 12:54 PM MTurraPpa @.***> wrote:

I get this message but my ~/.m2/settings.xml have the server with username aws

myserverid aws ${env.CODEARTIFACT_AUTH_TOKEN}

On MacOs 12.0.1 and IntellyJ 2021.3 (Community Edition)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/coderazzi/aws_codeartifact_maven/issues/5, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAH54ILBRLKV32QOFCZCCNDURHHOBANCNFSM5KGDMWDA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/coderazzi/aws_codeartifact_maven/issues/5#issuecomment-995751501, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWQRABICA2CUCOPEZSJQAWDURHISBANCNFSM5KGDMWDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

coderazzi commented 2 years ago

Hi, I thought you had only sent the part about the servers. Your settings.xml is incorrect You need to surround your XML with a settings element:

So it will look like:

myserverid aws ${env.CODEARTIFACT_AUTH_TOKEN}

In fact the first line should not be just , but:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

Best regards,

On Thu, Dec 16, 2021 at 1:47 PM MTurraPpa @.***> wrote:

Is the one you see in the issue

Il gio 16 dic 2021, 13:03 coderazzi @.***> ha scritto:

Hi, could you send me your settings.xml file? (overwrite any sensitive information, of course)

Best regards,

L.

On Thu, Dec 16, 2021 at 12:54 PM MTurraPpa @.***> wrote:

I get this message but my ~/.m2/settings.xml have the server with username aws

myserverid aws ${env.CODEARTIFACT_AUTH_TOKEN}

On MacOs 12.0.1 and IntellyJ 2021.3 (Community Edition)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/coderazzi/aws_codeartifact_maven/issues/5, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAH54ILBRLKV32QOFCZCCNDURHHOBANCNFSM5KGDMWDA

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/coderazzi/aws_codeartifact_maven/issues/5#issuecomment-995751501 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AWQRABICA2CUCOPEZSJQAWDURHISBANCNFSM5KGDMWDA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/coderazzi/aws_codeartifact_maven/issues/5#issuecomment-995784760, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH54IKVAU5WXN34EOK3WLDURHNUXANCNFSM5KGDMWDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

MTurraPpa commented 2 years ago

Right!

Sorry