Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jcgay/maven-distinct-local-repository
- Owner: jcgay
- License: mit
- Created: 2018-01-21T11:37:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T04:30:59.000Z (over 3 years ago)
- Last Synced: 2023-05-25T13:16:27.956Z (over 1 year ago)
- Topics: maven, maven-extension, release, snapshot
- Language: Java
- Homepage:
- Size: 43.9 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.
## InstallationGet [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