agilecustoms/Setup Maven with CodeArtifact
Setup java + maven and login (generate token) to resolve maven dependencies from AWS CodeArtifact repository
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 14, 2026
- License
- MIT
Pinned Snippet
uses: agilecustoms/setup-maven-codeartifact@3602000a365f5f5c93cdb24fd41d7155b82fe1c1 # v2.3.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| aws-account | AWS account number where the CodeArtifact domain is located | yes | — |
| aws-login | Login to AWS. Could be false if you login in AWS outside of this action | no | true |
| aws-codeartifact-domain | CodeArtifact domain name | yes | — |
| aws-codeartifact-repository | CodeArtifact repository name | yes | maven |
| aws-region | AWS region where the CodeArtifact domain is located | yes | — |
| aws-role | IAM role to assume, good option is /ci/builder | no | ci/builder |
| java-cache | Enabled by default, specify empty string to disable caching | no | maven |
| java-cache-dependency-path | see https://github.com/actions/setup-java "cache-dependency-path" | no | — |
| java-distribution | Java distribution, use Temurin as it is pre-cached in ubuntu-latest | no | temurin |
| java-setup | Setup Java using actions/setup-java. Set to false if Java is setup outside of this action | no | true |
| java-version | Java version to use | no | 21 |
| settings-mirrors | settings.xml mirrors section (optional) | no | — |
| settings-pluginGroups | settings.xml pluginGroups section (optional) | no | — |
| settings-pluginRepositories | Additional plugin repositories (besides CodeArtifact one) | no | <pluginRepository> <id>central</id> <url>https://central.maven.org/maven2/</url> </pluginRepository> <pluginRepository> <id>repo1</id> <url>https://repo1.maven.org/maven2/</url> </pluginRepository> |
| settings-profile-properties | settings.xml profile properties (optional) | no | — |
| settings-proxies | settings.xml proxies section (optional) | no | — |
| settings-repositories | Additional repositories (besides CodeArtifact one) | no | <repository> <id>central</id> <url>https://central.maven.org/maven2/</url> </repository> <repository> <id>repo1</id> <url>https://repo1.maven.org/maven2/</url> </repository> |
Outputs
no outputs