Drone plugins > Java Maven
apache_maven_logo.svg

Java Maven

by kameshsampath


The Java Apache Maven plugin that can be used to build Java applications using Apache Maven build tool.

Example

kind: pipeline
name: default

steps:
- name: build-java-app
  image: docker.io/kameshsampath/drone-java-maven-plugin:v1.0.0
  pull: if-not-exists

Properties

  • context_dir

    stringoptional

    The context directory within the source repository where "pom.xml" is found to execute the maven goals. Defaults to Drone workspace root.

    Default: none

  • goals

    arrayoptional

    An array of maven goals to run.

    Default: -DskipTests clean install

  • maven_modules

    arrayoptional

    An array of maven modules to be built incase of a multi module maven project.

    Default: none

  • maven_mirror_url

    stringoptional

    The maven mirror to use for downloading the build dependencies.

    Default: none

  • server_user

    stringoptional

    The username for the maven repository manager server.

    Default: none

  • server_password

    stringoptional

    The password for the maven repository manager server.

    Secret recommended

    Default: none

  • proxy_user

    stringoptional

    The username for the proxy server.

    Secret recommended

    Default: none

  • proxy_password

    stringoptional

    The password for the proxy server.

    Secret recommended

    Default: none

  • proxy_port

    numberoptional

    Port number for the proxy server.

    Default: none

  • proxy_host

    stringoptional

    Proxy server Host.

    Default: false

  • proxy_non_proxy_hosts

    arrayoptional

    Non proxy server hosts.

    Default: false

  • proxy_protocol

    stringoptional

    Protocol for the proxy ie http or https.

    Default: false