summaryrefslogtreecommitdiffstats
path: root/vespa-maven-plugin
diff options
context:
space:
mode:
authorJon Marius Venstad <jvenstad@yahoo-inc.com>2019-05-14 15:09:56 +0200
committerJon Marius Venstad <jvenstad@yahoo-inc.com>2019-05-14 15:10:06 +0200
commitf43949f67157e349cef3051adf9cf0ead6e0b2fc (patch)
tree25afb6ade1719af6e052043078362cc77aa250d9 /vespa-maven-plugin
parentdbe747d9d70d99cba32136be6c186d678d5c24ac (diff)
Delete unused code
Diffstat (limited to 'vespa-maven-plugin')
-rw-r--r--vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java21
1 files changed, 2 insertions, 19 deletions
diff --git a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java
index 75f0d2d1f48..32ff03ae202 100644
--- a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java
+++ b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java
@@ -26,36 +26,19 @@ public class DeployMojo extends AbstractVespaMojo {
@Parameter(property = "vespaVersion")
private String vespaVersion;
- @Parameter(property = "ignoreValidationErrors")
- private String ignoreValidationErrors;
-
@Parameter(property = "environment")
private String environment;
@Parameter(property = "region")
private String region;
- @Parameter(property = "repository")
- private String repository;
-
- @Parameter(property = "branch")
- private String branch;
-
- @Parameter(property = "commit")
- private String commit;
-
- @Parameter(property = "build")
- private Long build;
-
@Parameter(property = "follow", defaultValue = "true")
private boolean follow;
@Override
protected void doExecute() {
- Deployment deployment = build == null
- ? Deployment.ofPackage(Paths.get(firstNonBlank(applicationZip, projectPathOf("target", "application.zip"))))
- : Deployment.ofReference(repository, branch, commit, build);
- if ("true".equalsIgnoreCase(ignoreValidationErrors)) deployment = deployment.ignoringValidationErrors(); // TODO unused, GC or fix.
+ Deployment deployment = Deployment.ofPackage(Paths.get(firstNonBlank(applicationZip,
+ projectPathOf("target", "application.zip"))));
if (vespaVersion != null) deployment = deployment.atVersion(vespaVersion);
ZoneId zone = environment == null || region == null ? controller.devZone() : ZoneId.from(environment, region);