Drone plugins > Maven Auth
Maven Auth
by robertstettner
The Maven Auth plugin can be used for generating the settings.xml with server authentication for a Maven repository. Please note that dependencies are saved in the .m2 directory.
Example
kind: pipeline
name: default
steps:
- name: auth
image: robertstettner/drone-mvn-auth
settings:
servers:
- id: release
username: admin
password: R31e4sE
- id: snapshot
username: snap
password: crackle123
profiles:
- id: my-profile
repositories:
- id: myRepo
name: Repository for my libraries
url: http://maven.my.com
layout: default
plugin_repositories:
- id: myRepo
name: Repository for my libraries
url: http://maven.my.com
layout: default
active_profiles:
- my-profile
Properties
servers
arrayoptionalThe list of servers
Default: none
profiles
arrayoptionalThe list of profiles
Default: none
active_profiles
arrayoptionalThe list of active profiles
Default: none
debug
booleanoptionalEnable debug mode
Default: false