aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-maven-plugin
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2019-10-07 09:15:33 +0200
committerJon Marius Venstad <venstad@gmail.com>2019-10-07 09:15:33 +0200
commit399249ccfe9ca85de66644ca64ac6f6a2bcbde2f (patch)
treeea89eb62d3bf50881f9a2e6f4076ddbf4df30b64 /vespa-maven-plugin
parentfb16b8f37bae65a8120a300600a7f430a8af1445 (diff)
Default instance name to user.name
Diffstat (limited to 'vespa-maven-plugin')
-rw-r--r--vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java3
1 files changed, 2 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 bf8f6f83f53..3f6817df96d 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
@@ -1,6 +1,7 @@
package ai.vespa.hosted.plugin;
import ai.vespa.hosted.api.ControllerHttpClient;
+import ai.vespa.hosted.api.Properties;
import com.yahoo.config.provision.ApplicationId;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
@@ -64,7 +65,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", "default"));
+ instance = firstNonBlank(instance, project.getProperties().getProperty("instance", Properties.user()));
id = ApplicationId.from(tenant, application, instance);
controller = certificateFile == null