@Mojo(name="updateVersion",
requiresProject=true,
threadSafe=false,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME)
public class UpdateVersionMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
applicationId |
protected String |
artifact |
protected String |
kioBaseUrl |
protected String |
notes |
protected boolean |
skip |
protected String |
versionId |
| Constructor and Description |
|---|
UpdateVersionMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildBodyContent(org.zalando.stups.clients.kio.CreateOrUpdateVersionRequest r) |
protected org.zalando.stups.clients.kio.CreateOrUpdateVersionRequest |
buildRequestObject() |
protected String |
buildUrl() |
void |
execute() |
protected void |
executeRequest(org.zalando.stups.clients.kio.CreateOrUpdateVersionRequest r) |
protected String |
getToken() |
@Parameter(defaultValue="${project.version}",
required=true)
protected String versionId
@Parameter(required=true) protected String applicationId
@Parameter(required=true) protected String artifact
@Parameter(defaultValue="kio-maven-plugin") protected String notes
@Parameter(required=true) protected String kioBaseUrl
@Parameter(required=false,
defaultValue="false")
protected boolean skip
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected org.zalando.stups.clients.kio.CreateOrUpdateVersionRequest buildRequestObject()
protected void executeRequest(org.zalando.stups.clients.kio.CreateOrUpdateVersionRequest r)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String buildBodyContent(org.zalando.stups.clients.kio.CreateOrUpdateVersionRequest r) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionprotected String buildUrl()
protected String getToken() throws com.fasterxml.jackson.core.JsonProcessingException, IOException
com.fasterxml.jackson.core.JsonProcessingExceptionIOExceptionCopyright © 2016 Zalando SE. All rights reserved.