Drone plugins > Maven Auth
maven.svg

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

    arrayoptional

    The list of servers

    Default: none

  • profiles

    arrayoptional

    The list of profiles

    Default: none

  • active_profiles

    arrayoptional

    The list of active profiles

    Default: none

  • debug

    booleanoptional

    Enable debug mode

    Default: false