@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 URL |
endpoint |
protected File |
file |
protected String |
repository |
protected 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,
MediaType mediaType) |
protected void |
determineFile() |
void |
execute() |
protected HttpHeaders |
getHeader() |
protected ResponseEntity<Repository> |
getRepository() |
protected ResponseEntity<Void> |
install(Package uploadPackage,
String cookie) |
protected void |
login() |
protected <T> ResponseEntity<T> |
send(Object requestObject,
HttpHeaders header,
HttpMethod method,
String path,
Class<T> resultType) |
protected ResponseEntity<Package> |
upload() |
@Parameter(property="site") protected String site
@Parameter(property="activate") protected boolean activate
@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 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> ResponseEntity<T> send(Object requestObject, HttpHeaders header, HttpMethod method, String path, Class<T> resultType) throws URISyntaxException
URISyntaxException
protected HttpHeaders getHeader()
protected void login() throws URISyntaxException
URISyntaxException
protected ResponseEntity<Repository> getRepository() throws URISyntaxException
URISyntaxException
protected ResponseEntity<Package> upload() throws URISyntaxException
URISyntaxException
protected ResponseEntity<Void> install(Package uploadPackage, String cookie) throws URISyntaxException
URISyntaxException
protected void determineFile() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2011–2017 aiticon GmbH. All rights reserved.