summaryrefslogtreecommitdiffstats
path: root/vespa-maven-plugin
diff options
context:
space:
mode:
authorJon Marius Venstad <jvenstad@yahoo-inc.com>2019-05-07 13:25:23 +0200
committerJon Marius Venstad <jvenstad@yahoo-inc.com>2019-05-07 13:25:23 +0200
commite7ac6e07b25e1e20e7a56edaaff3a08f69ab0e0f (patch)
tree6bd6425c249f756a654c2cd11b7c5b89e905b636 /vespa-maven-plugin
parent2f563a74e8bcf63bbdaa71793cd55693ab0ec785 (diff)
Default to "default" instance if set neither in pom.xml nor as property
Diffstat (limited to 'vespa-maven-plugin')
-rw-r--r--vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java
index 30113c83e92..b5822ff825e 100644
--- a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java
+++ b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java
@@ -54,7 +54,7 @@ public abstract class AbstractVespaMojo extends AbstractMojo {
protected void setup() {
tenant = firstNonBlank(tenant, project.getProperties().getProperty("tenant"));
application = firstNonBlank(application, project.getProperties().getProperty("application"));
- instance = firstNonBlank(instance, project.getProperties().getProperty("instance"));
+ instance = firstNonBlank(instance, project.getProperties().getProperty("instance"), "default");
id = ApplicationId.from(tenant, application, instance);
controller = certificateFile == null