@@ -8,11 +8,11 @@ Allows to use Maven backed by AWS CodeArtifact repository in GitHub Actions:
88Designed to be used in your build workflow (when you need to access packages from CodeArtifact)
99and also it a release workflow (when you publish packages in CodeArtifact).
1010It is recommended to use different IAM roles: ` /ci/builder ` and ` /ci/publisher ` respectfully.
11- For release workflow you likely want to update a version in ` pom.xml ` file and add some git tags,
11+ For release workflow you likely want to bump a version in ` pom.xml ` file and add some git tags,
1212so please check the ` agilecustoms/release ` action - it represents a holistic release action (uses ` setup-maven-codeartifact ` under the hood).
1313
1414This action is a combination of few other actions mainly ` actions/setup-java ` and ` aws-actions/configure-aws-credentials ` ,
15- hence all parameters have prefix either ` aws -` (for authorization in aws ) or ` java -` (for java-specific settings )
15+ hence all parameters have prefix either ` java -` (for java-specific settings ) or ` aws -` (for authorization in aws )
1616
1717## Usage in build workflow
1818``` yaml
2727 uses : actions/checkout@v4
2828
2929 - name : Setup Java
30- uses : agilecustoms/setup-maven-codeartifact@1.0.0
30+ uses : agilecustoms/setup-maven-codeartifact@v1
3131 with :
3232 aws-account : ${{ vars.AWS_ACCOUNT_DIST }}
3333 aws-region : us-east-1
4242## settings.xml for local development
4343Under the hood, this action generates [settings.xml](./ci.settings.xml) file with CodeArtifact repository and credentials. Note:
4444- maven central and its mirror are used as primary repositories for dependencies and plugins, your company CodeArtifact is in 3rd place
45- - your company repository id has format ` {aws-codeartifact-domain}-maven `
45+ - your company repository id has format ` {aws-codeartifact-domain}-{aws-codeartifact-repository} `
4646
4747With this knowledge, you can place a local version of [settings.xml](./local.settings.xml) on developers' machines
4848to give them read-only access to maven packages in corporate CodeArtifact.
0 commit comments