Skip to content

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.

License

Notifications You must be signed in to change notification settings

vincentrussell/bulk-maven-repository-deploy-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bulk-maven-repository-deploy-plugin Maven Central Build Status

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.1.0</version>
</dependency>

Requirements

  • JDK 17 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.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
repositorySubDirectory If you don't want to upload all artifacts in the .m2 folder, use this argument to specify the repositoryBase subDirectory (e.g. com/example)
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
groupId If you don't want to upload all artifacts in the .m2 folder, use this argument to specify the only groupId to import (e.g. org.apache)
artifactId If you don't want to upload all artifacts in the .m2 folder, use this argument to specify the only artifactId to import (e.g. commons-lang)

Change Log

1.1.0 (2025-05-06)

Features:

  • Add repositorySubDirectory parameter
  • Add groupId parameter
  • Add artifactId parameter

1.0 (2020-06-11)

Features:

  • Initial Release

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages