This plugin is used to build Java application using Apache Maven.
The plugin harnesscommunitytest/maven-plugin
is available for the following architectures:
OS | Tag |
---|---|
latest | linux-amd64/arm64 |
linux/amd64 | linux-amd64 |
linux/arm64 | linux-arm64 |
windows/amd64 | windows-amd64 |
Parameter | Comments |
---|---|
context_dir optional |
The context directory within the source repository where pom.xml is found to execute the maven goals. Defaults to Drone workspace root. |
goals optional |
An array of maven goals to run.Defaults: -DskipTests clean install . |
maven_modules optional |
An array of maven modules to be built incase of a multi module maven project. |
maven_mirror_url optional |
The Maven repository mirror url. |
server_user optional |
The username for the maven repository manager server. |
server_password optional |
The password for the maven repository manager server. |
proxy_user optional |
The username for the proxy server. |
proxy_password optional |
The password for the proxy server. |
proxy_port optional |
Port number for the proxy server. |
proxy_host optional |
Proxy server Host. |
proxy_non_proxy_hosts optional |
An array of non proxy server hosts. |
proxy_protocol optional |
Protocol for the proxy ie http or https. |
Build the plugin image:
./scripts/build.sh
# Plugin YAML
- step:
type: Plugin
name: maven-plugin-arm64
identifier: maven-plugin-arm64
spec:
connectorRef: harness-docker-connector
image: harnesscommunitytest/maven-plugin:linux-arm64
- step:
type: Plugin
name: maven-plugin-amd64
identifier: maven-plugin-amd64
spec:
connectorRef: harness-docker-connector
image: harnesscommunitytest/maven-plugin:linux-amd64