@Mojo(name="install",
defaultPhase=PACKAGE)
public class InstallMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
activate |
protected String |
baseAuthPassword |
protected String |
baseAuthUser |
protected boolean |
directInstall |
protected URL |
endpoint |
protected File |
file |
protected boolean |
hidden |
protected boolean |
privileged |
protected String |
repository |
protected org.springframework.web.client.RestTemplate |
restTemplate |
protected String |
sharedSecret |
protected String |
site |
protected String |
targetFile |
protected File |
targetFolder |
Constructor and Description |
---|
InstallMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
debugBody(Object o,
org.springframework.http.MediaType mediaType) |
protected void |
determineFile() |
void |
execute() |
protected org.springframework.http.HttpHeaders |
getHeader() |
protected org.springframework.http.ResponseEntity<Repository> |
getRepository() |
protected void |
login() |
protected <T> org.springframework.http.ResponseEntity<T> |
send(Object requestObject,
org.springframework.http.HttpHeaders header,
org.springframework.http.HttpMethod method,
String path,
Class<T> resultType) |
protected <T> org.springframework.http.ResponseEntity<T> |
send(Object requestObject,
org.springframework.http.HttpHeaders header,
org.springframework.http.HttpMethod method,
String path,
Class<T> resultType,
boolean throwErrorOn4xx) |
protected org.springframework.http.ResponseEntity<Package> |
upload() |
protected org.springframework.http.ResponseEntity<Package> |
upload(boolean install,
boolean privileged,
boolean hidden) |
@Parameter(property="site") protected String site
@Parameter(property="activate") protected boolean activate
@Parameter(property="privileged") protected boolean privileged
@Parameter(property="hidden") protected boolean hidden
@Parameter(property="directInstall") protected boolean directInstall
@Parameter(property="sharedSecret", defaultValue="loreipsum", required=true) protected String sharedSecret
@Parameter(property="repository", defaultValue="Local", required=true) protected String repository
@Parameter(property="endpoint", defaultValue="http://localhost:8080/appNGizer/", required=true) protected URL endpoint
protected File file
@Parameter(defaultValue="${project.build.directory}", readonly=true) protected File targetFolder
@Parameter(defaultValue="${project.artifactId}-${project.version}", readonly=true) protected String targetFile
@Parameter(property="baseAuthUser") protected String baseAuthUser
@Parameter(property="baseAuthPassword") protected String baseAuthPassword
protected org.springframework.web.client.RestTemplate restTemplate
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected <T> org.springframework.http.ResponseEntity<T> send(Object requestObject, org.springframework.http.HttpHeaders header, org.springframework.http.HttpMethod method, String path, Class<T> resultType) throws URISyntaxException, org.apache.maven.plugin.MojoExecutionException
URISyntaxException
org.apache.maven.plugin.MojoExecutionException
protected <T> org.springframework.http.ResponseEntity<T> send(Object requestObject, org.springframework.http.HttpHeaders header, org.springframework.http.HttpMethod method, String path, Class<T> resultType, boolean throwErrorOn4xx) throws URISyntaxException, org.apache.maven.plugin.MojoExecutionException
URISyntaxException
org.apache.maven.plugin.MojoExecutionException
protected void debugBody(Object o, org.springframework.http.MediaType mediaType)
protected org.springframework.http.HttpHeaders getHeader()
protected void login() throws URISyntaxException, org.apache.maven.plugin.MojoExecutionException
URISyntaxException
org.apache.maven.plugin.MojoExecutionException
protected org.springframework.http.ResponseEntity<Repository> getRepository() throws URISyntaxException, org.apache.maven.plugin.MojoExecutionException
URISyntaxException
org.apache.maven.plugin.MojoExecutionException
protected org.springframework.http.ResponseEntity<Package> upload() throws URISyntaxException, InterruptedException, ExecutionException
protected org.springframework.http.ResponseEntity<Package> upload(boolean install, boolean privileged, boolean hidden) throws URISyntaxException, InterruptedException, ExecutionException
protected void determineFile() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2011–2021 aiticon GmbH. All rights reserved.