https://github.com/apache/maven-build-cache-extension
Apache Maven Build Cache Extension
https://github.com/apache/maven-build-cache-extension
apache-maven build-management java maven
Last synced: 12 days ago
JSON representation
Apache Maven Build Cache Extension
- Host: GitHub
- URL: https://github.com/apache/maven-build-cache-extension
- Owner: apache
- License: apache-2.0
- Created: 2022-01-04T12:02:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-19T07:04:09.000Z (about 1 year ago)
- Last Synced: 2025-03-28T12:02:36.453Z (about 1 year ago)
- Topics: apache-maven, build-management, java, maven
- Language: Java
- Homepage: https://maven.apache.org/extensions/maven-build-cache-extension/
- Size: 1.22 MB
- Stars: 126
- Watchers: 36
- Forks: 44
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[Apache Maven Build Cache Extension](https://maven.apache.org/extensions/maven-build-cache-extension/)
==================================
[][license]
[](https://search.maven.org/artifact/org.apache.maven.extensions/maven-build-cache-extension)
[][build]
[][test-results]
This project provides a Build Cache Extension feature which calculates out-of-date modules in the build dependencies graph and improves build times by avoiding re-building unnecessary modules.
Read [cache guide](https://maven.apache.org/extensions/maven-build-cache-extension/index.html) for more details.
Requires Maven 3.9+ ([MNG-7391](https://issues.apache.org/jira/browse/MNG-7391)).
Running Integration Tests
-------------------------
### Test coverage, Testing approach
* [Test plan](documentation/extension-features-test-plan.md)
* [Test projects](documentation/maven-test-projects-universe.md)
### Full test suite
```shell
# Maven 4 (default)
mvn verify -Prun-its
# Maven 3
mvn verify -Prun-its,maven3
```
### Smoke profile (quick developer check)
The `run-its-smoke` profile runs a focused subset of ~42 integration tests annotated
with `@Tag("smoke")`. It covers the most critical cache behaviours plus at least one
test per Maven project flavour (P01–P19) and per major cache trait (F1–F13).
Typical runtime is significantly shorter than the full suite.
```shell
# Maven 4
mvn verify -Prun-its-smoke
# Maven 3
mvn verify -Prun-its-smoke,maven3
```
Tests are selected via the JUnit 5 tag `smoke`. To add a new test to the smoke
profile, annotate its class with `@Tag("smoke")`.
License
-------
This code is under the [Apache License, Version 2.0, January 2004][license].
See the [`NOTICE`](./NOTICE) file for required notices and attributions.
[home]: https://maven.apache.org/extensions/maven-build-cache-extension/
[license]: https://www.apache.org/licenses/LICENSE-2.0
[build]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-build-cache-extension/job/master/
[test-results]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven/job/maven-build-cache-extension/lastCompletedBuild/testReport/
[build-status]: https://img.shields.io/jenkins/s/https/ci-maven.apache.org/job/Maven/job/maven-box/job/maven-build-cache-extension/job/master.svg
[build-tests]: https://img.shields.io/jenkins/t/https/ci-maven.apache.org/job/Maven/job/maven-box/job/maven-build-cache-extension/job/master.svg
[Apache Maven X Account](https://x.com/ASFMavenProject)
[Apache Maven Bluesky Account](https://bsky.app/profile/maven.apache.org)
[Apache Maven Mastodon Account](https://mastodon.social/deck/@ASFMavenProject@fosstodon.org)