Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jcgay/maven-distinct-local-repository

Separate SNAPSHOTs and RELEASEs in local Maven repository
https://github.com/jcgay/maven-distinct-local-repository

maven maven-extension release snapshot

Last synced: about 2 months ago
JSON representation

Separate SNAPSHOTs and RELEASEs in local Maven repository

Awesome Lists containing this project

README

        

# maven-distinct-local-repository

This Maven extension aims to separate SNAPSHOTs and RELEASEs artifacts and metadata in local repository.

For example, if your local Maven repository is located at `~/.m2/repository`:

- SNAPSHOTs will be written at `~/.m2/repository/snapshots`,
- RELEASEs will be written at `~/.m2/repository/releases`

It is handy to manage a cache only for released artifacts (on your CI server...) or to just delete all your `SNAPSHOTs` at once.

## Installation

Get [maven-distinct-local-repository](https://dl.bintray.com/jcgay/maven/fr/jcgay/maven/extension/maven-distinct-local-repository/1.2/maven-distinct-local-repository-1.2.jar) and copy it in `%M2_HOME%/lib/ext` folder (where `%M2_HOME` targets your local Maven installation).

*or*

Use the new [core extensions configuration mechanism](http://takari.io/2015/03/19/core-extensions.html) by creating a `${maven.multiModuleProjectDirectory}/.mvn/extensions.xml` file with:

```


fr.jcgay.maven.extension
maven-distinct-local-repository
1.2

```

## Usage

Run your build using property `distinct.local.repository=true`:

mvn install -Ddistinct.local.repository=true

Dependencies will be automatically resolved/stored in distinct folders from/in your local Maven repository.

# Build status

[![Build Status](https://travis-ci.org/jcgay/maven-distinct-local-repository.svg?branch=master)](https://travis-ci.org/jcgay/maven-distinct-local-repository)
[![Coverage Status](https://coveralls.io/repos/jcgay/maven-distinct-local-repository/badge.svg?branch=master)](https://coveralls.io/r/jcgay/maven-distinct-local-repository?branch=master)

# Release

mvn -B release:prepare release:perform