# Maven Cache Resource
A [Concourse.ci](http://concourse.ci/) resource for caching Maven dependencies.

The approach and code is based on [gradle-cache-resource](https://github.com/projectfalcon/gradle-cache-resource).

## Source Configuration
The resource uses the [git-resource](https://github.com/concourse/git-resource) internally, so any of
the git-resource parameters can be used. It is advisable to use the `paths` parameter to only listen
to changes of the `pom.xml` of the Maven project.

## Behavior
### `check`: Check for git repo changes
Simply forwards the control to the `check` script of the git-resource to check for any changes in
the source repository.

It is advisable to track changes to the `pom.xml` only, since that describes the project dependencies.

### `in`: Cache dependencies
The source repository is first cloned using the git-resource and then dependencies are cached
with `mvn dependency:resolve`.

### `out`: Not used

## Usage
An example usage is documented in `example-pipeline.yml`.

# Maven Cache Resource
A [Concourse.ci](http://concourse.ci/) resource for caching Maven dependencies.

The approach and code is based on [gradle-cache-resource](https://github.com/projectfalcon/gradle-cache-resource).

## Source Configuration
The resource uses the [git-resource](https://github.com/concourse/git-resource) internally, so any of
the git-resource parameters can be used. It is advisable to use the `paths` parameter to only listen
to changes of the `pom.xml` of the Maven project.

## Behavior
### `check`: Check for git repo changes
Simply forwards the control to the `check` script of the git-resource to check for any changes in
the source repository.

It is advisable to track changes to the `pom.xml` only, since that describes the project dependencies.

### `in`: Cache dependencies
The source repository is first cloned using the git-resource and then dependencies are cached
with `mvn dependency:resolve`.

### `out`: Not used

## Usage
An example usage is documented in `example-pipeline.yml`.

Docker image is available on [Docker Hub](https://hub.docker.com/r/olhtbr/maven-cache-resource).

Add link to Docker Hub image
Add link to Docker Hub image
