Maven Cache Feature
Caches Maven dependencies to speed up the builds. The feature tracks local repositories used by Maven steps and caches dependencies in the artifact storage. The cache is automatically updated when dependencies of corresponding Maven projects change.
Dependency caching is most effective on short-lived agents. For long-lived or permanent cloud agents, periodically review hidden .teamcity.build_cache
build artifacts to monitor cache size and contents. This helps prevent redundant dependencies and unnecessary cache bloat.
Example. Enables Maven dependency cache to speed up the builds
buildType {
// Other Build Type settings ...
features {
// Other Build Features ...
mavenCache {
}
Content copied to clipboard }
}
See also
Functions
Copies parameters of this object to the specified target
Creates an instance of this build feature via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Validates this object and reports found errors to the provided consumer