Skip to content

.mavenrc file used to update Code Artifact tokens dynamically

Notifications You must be signed in to change notification settings

pat-lego/mvn-aws-codeartifact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Maven Code Artifact Update

In order to update the CodeArtifact token simply perform the following

  1. Install AWS CLI on your machine
  1. Configure it accordingly
  1. Add the server to the settings.xml file
  2. Reference the following token ${env.CODEARTIFACT_AUTH_TOKEN}
  3. Create a file called .mavenrc under ~/
  4. Add the following code to the file
export CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain [domain] --domain-owner [domain_owner] --query authorizationToken --output text`

About

.mavenrc file used to update Code Artifact tokens dynamically

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages