bulk-maven-repository-deploy-plugin
![Build Status](https://camo.githubusercontent.com/56885532f68d23b077d53fa1405d0c2b339e5dff3130ec4d32250f1cc73146c9/68747470733a2f2f7472617669732d63692e6f72672f76696e63656e7472757373656c6c2f62756c6b2d6d6176656e2d7265706f7369746f72792d6465706c6f792d706c7567696e2e7376673f6272616e63683d6d6173746572)
bulk-maven-repository-deploy-plugin will take a lock maven2 repo and bulk upload the artifacts into a remote maven repository. You can upload from your local m2 repository or another directory that is in the same format.
Maven
Add a dependency to com.github.vincentrussell:bulk-maven-repository-deploy-plugin
.
<dependency>
<groupId>com.github.vincentrussell</groupId>
<artifactId>bulk-maven-repository-deploy-plugin</artifactId>
<version>1.0</version>
</dependency>
Requirements
- JDK 1.7 or higher
Running from the command line
The easiest way to use this plugin is to just use it from the command line.
mvn com.github.vincentrussell:bulk-maven-repository-deploy-plugin:1.0:bulk-import -DrepositoryId=thirdparty -DrepositoryUrl=http://localhost:8081/repository/thirdparty/
Option | Description |
---|---|
repositoryId | Server Id to map on the <id> under <server> section of settings.xml In most cases, this parameter will be required for authentication. |
repositoryUrl | URL where the artifact will be deployed. (i.e: http://localhost:8081/repository/thirdparty/) |
repositoryBase | Alternative location to upload artifacts from. This directory must be in the same format as an maven2 local repository |
deploymentType | This parameter can be used to control whether or not to only allow snapshots, releases or both to be uploaded to the nexus repository. The options are SNAPSHOT_ONLY, RELEASE_ONLY, or SNAPSHOT_AND_RELEASE. The default value is RELEASE_ONLY |
Change Log
1.0 (2020-06-11)
Enhancements:
- Initial Release