title: AWS CodeArtifact token update
body: <p>I created AWS CodeArtifact repository, obtained token with <code>aws codeartifact get-authorization-token</code> command, and set it correctly to <code>.m2/settings.xml</code> (my project is using <code>maven</code> as build tool &amp; package manager).</p>
  <p>The problem is that the token expires after 12 hours. This means that I and all the developers working on the project have to fetch a new token and set the new token in <code>settings.xml</code> file.
  And same has to be done for ci/cd server that also needs to have a connection to CodeArtifact in order to push the artifacts after building.</p>
  <p>There has to be a way to solve this problem but unfortunately, I wasn't able to find the solution.</p>