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
stringoptionalThe context directory within the source repository where "pom.xml" is found to execute the maven goals. Defaults to Drone workspace root.
Default: none
goals
arrayoptionalAn array of maven goals to run.
Default: -DskipTests clean install
maven_modules
arrayoptionalAn array of maven modules to be built incase of a multi module maven project.
Default: none
maven_mirror_url
stringoptionalThe maven mirror to use for downloading the build dependencies.
Default: none
server_user
stringoptionalThe username for the maven repository manager server.
Default: none
server_password
stringoptionalThe password for the maven repository manager server.
Secret recommendedDefault: none
proxy_user
stringoptionalThe username for the proxy server.
Secret recommendedDefault: none
proxy_password
stringoptionalThe password for the proxy server.
Secret recommendedDefault: none
proxy_port
numberoptionalPort number for the proxy server.
Default: none
proxy_host
stringoptionalProxy server Host.
Default: false
proxy_non_proxy_hosts
arrayoptionalNon proxy server hosts.
Default: false
proxy_protocol
stringoptionalProtocol for the proxy ie http or https.
Default: false